Difference between revisions of "Template:HirelingCommand"

From DDO Compendium
Line 10: Line 10:
|example3 = <nowiki>{{HirelingCommand|K|Intimidate}}</nowiki>
|example3 = <nowiki>{{HirelingCommand|K|Intimidate}}</nowiki>
|example3output = {{HirelingCommand|K|Intimidate}}
|example3output = {{HirelingCommand|K|Intimidate}}
|example4 = <nowiki>{{HirelingCommand|t|Rage_(Feat)}}</nowiki>
|example4 = <nowiki>{{HirelingCommand|t|Renewal}}</nowiki>
|example4output = {{HirelingCommand|t|Rage_(Feat)}}
|example4output = {{HirelingCommand|t|Renewal}}
|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 20: Line 20:
* Skill or K
* Skill or K
* Other (blank)
* Other (blank)
|parameter2name = Name
|parameter2name = Page Name
|parameter2description = The name of the command
|parameter2description = The name of the page that has the command
|parameter3name = Page Name
|parameter3name = Icon
|parameter3description = The name of the page to link to if different than the command name
|parameter3description = The icon to use if the default doesn't work
|parameter4name = Icon
|parameter4name = Title
|parameter4description = The icon to use if the default doesn't work
|parameter4description = Title to display if different than the pages
}}</noinclude><onlyinclude>{{#switch: {{lc:{{{1|}}}}}
}}</noinclude><onlyinclude>{{#dplvar:set|customicon|{{{3|}}}}}{{#dplvar:set|customtitle|{{{4|}}}}}{{#switch: {{lc:{{{1|}}}}}
|spell | s ={{#DPL:
|spell | s ={{#DPL:
|title={{{2}}}
|title={{{2}}}
Line 50: Line 50:
|format=,,,
|format=,,,
|noresultsheader=[[{{{2|}}}]]
|noresultsheader=[[{{{2|}}}]]
|include={Feat¦HirelingCommandEnhDPL}
|include={EnhItem¦HirelingCommandEnhDPL}
}}
}}
|enhancement | e = {{IconImage|{{{2}}}|Enhancement {{{2|}}}|{{#if: {{{3|}}}|{{{3}}}|{{{2|}}}}}}} {{PageLink|{{{2|}}}|{{{3|}}}}}[[Category: Hireling Enhancement Command]]
|enhancement | e = {{#DPL:
|#default = {{IconImage|{{{2}}}|{{{4|}}}|{{#if: {{{3|}}}|{{{3}}}|{{{2|}}}}}}} {{PageLink|{{{2|}}}|{{{3|}}}}}
|title={{{2}}}
}}</onlyinclude>
|uses=Template:EnhItem
|mode=userformat
|format=,,,
|noresultsheader=[[{{{2|}}}]]
|include={EnhItem¦HirelingCommandEnhDPL}
}}
|#default = {{IconImage|{{{2}}}|{{{3|}}}|{{{2|}}}}} {{PageLink|{{{4|}}}|{{{2|}}}}}
}}{{#dplvar:set|customicon|}}</onlyinclude>

Revision as of 15:39, 17 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}}File:Action Boost (Power) Icon.png Enhancement Rogue Damage Boost
{{HirelingCommand|K|Intimidate}}Skill Intimidate Icon.png Intimidate
{{HirelingCommand|t|Renewal}}Enhancement Renewal Icon.png Renewal

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)
Page NameThe name of the page that has the command
IconThe icon to use if the default doesn't work
TitleTitle to display if different than the pages

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|]] [[]]