Difference between revisions of "Template:HirelingCommand"
From DDO Compendium
MNDeveloper (talk | contribs) |
MNDeveloper (talk | contribs) |
||
Line 8: | Line 8: | ||
|example2 = <nowiki>{{HirelingCommand|Rogue Damage Boost I|Enhancement Rogue Damage Boost|Action Boost (Power)}}</nowiki> | |example2 = <nowiki>{{HirelingCommand|Rogue Damage Boost I|Enhancement Rogue Damage Boost|Action Boost (Power)}}</nowiki> | ||
|example2output = {{HirelingCommand|Rogue Damage Boost I|Enhancement Rogue Damage Boost|Action Boost (Power)}} | |example2output = {{HirelingCommand|Rogue Damage Boost I|Enhancement Rogue Damage Boost|Action Boost (Power)}} | ||
|parameter1name = | |parameter1name = Type | ||
|parameter1description = The | |parameter1description = The type of the command, used to default the image based on name | ||
|parameter2name = | |parameter1values= | ||
|parameter2description = The | * Spell or S | ||
* Feat or F | |||
* Enhancement or E | |||
* Other (blank) | |||
|parameter2name = Name | |||
|parameter2description = The name of the command | |||
|parameter3name = Page Name | |parameter3name = Page Name | ||
|parameter3description = The name of the page to link to if different than the command name | |parameter3description = The name of the page to link to if different than the command name | ||
}}</noinclude><onlyinclude>{{IconImage|{{{ | |parameter4name = Icon | ||
|parameter4description = The icon to use if the default doesn't work | |||
}}</noinclude><onlyinclude>{{#switch: {{lc:{{{1|}}}}} | |||
|spell | s = {{IconImage|{{{2}}}|Spell {{{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|}}}}} | |||
#default = {{IconImage|{{{2}}}|{{{4|}}}|{{#if: {{{3|}}}|{{{3}}}|{{{2|}}}}}}} {{PageLink|{{{2|}}}|{{{3|}}}}} | |||
}}</onlyinclude> |
Revision as of 21:33, 12 March 2022
HirelingCommand[edit]
Template for a consistent appearance of commands in hirelings
Example Usage | |
{{HirelingCommand|Cure Moderate Wounds|Spell Cure Moderate Wounds}} | |
{{HirelingCommand|Rogue Damage Boost I|Enhancement Rogue Damage Boost|Action Boost (Power)}} |
Usage[edit]
Parameter Documentation | |
Type | The type of the command, used to default the image based on name Possible Values:
|
Name | The name of the command |
Page Name | The name of the page to link to if different than the command name |
Icon | The 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.