Difference between revisions of "Template:ItemSetTitle"
From DDO Compendium
MNDeveloper (talk | contribs) (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...") |
MNDeveloper (talk | contribs) |
||
(4 intermediate revisions by the same user not shown) | |||
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 = | |example3 = <nowiki>{{ItemSetTitle|Captain's Set|Captain's}}</nowiki> | ||
|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 | |||
|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 | |||
|parameter3name = other | |||
|parameter3description = Text that will show in the spot for the category. Used for item sets that are only craft only | |||
}} | }} | ||
</noinclude><onlyinclude>{{Anchor|{{{1}}}}}'''{{{1}}}''' {{SmallLink|(Items)|:Category:Items in {{#ifeq: {{#explode:{{ | </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)|{{#if: {{#dplvar:nameforcat}}|:Category:Items in {{#ifeq: {{#explode:{{#dplvar:nameforcat}}| |0}}|The||the }}{{#dplvar:nameforcat}} Set}}}}}}{{#dplvar:set|nameforcat|}}</onlyinclude> |
Latest revision as of 03:13, 22 February 2025
ItemSetTitle[edit]
This template is used in the itemset page to render the name column
Example Usage | |
{{ItemSetTitle|Anger's Wrath}} | Anger's Wrath [[
|
{{ItemSetTitle|The Labyrinthian Inferno}} | The Labyrinthian Inferno [[
|
{{ItemSetTitle|Captain's Set|Captain's}} | Captain's Set [[
|
{{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 | |
set | This is the Name of the item set |
category | The Category of all items in the set, if different than the title |
other | Text 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)