Difference between revisions of "Template:ChallengeFavor"
From DDO Compendium
MNDeveloper (talk | contribs) |
MNDeveloper (talk | contribs) |
||
Line 8: | Line 8: | ||
|parameter1name = Patron | |parameter1name = Patron | ||
|parameter1description = This is the patron that the favor belongs with. | |parameter1description = This is the patron that the favor belongs with. | ||
| | |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 = {{#ifeq: {{FULLPAGENAME}} |Template:ChallengeFavor||[[Category: Challenges 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> |
Revision as of 16:47, 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|Cannith}} | Patron: Cannith One point per star Additional for all stars |
Usage[edit]
{{ChallengeFavor|(Patron)|(Link)}}
Parameter Documentation | |
Patron | This is the patron that the favor belongs with. |
Link | The 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