Difference between revisions of "Template:EnchCat"

From DDO Compendium
Line 10: Line 10:
|example3 = <nowiki>{{EnchCat|Abilities#Constitution|Constitution -1|Curse of Clumsiness|True}}</nowiki>
|example3 = <nowiki>{{EnchCat|Abilities#Constitution|Constitution -1|Curse of Clumsiness|True}}</nowiki>
|example3output = {{EnchCat|Abilities#Constitution|Constitution -1|Curse of Clumsiness|True}}
|example3output = {{EnchCat|Abilities#Constitution|Constitution -1|Curse of Clumsiness|True}}
|parameter1name = Page name
|parameter1name = Template
|parameter1description = The name of the page to link to
|parameter1description = The name of the template that this category is for, do not include the Template: designation
|parameter2name = Title
|parameter2name = Categories
|parameter2description = The generated title to show to the viewer
|parameter2description = The name of the category, do not include the Category:. This can be repeated up to 10 times
|parameter3name = Title Override
|parameter3description = The title override if sent in on main template
|parameter4name = No Link
|parameter4description = Specify value here if there is no link.
}}
}}
</noinclude><onlyinclude>
</noinclude><onlyinclude>
{{FULLPAGENAME}}
{{#ifeq: {{FULLPAGENAME}} |Template:{{{1}}}||{{#switch: {{lc:{{#dplvar:enhview}}}}
 
|titleonly=
 
|#default=[[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>
</onlyinclude>
{{#ifeq: {{FULLPAGENAME}} |Template:Ability||[[Category:Items with Bonuses to {{{1}}}]]}}

Revision as of 16:14, 10 December 2019


RenderEnchantmentTitle[edit]

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

Example Usage
{{EnchCat|Abilities#Constitution|Constitution +3|}}
{{EnchCat|Abilities#Constitution|Constitution -1|Curse of Clumsiness}}
{{EnchCat|Abilities#Constitution|Constitution -1|Curse of Clumsiness|True}}

Usage[edit]

{{RenderEnchantmentTitle|(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.


[[Category:{{{2}}}]]