Difference between revisions of "Template:HirelingCommand"

From DDO Compendium
(Created page with "<noinclude>{{Template:TemplateDocumentation |name = HirelingCommand |description = Template for a consistent appearance of commands in hirelings |category = Shared Templates |usesnamedparameters = no |example1 = <nowiki>{{HirelingCommand|Cure Moderate Wounds|Spell Cure Moderate Wounds}}</nowiki> |example1output = {{HirelingCommand|Cure Moderate Wounds|Spell Cure Moderate Wounds}} |example2 = <nowiki>{{HirelingCommand|Rogue Damage Boost I|Enhancement Rogue Damage Boost|Ac...")
 
 
(10 intermediate revisions by the same user not shown)
Line 4: Line 4:
|category = Shared Templates
|category = Shared Templates
|usesnamedparameters = no
|usesnamedparameters = no
|example1 = <nowiki>{{HirelingCommand|Cure Moderate Wounds|Spell Cure Moderate Wounds}}</nowiki>
|example1 = <nowiki>{{HirelingCommand|s|Cure Moderate Wounds}}</nowiki>
|example1output = {{HirelingCommand|Cure Moderate Wounds|Spell Cure Moderate Wounds}}
|example1output = {{HirelingCommand|S|Cure Moderate Wounds}}
|example2 = <nowiki>{{HirelingCommand|Rogue Damage Boost I|Enhancement Rogue Damage Boost|Action Boost (Power)}}</nowiki>
|example2 = <nowiki>{{HirelingCommand|E|Action Boost (Power)|Enhancement Rogue Damage Boost|Rogue Damage Boost I}}</nowiki>
|example2output = {{HirelingCommand|Rogue Damage Boost I|Enhancement Rogue Damage Boost|Action Boost (Power)}}
|example2output = {{HirelingCommand|E|Action Boost (Power)|Enhancement Rogue Damage Boost|Rogue Damage Boost I}}
|parameter1name = Name
|example3 = <nowiki>{{HirelingCommand|K|Intimidate}}</nowiki>
|parameter1description = The name of the command
|example3output = {{HirelingCommand|K|Intimidate}}
|parameter2name = Icon
|example4 = <nowiki>{{HirelingCommand|t|Renewal}}</nowiki>
|parameter2description = The icon to use if the default doesn't work
|example4output = {{HirelingCommand|t|Renewal}}
|parameter3name = Page Name
|parameter1name = Type
|parameter3description = The name of the page to link to if different than the command name
|parameter1description = The type of the command, used to default the image based on name
}}</noinclude><onlyinclude>{{#ifexist: File:{{#if: {{{2|}}}|{{{2|}}}|{{{1}}}}}_Icon.png | {{IconImage|{{{1}}}|{{{2|}}}|{{{1|}}}}} | }} {{PageLink|{{{1|}}}|{{{3|}}}}}</onlyinclude>
|parameter1values=
* Spell or S
* Feat or F
* Enhancement or E
* Skill or K
* Other (blank)
|parameter2name = Page Name
|parameter2description = The name of the page that has the command
|parameter3name = Icon
|parameter3description = The icon to use if the default doesn't work
|parameter4name = Title
|parameter4description = Title to display if different than the pages
}}</noinclude><onlyinclude>{{#dplvar:set|customicon|{{{3|}}}}}{{#dplvar:set|customtitle|{{{4|}}}}}{{#switch: {{lc:{{{1|}}}}}
|spell | s ={{#DPL:
|title={{{2}}}
|uses=Template:Spell
|mode=userformat
|format=,,,
|noresultsheader=[[{{{2|}}}]]
|include={Spell¦HirelingCommandSpellDPL}
}}
|skill | k ={{IconImage|{{{2}}}|Skill {{{2|}}}|Skills#{{{2|}}}}} {{PageLink|{{{2|}}}|Skills#{{{2|}}}}}
|feat | f = {{#DPL:
|title={{{2}}}
|uses=Template:Feat
|mode=userformat
|format=,,,
|noresultsheader=[[{{{2|}}}]]
|include={Feat¦HirelingCommandFeatDPL}
}}
|test | t ={{#DPL:
|title={{{2}}}
|uses=Template:EnhItem
|mode=userformat
|format=,,,
|noresultsheader=[[{{{2|}}}]]
|include={EnhItem¦HirelingCommandEnhDPL}
}}
|enhancement | e = {{#DPL:
|title={{{2}}}
|uses=Template:EnhItem
|mode=userformat
|format=,,,
|noresultsheader=[[{{{2|}}}]]
|include={EnhItem¦HirelingCommandEnhDPL}
}}
|#default = {{IconImage|{{{2}}}|{{{3|}}}|{{{2|}}}}} {{PageLink|{{{4|}}}|{{{2|}}}}}
}}{{#dplvar:set|customicon|}}</onlyinclude>

Latest revision as of 16:27, 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|E|Action Boost (Power)|Enhancement Rogue Damage Boost|Rogue Damage Boost I}}Enhancement Rogue Damage Boost Icon.png Action 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|]] [[]]