Difference between revisions of "Template:HirelingCommand"

From DDO Compendium
Line 8: Line 8:
|example2 = <nowiki>{{HirelingCommand||Rogue Damage Boost I|Action Boost (Power)|Enhancement Rogue Damage Boost}}</nowiki>
|example2 = <nowiki>{{HirelingCommand||Rogue Damage Boost I|Action Boost (Power)|Enhancement Rogue Damage Boost}}</nowiki>
|example2output = {{HirelingCommand||Rogue Damage Boost I|Action Boost (Power)|Enhancement Rogue Damage Boost}}
|example2output = {{HirelingCommand||Rogue Damage Boost I|Action Boost (Power)|Enhancement Rogue Damage Boost}}
|example3 = <nowiki>{{HirelingCommand|K|Intimidate}}</nowiki>
|example3output = {{HirelingCommand|K|Intimidate}}
|parameter1name = Type
|parameter1name = Type
|parameter1description = The type of the command, used to default the image based on name
|parameter1description = The type of the command, used to default the image based on name
Line 14: Line 16:
* Feat or F
* Feat or F
* Enhancement or E
* Enhancement or E
* Skill or K
* Other (blank)
* Other (blank)
|parameter2name = Name
|parameter2name = Name
Line 23: Line 26:
}}</noinclude><onlyinclude>{{#switch: {{lc:{{{1|}}}}}
}}</noinclude><onlyinclude>{{#switch: {{lc:{{{1|}}}}}
|spell | s ={{IconImage|{{{2}}}|Spell {{{2|}}}|{{#if: {{{3|}}}|{{{3}}}|{{{2|}}}}}}} {{PageLink|{{{2|}}}|{{{3|}}}}}
|spell | s ={{IconImage|{{{2}}}|Spell {{{2|}}}|{{#if: {{{3|}}}|{{{3}}}|{{{2|}}}}}}} {{PageLink|{{{2|}}}|{{{3|}}}}}
|skill | k ={{IconImage|{{{2}}}|Skill {{{2|}}}|Skills#{{{2|}}}}} {{PageLink|{{{2|}}}|Skills#{{{2|}}}}}
|feat | f = {{IconImage|{{{2}}}|Feat {{{2|}}}|{{#if: {{{3|}}}|{{{3}}}|{{{2|}}}}}}} {{PageLink|{{{2|}}}|{{{3|}}}}}
|feat | f = {{IconImage|{{{2}}}|Feat {{{2|}}}|{{#if: {{{3|}}}|{{{3}}}|{{{2|}}}}}}} {{PageLink|{{{2|}}}|{{{3|}}}}}
|enhancement | e = {{IconImage|{{{2}}}|Enhancement {{{2|}}}|{{#if: {{{3|}}}|{{{3}}}|{{{2|}}}}}}} {{PageLink|{{{2|}}}|{{{3|}}}}}
|enhancement | e = {{IconImage|{{{2}}}|Enhancement {{{2|}}}|{{#if: {{{3|}}}|{{{3}}}|{{{2|}}}}}}} {{PageLink|{{{2|}}}|{{{3|}}}}}
|#default = {{IconImage|{{{2}}}|{{{4|}}}|{{#if: {{{3|}}}|{{{3}}}|{{{2|}}}}}}} {{PageLink|{{{2|}}}|{{{3|}}}}}
|#default = {{IconImage|{{{2}}}|{{{4|}}}|{{#if: {{{3|}}}|{{{3}}}|{{{2|}}}}}}} {{PageLink|{{{2|}}}|{{{3|}}}}}
}}</onlyinclude>
}}</onlyinclude>

Revision as of 21:41, 12 March 2022

HirelingCommand[edit]

Template for a consistent appearance of commands in hirelings

Example Usage
{{HirelingCommand|s|Cure Moderate Wounds}}Spell Cure Moderate Wounds Icon.png Cure Moderate Wounds
{{HirelingCommand||Rogue Damage Boost I|Action Boost (Power)|Enhancement Rogue Damage Boost}}Enhancement Rogue Damage Boost Icon.png Rogue Damage Boost I
{{HirelingCommand|K|Intimidate}}Skill Intimidate Icon.png Intimidate

Usage[edit]

Parameter Documentation
TypeThe type of the command, used to default the image based on name
Possible Values:
  • Spell or S
  • Feat or F
  • Enhancement or E
  • Skill or K
  • Other (blank)
NameThe name of the command
Page NameThe name of the page to link to if different than the command name
IconThe icon to use if the default doesn't work

Template

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


[[File:{{{2}}}_Icon.png|link=|36px|x36px|]] [[]]