Difference between revisions of "Template:ItemSetTitle"

From DDO Compendium
(Created page with "<noinclude>{{TemplateDocumentation |name = ItemSetTitle |description = This template is used in the itemset page to render the name column |category=Shared Templates |example1 = <nowiki>{{ItemSetTitle|Anger's Wrath}}</nowiki> |example1output = {{ItemSetTitle|Anger's Wrath}} |example2 = <nowiki>{{ItemSetTitle|The Labyrinthian Inferno}}</nowiki> |example2output = {{ItemSetTitle|The Labyrinthian Inferno}} |parameter1name = The Item Set |parameter1description = This is the N...")
 
Line 7: Line 7:
|example2 = <nowiki>{{ItemSetTitle|The Labyrinthian Inferno}}</nowiki>
|example2 = <nowiki>{{ItemSetTitle|The Labyrinthian Inferno}}</nowiki>
|example2output = {{ItemSetTitle|The Labyrinthian Inferno}}
|example2output = {{ItemSetTitle|The Labyrinthian Inferno}}
|parameter1name = The Item Set
|example3 = <nowiki>{{ItemSetTitle|Captain's Set|Captain's}}</nowiki>
|example3output = {{ItemSetTitle|Captain's Set|Captain's}}
|parameter1name = set
|parameter1description = This is the Name of the item set
|parameter1description = This is the Name of the item set
|parameter2name = category
|parameter2description = The Category of all items in the set, if different than the title
}}
}}
</noinclude><onlyinclude>{{Anchor|{{{1}}}}}'''{{{1}}}''' {{SmallLink|(Items)|:Category:Items in {{#ifeq: {{#explode:{{{1}}}| |0}}|The||the&nbsp;}}{{{1}}} Set}}</onlyinclude>
</noinclude><onlyinclude>{{#if: {{{2|}}}|{{#dplvar:set|nameforcat|{{{2}}}}}|{{#dplvar:set|nameforcat|{{{1|}}}}}}}
{{#dplvar:nameforcat}}
 
{{Anchor|{{{1}}}}}'''{{{1}}}''' {{SmallLink|(Items)|:Category:Items in {{#ifeq: {{#explode:{{#dplvar:nameforcat}}| |0}}|The||the&nbsp;}}{{#dplvar:nameforcat}} Set}}</onlyinclude>

Revision as of 16:49, 8 March 2023

ItemSetTitle[edit]

This template is used in the itemset page to render the name column

Example Usage
{{ItemSetTitle|Anger's Wrath}}Anger's Wrath Anger's Wrath (Items)
{{ItemSetTitle|The Labyrinthian Inferno}}The Labyrinthian Inferno The Labyrinthian Inferno (Items)
{{ItemSetTitle|Captain's Set|Captain's}}Captain's Captain's Set (Items)

Usage[edit]

{{ItemSetTitle|(set)|(category)}}

Parameter Documentation
setThis is the Name of the item set
categoryThe Category of all items in the set, if different than the title

Template

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



{{{1}}} (Items)