Difference between revisions of "Template:HirelingCommand"
From DDO Compendium
MNDeveloper (talk | contribs) |
MNDeveloper (talk | contribs) |
||
Line 4: | Line 4: | ||
|category = Shared Templates | |category = Shared Templates | ||
|usesnamedparameters = no | |usesnamedparameters = no | ||
|example1 = <nowiki>{{HirelingCommand| | |example1 = <nowiki>{{HirelingCommand|s|Cure Moderate Wounds}}</nowiki> | ||
|example1output = {{HirelingCommand| | |example1output = {{HirelingCommand|S|Cure Moderate Wounds}} | ||
|example2 = <nowiki>{{HirelingCommand|Rogue Damage Boost I | |example2 = <nowiki>{{HirelingCommand||Rogue Damage Boost I|Action Boost (Power)|Enhancement Rogue Damage Boost}}</nowiki> | ||
|example2output = {{HirelingCommand|Rogue Damage Boost I | |example2output = {{HirelingCommand||Rogue Damage Boost I|Action Boost (Power)|Enhancement Rogue Damage Boost}} | ||
|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 22: | Line 22: | ||
|parameter4description = The icon to use if the default doesn't work | |parameter4description = The icon to use if the default doesn't work | ||
}}</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|}}}}} | ||
|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:37, 12 March 2022
HirelingCommand[edit]
Template for a consistent appearance of commands in hirelings
Example Usage | |
{{HirelingCommand|s|Cure Moderate Wounds}} | Cure Moderate Wounds |
{{HirelingCommand||Rogue Damage Boost I|Action Boost (Power)|Enhancement Rogue Damage Boost}} | Rogue Damage Boost I |
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.
[[File:{{{2}}}_Icon.png|link=|36px|x36px|]] [[]]