Difference between revisions of "Template:EnchTitle"

From DDO Compendium
Line 4: Line 4:
|description = This template is used to render the title of an item enchantment, and handle the different views.
|description = This template is used to render the title of an item enchantment, and handle the different views.
|category=Shared Templates
|category=Shared Templates
|example1 = <nowiki>{{EnchTitle|Abilities#Constitution|Constitution +3}}</nowiki>
|example1 = <nowiki>{{EnchTitle|Abilities#Constitution|Constitution +3|}}</nowiki>
|example1output = {{EnchTitle|Abilities#Constitution|Constitution +3}}
|example1output = {{EnchTitle|Abilities#Constitution|Constitution +3}}
|example2 = <nowiki>{{EnchTitle|Abilities#Constitution|Constitution -1|Curse of Clumsiness}}</nowiki>
|example2output = {{EnchTitle|Abilities#Constitution|Constitution -1|Curse of Clumsiness}}
|parameter1name = Page name
|parameter1name = Page name
|parameter1description = The name of the page to link to
|parameter1description = The name of the page to link to
|parameter2name = Title
|parameter2name = Title
|parameter2description = The title to show to the viewer
|parameter2description = The generated title to show to the viewer
|parameter3name = Title Override
|parameter3description = The title override if sent in on main template
}}
}}
</noinclude><onlyinclude>{{#ifeq: {{#dplvar:enhview}}|titleonly|[[{{{1}}}|{{{2}}}]]|[[{{{1}}}|'''{{{2}}}:''']]}}</onlyinclude>
</noinclude><onlyinclude>{{#ifeq: {{#dplvar:enhview}}|titleonly|[[{{{1}}}|{{#if:{{{3|}}}|{{{3}}}|{{{2}}}}}]]|[[{{{1}}}|'''{{#if:{{{3|}}}|{{{3}}}|{{{2}}}}}:''']]}}</onlyinclude>

Revision as of 18:44, 4 December 2019


RenderEnchantmentTitle[edit]

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

Example Usage
{{EnchTitle|Abilities#Constitution|Constitution +3|}}Constitution +3:
{{EnchTitle|Abilities#Constitution|Constitution -1|Curse of Clumsiness}}Curse of Clumsiness:

Usage[edit]

{{RenderEnchantmentTitle|(Page name)|(Title)|(Title Override)}}

Parameter Documentation
Page nameThe name of the page to link to
TitleThe generated title to show to the viewer
Title OverrideThe title override if sent in on main template

Template

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


[[{{{1}}}|{{{2}}}:]]