Difference between revisions of "Template:QuestFavor"
From DDO Compendium
MNDeveloper (talk | contribs) |
MNDeveloper (talk | contribs) |
||
(12 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<noinclude> | <noinclude>{{TemplateDocumentation | ||
|name = QuestFavor | |name = QuestFavor | ||
|description = This template is used to nicely format the output for quest favor. | |description = This template is used to nicely format the output for quest favor. | ||
'''NOTE:''' that if the dpl key "displaystyle" is set to "table" it generates just a link to the patron. | |||
|category = Quest and Area Templates | |||
|example1 = <nowiki>{{QuestFavor|The Free Agents|3}}</nowiki> | |example1 = <nowiki>{{QuestFavor|The Free Agents|3}}</nowiki> | ||
|example1output = {{QuestFavor|The Free Agents|3}} | |example1output = {{QuestFavor|The Free Agents|3}} | ||
|example2 = <nowiki>{{QuestFavor|The Free Agents|2|Y}}</nowiki> | |||
|example2output = {{QuestFavor|The Free Agents|2|Y}} | |||
|example3 = <nowiki>{{QuestFavor|The Twelve|4||The Twelve (Patron)}}</nowiki> | |||
|example3output = {{QuestFavor|The Twelve|4||The Twelve (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. | ||
|parameter2name = Favor Normal Difficulty Amount | |parameter2name = Favor Normal Difficulty Amount | ||
|parameter2description = This is the amount of favor given on normal difficulty. The rest are calculated from that value. | |parameter2description = This is the amount of favor given on normal difficulty. The rest are calculated from that value. | ||
| | |parameter3name = Solo Only | ||
|parameter3description = If there is a value here, this quest is solo only, and the favor amount is the solo amount | |||
|parameter4name = Link | |||
|parameter4description = 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: {{{4|}}}|[[{{{4}}}|{{{1}}}]]|[[{{{1}}}]]}} | ||
| | | #default = '''Patron:''' {{#if: {{{4|}}}|[[{{{4}}}|{{{1}}}]]|[[{{{1}}}]]}}<br>{{#if: {{{3|}}} |'''Solo:''' {{{2}}} | | ||
'''Solo/Casual:''' {{#expr: floor({{{2}}}/2)}}<br>'''Normal:''' {{{2}}}<br>'''Hard:''' {{#expr: {{{2}}}*2}}<br>'''Elite:''' {{#expr: {{{2}}}*3}}}}}}</onlyinclude> |
Latest revision as of 19:23, 24 September 2019
QuestFavor[edit]
This template is used to nicely format the output for quest favor.
NOTE: that if the dpl key "displaystyle" is set to "table" it generates just a link to the patron.
Example Usage | |
{{QuestFavor|The Free Agents|3}} | Patron: The Free Agents Solo/Casual: 1 Normal: 3 Hard: 6 Elite: 9 |
{{QuestFavor|The Free Agents|2|Y}} | Patron: The Free Agents Solo: 2 |
{{QuestFavor|The Twelve|4||The Twelve (Patron)}} | Patron: The Twelve Solo/Casual: 2 Normal: 4 Hard: 8 Elite: 12 |
Usage[edit]
{{QuestFavor|(Patron)|(Favor Normal Difficulty Amount)|(Solo Only)|(Link)}}
Parameter Documentation | |
Patron | This is the patron that the favor belongs with. |
Favor Normal Difficulty Amount | This is the amount of favor given on normal difficulty. The rest are calculated from that value. |
Solo Only | If there is a value here, this quest is solo only, and the favor amount is the solo amount |
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}}}]]
Solo/Casual: Expression error: Unrecognized punctuation character "{".
Normal: {{{2}}}
Hard: Expression error: Unrecognized punctuation character "{".
Elite: Expression error: Unrecognized punctuation character "{".