Difference between revisions of "Template:ChallengeFavor"

From DDO Compendium
(Created page with "<noinclude>Category:Template{{TemplateDocumentation |name = ChallengeFavor |description = This template is used to nicely format the output for challenge favor. '''NOTE:''...")
 
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>[[Category:Template]]{{TemplateDocumentation
<noinclude>{{TemplateDocumentation
|name = ChallengeFavor
|name = ChallengeFavor
|description = This template is used to nicely format the output for challenge favor.
|description = This template is used to nicely format the output for challenge favor.
'''NOTE:''' that if the dpl key "displaystyle" is set to "table" it generates just a link to the patron.
'''NOTE:''' that if the dpl key "displaystyle" is set to "table" it generates just a link to the patron.
|example1 = <nowiki>{{ChallengeFavor|Cannith}}</nowiki>
|category = Quest and Area Templates
|example1output = {{ChallengeFavor|Cannith}}
|example1 = <nowiki>{{ChallengeFavor|House Cannith|House Cannith (Patron)}}</nowiki>
|example1output = {{ChallengeFavor|House Cannith|House Cannith (Patron)}}
|parameter1name = Patron
|parameter1name = Patron
|parameter1description = This is the patron that the favor belongs with.
|parameter1description = This is the patron that the favor belongs with.
|parameter1values =  
|parameter2name = Link
|parameter2description = The page that contains the patron information, if it is not the same as the name of the patron.
}}
}}
</noinclude>
</noinclude>
<onlyinclude>{{#switch: {{lc:{{#dplvar:displaystyle}}}}
<onlyinclude>{{#switch: {{lc:{{#dplvar:displaystyle}}}}
| table = [[{{{1}}}]]
| table = {{#if: {{{2|}}}|[[{{{2}}}|{{{1}}}]]|[[{{{1}}}]]}}
| #default = [[Category: Quests with {{{1}}} as Patron]]'''Patron:''' [[{{{1}}}]]<br>One point per star<br>Additional for all stars</onlyinclude>
| #default = {{#ifeq: {{FULLPAGENAME}} |Template:ChallengeFavor||[[Category: Challenges with {{{1}}} as Patron]]}}'''Patron:''' {{#if: {{{2|}}}|[[{{{2}}}|{{{1}}}]]|[[{{{1}}}]]}}<br>One point per star<br>Additional for all stars}}</onlyinclude>

Latest revision as of 16:48, 4 February 2022

ChallengeFavor[edit]

This template is used to nicely format the output for challenge favor.

NOTE: that if the dpl key "displaystyle" is set to "table" it generates just a link to the patron.

Example Usage
{{ChallengeFavor|House Cannith|House Cannith (Patron)}}Patron: House Cannith
One point per star
Additional for all stars

Usage[edit]

{{ChallengeFavor|(Patron)|(Link)}}

Parameter Documentation
PatronThis is the patron that the favor belongs with.
LinkThe page that contains the patron information, if it is not the same as the name of the patron.

Template

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


Patron: [[{{{1}}}]]
One point per star
Additional for all stars