Difference between revisions of "Template:EnchCat"

From DDO Compendium
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
{{TemplateDocumentation
{{TemplateDocumentation
|name = RenderEnchantmentTitle
|name = EnchCat
|description = This template is used to render the categories of an item enchantment, and handle the different views.
|description = This template is used to render the categories of an item enchantment, and handle the different views.
|category=Shared Templates
|category=Shared Templates
|example1 = <nowiki>{{EnchCat|Abilities#Constitution|Constitution +3|}}</nowiki>
|example1output = {{EnchCat|Abilities#Constitution|Constitution +3}}
|example2 = <nowiki>{{EnchCat|Abilities#Constitution|Constitution -1|Curse of Clumsiness}}</nowiki>
|example2output = {{EnchCat|Abilities#Constitution|Constitution -1|Curse of Clumsiness}}
|example3 = <nowiki>{{EnchCat|Abilities#Constitution|Constitution -1|Curse of Clumsiness|True}}</nowiki>
|example3output = {{EnchCat|Abilities#Constitution|Constitution -1|Curse of Clumsiness|True}}
|parameter1name = Template
|parameter1name = Template
|parameter1description = The name of the template that this category is for, do not include the Template: designation
|parameter1description = The name of the template that this category is for, do not include the Template: designation
Line 15: Line 9:
|parameter2description = The name of the category, do not include the Category:.  This can be repeated up to 10 times
|parameter2description = The name of the category, do not include the Category:.  This can be repeated up to 10 times
}}
}}
</noinclude><onlyinclude>
</noinclude><onlyinclude>{{#ifeq: {{FULLPAGENAME}} |Template:{{{1}}}||{{#switch: {{lc:{{#dplvar:enhview}}}}
{{#ifeq: {{FULLPAGENAME}} |Template:{{{1}}}||{{#switch: {{lc:{{#dplvar:enhview}}}}
|titleonly=
|titleonly=
|#default=[[Category:{{{2}}}]]
|nocategories=
{{#if: {{{3|}}}|[[Category:{{{3}}}]]}}
|#default={{#if: {{{2|}}}|[[Category:{{{2}}}]]}}{{#if: {{{3|}}}|[[Category:{{{3}}}]]}}{{#if: {{{4|}}}|[[Category:{{{4}}}]]}}{{#if: {{{5|}}}|[[Category:{{{5}}}]]}}{{#if: {{{6|}}}|[[Category:{{{6}}}]]}}{{#if: {{{7|}}}|[[Category:{{{7}}}]]}}{{#if: {{{8|}}}|[[Category:{{{8}}}]]}}{{#if: {{{9|}}}|[[Category:{{{9}}}]]}}{{#if: {{{10|}}}|[[Category:{{{10}}}]]}}{{#if: {{{11|}}}|[[Category:{{{11}}}]]}}}}}}</onlyinclude>
{{#if: {{{4|}}}|[[Category:{{{4}}}]]}}
{{#if: {{{5|}}}|[[Category:{{{5}}}]]}}
{{#if: {{{6|}}}|[[Category:{{{6}}}]]}}
{{#if: {{{7|}}}|[[Category:{{{7}}}]]}}
{{#if: {{{8|}}}|[[Category:{{{8}}}]]}}
{{#if: {{{9|}}}|[[Category:{{{9}}}]]}}
{{#if: {{{10|}}}|[[Category:{{{10}}}]]}}
{{#if: {{{11|}}}|[[Category:{{{11}}}]]}}
}}}}
</onlyinclude>

Latest revision as of 00:22, 19 April 2022


EnchCat[edit]

This template is used to render the categories of an item enchantment, and handle the different views.

Usage[edit]

{{EnchCat|(Template)|(Categories)}}

Parameter Documentation
TemplateThe name of the template that this category is for, do not include the Template: designation
CategoriesThe name of the category, do not include the Category:. This can be repeated up to 10 times

Template

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