Difference between revisions of "Template:FeatPrerequisite"

From DDO Compendium
m
 
(47 intermediate revisions by 2 users not shown)
Line 2: Line 2:
|name = Prerequisite
|name = Prerequisite
|description = Used for Prerequisites
|description = Used for Prerequisites
|category=Spell and Feat Templates
|usesnamedparameters =  
|usesnamedparameters =  
|example1 = <nowiki>{{Prerequisite|Ability|Dexterity|19}}</nowiki>
|example1 = <nowiki>{{FeatPrerequisite|Ability|Dexterity|19}}</nowiki>
|example1output = {{Prerequisite|Ability|Dexterity|19}}
|example1output = {{FeatPrerequisite|Ability|Dexterity|19}}
|example2 = <nowiki>{{Prerequisite|BAB||4}}</nowiki>
|example2 = <nowiki>{{FeatPrerequisite|BAB|4}}</nowiki>
|example2output = {{Prerequisite|BAB||4}}
|example2output = {{FeatPrerequisite|BAB|4}}
|example3 =  
|example3 = <nowiki>{{FeatPrerequisite|-Feat|Two Weapon Fighting}}</nowiki>
|example3output =  
|example3output = {{FeatPrerequisite|-Feat|Two Weapon Fighting}}
|example4 =  
|example4 =  
|example4output =  
|example4output =  
Line 14: Line 15:
|parameter1description =  
|parameter1description =  
|parameter1values =  
|parameter1values =  
* Feat
* Feat (name = feat)
* Ability
* Ability (name = ability, value = requirement)
* Level
* Level (name or value = level)
* Race (name = race, value = level (opt))
* Class (name = class)
* BAB (Base Attack Bonus)
* BAB (Base Attack Bonus)
* Spell (name or Value = Spell Level)
* Destiny (name = destinies (ex. Arcane and Divine), value = number)
* Enhancement (name = tree, value = enhancement name)
* Skill (name=Skill name, value = trained ranks)
* Past Life (name=type of PL:herioc or racial or epic or iconic, value=what)
* Alignment
* Domain (name=Which Domain)
* If nothing, then will default to blank name, value, and link
* If nothing, then will default to blank name, value, and link
|parameter2name = Prerequisite Name
|parameter2name = Prerequisite Name
|parameter2description=The name of the prerequisite
|parameter2description=The name of the prerequisite
|parameter3name= (Opt) Value
|parameter3name= (Opt) Value
|parameter2description=The value of the prerequisite (optional)
|parameter3description=The value of the prerequisite (optional)
}}</noinclude><onlyinclude>{{#switch: {{{1|}}}
}}</noinclude><onlyinclude>{{#switch: {{lc:{{{1|}}}}}
|Feat=[[{{{2|}}}]]
|feat={{RenderLink|{{{2|}}}}}
|Ability=[[{{{2|}}}|{{{3|}}} {{{2|}}}]]
|-feat=Cannot have {{RenderLink|{{{2|}}}}}
|BAB=[[Base Attack Bonus|Base Attack Bonus +{{{3|}}}]]
|ability=[[{{{2|}}}|{{{3|}}} {{{2|}}}]]
|Level=Minimum Level {{#if: {{{2|}}} | {{{2|}}}|{{#if: {{{3|}}} | {{{3|}}}|}}}}
|alignment=Requires {{{2|}}} alignment
|#default=[[{{{2|}}}|{{{2|}}} {{{3|}}}]]
|-alignment=Requires any alignment except {{{2|}}}
|bab=[[Base Attack Bonus|Base Attack Bonus +{{{2|{{{3|}}}}}}]]
|level=Minimum Level {{#if: {{{2|}}} | {{{2|}}}|{{#if: {{{3|}}} | {{{3|}}}|}}}}
|race=Requires {{RenderLink|{{{2|}}}}} Race
|class=Requires {{#if: {{{3|}}} | Level {{{3|}}}|}} {{RenderLink|{{{2|}}}}}
|-class=Cannot be {{RenderLink|{{{2|}}}}}
|-race=Cannot be {{RenderLink|{{{2|}}}}}
|spell=Ability to cast level {{{2|{{{3|}}}}}} Spells.
|destiny=Requires {{{3|}}} Capped {{#ifexpr: {{{3|}}} > 1|Destinies|Destiny}}{{#if: {{{2|}}}|&nbsp;from {{{2|}}} Sphere.}}
|enhancement=Requires Enhancement {{{3}}} in {{{2}}} {{{4|}}}
|past life|pl={{#switch: {{lc:{{{2}}}}}
|heroic=[[Heroic True Reincarnation]] in the {{RenderLink|{{{3}}}}} class
|epic=[[Epic Reincarnation]]
|racial=[[Racial Reincarnation]] when the {{RenderLink|{{{3}}}}} race
|iconic=[[Iconic Reincarnation]] when {{RenderLink|{{{3}}}}} iconic race
}}
}}
</onlyinclude>
|domain=[[{{{2|}}}]] selected {{#ifeq: {{#dplvar:displaystyle}}|Table||[[Category: {{{2|}}} Feats]]}}
|skill={{{3|}}} trained ranks of [[Skills#{{{2|}}}|{{{2|}}}]]
|#default={{#ifexist: {{{2|}}}|[[{{{2|}}}|{{{2|}}} {{{3|}}}]]|{{{2|}}} {{{3|}}}}}
}}</onlyinclude>

Latest revision as of 20:06, 22 November 2021

Prerequisite[edit]

Used for Prerequisites

Example Usage
{{FeatPrerequisite|Ability|Dexterity|19}}19 Dexterity
{{FeatPrerequisite|BAB|4}}Base Attack Bonus +4
{{FeatPrerequisite|-Feat|Two Weapon Fighting}}Cannot have Two Weapon Fighting

Usage[edit]

{{Prerequisite|(Prerequisite Type)|(Prerequisite Name)|((Opt) Value)}}

Parameter Documentation
Prerequisite Type
Possible Values:
  • Feat (name = feat)
  • Ability (name = ability, value = requirement)
  • Level (name or value = level)
  • Race (name = race, value = level (opt))
  • Class (name = class)
  • BAB (Base Attack Bonus)
  • Spell (name or Value = Spell Level)
  • Destiny (name = destinies (ex. Arcane and Divine), value = number)
  • Enhancement (name = tree, value = enhancement name)
  • Skill (name=Skill name, value = trained ranks)
  • Past Life (name=type of PL:herioc or racial or epic or iconic, value=what)
  • Alignment
  • Domain (name=Which Domain)
  • If nothing, then will default to blank name, value, and link
Prerequisite NameThe name of the prerequisite
(Opt) ValueThe value of the prerequisite (optional)

Template

Ignore any errors below this line, The errors occur because there is no input into the template, in the template itself.