Difference between revisions of "Template:ItemSetTitle"

From DDO Compendium
 
Line 9: Line 9:
|example3 = <nowiki>{{ItemSetTitle|Captain's Set|Captain's}}</nowiki>
|example3 = <nowiki>{{ItemSetTitle|Captain's Set|Captain's}}</nowiki>
|example3output = {{ItemSetTitle|Captain's Set|Captain's}}
|example3output = {{ItemSetTitle|Captain's Set|Captain's}}
|example4 = <nowiki>{{ItemSetTitle|Legendary Heart of Blades||[[Lost Purpose]] Crafting Only}}</nowiki>
|example4output = {{ItemSetTitle|Legendary Heart of Blades||[[Lost Purpose]] Crafting Only}}
|parameter1name = set
|parameter1name = set
|parameter1description = This is the Name of the item set
|parameter1description = This is the Name of the item set
|parameter2name = category
|parameter2name = category
|parameter2description = The Category of all items in the set, if different than the title
|parameter2description = The Category of all items in the set, if different than the title
|parameter3name = other
|parameter3description = Text that will show in the spot for the category.  Used for item sets that are only craft only
}}
}}
</noinclude><onlyinclude>{{#if: {{{2|}}}|{{#dplvar:set|nameforcat|{{{2}}}}}|{{#dplvar:set|nameforcat|{{{1|}}}}}}}{{Anchor|{{{1}}}}}'''{{{1}}}''' {{SmallLink|(Items)|:Category:Items in {{#ifeq: {{#explode:{{#dplvar:nameforcat}}| |0}}|The||the&nbsp;}}{{#dplvar:nameforcat}} Set}}{{#dplvar:set|nameforcat|}}</onlyinclude>
</noinclude><onlyinclude>{{#if: {{{2|}}}|{{#dplvar:set|nameforcat|{{{2}}}}}|{{#dplvar:set|nameforcat|{{{1|}}}}}}}{{Anchor|{{{1}}}}}'''{{{1}}}''' {{#if: {{{3|}}}|<span style="font-size:.75em">({{{3|}}})</span>|{{SmallLink|(Items)|:Category:Items in {{#ifeq: {{#explode:{{#dplvar:nameforcat}}| |0}}|The||the&nbsp;}}{{#dplvar:nameforcat}} Set}}}}{{#dplvar:set|nameforcat|}}</onlyinclude>

Latest revision as of 15:35, 11 August 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 (Items)
{{ItemSetTitle|The Labyrinthian Inferno}}The Labyrinthian Inferno (Items)
{{ItemSetTitle|Captain's Set|Captain's}}Captain's Set (Items)
{{ItemSetTitle|Legendary Heart of Blades||[[Lost Purpose]] Crafting Only}}Legendary Heart of Blades (Lost Purpose Crafting Only)

Usage[edit]

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

Parameter Documentation
setThis is the Name of the item set
categoryThe Category of all items in the set, if different than the title
otherText that will show in the spot for the category. Used for item sets that are only craft only

Template

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


{{{1}}} (Items)