Difference between revisions of "Template:EnchTitle"

From DDO Compendium
(Created page with "<noinclude> {{TemplateDocumentation |name = RenderEnchantmentTitle |description = This template is used to render the title of an item enchantment, and handle the different vi...")
 
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>{{RenderEnchantmentTitle|Abilities#{{{1}}}|Constitution +3}}</nowiki>
|example1 = <nowiki>{{RenderEnchantmentTitle|Abilities#Constitution|Constitution +3}}</nowiki>
|example1output = {{RenderEnchantmentTitle|Abilities#{{{1}}}|Constitution +3}}
|example1output = {{RenderEnchantmentTitle|Abilities#Constitution|Constitution +3}}
|parameter1name = Page name
|parameter1name = Page name
|parameter1description = The name of the page to link to
|parameter1description = The name of the page to link to
|parameter1name = Title
|parameter2name = Title
|parameter1description = The title to show to the viewer
|parameter2description = The title to show to the viewer
}}
}}
</noinclude><onlyinclude>{{#ifeq: {{#dplvar:enhview}}|titleonly|[[{{{1}}}|{{{2}}}]]|'''[[{{{1}}}|{{{2}}}:]]'''}}</onlyinclude>
</noinclude><onlyinclude>{{#ifeq: {{#dplvar:enhview}}|titleonly|[[{{{1}}}|{{{2}}}]]|[[{{{1}}}|'''{{{2}}}:''']]}}</onlyinclude>

Revision as of 18:36, 4 December 2019


RenderEnchantmentTitle[edit]

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

Example Usage
{{RenderEnchantmentTitle|Abilities#Constitution|Constitution +3}}Template:RenderEnchantmentTitle

Usage[edit]

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

Parameter Documentation
Page nameThe name of the page to link to
TitleThe title to show to the viewer

Template

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


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