Difference between revisions of "Template:QuestFavor"
From DDO Compendium
MNDeveloper (talk | contribs) |
MNDeveloper (talk | contribs) |
||
Line 5: | Line 5: | ||
|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}} | |||
|parameter1name = Patron | |parameter1name = Patron | ||
|parameter1description = This is the patron that the favor belongs with. | |parameter1description = This is the patron that the favor belongs with. | ||
Line 18: | Line 20: | ||
<onlyinclude>{{#switch: {{lc:{{#dplvar:displaystyle}}}} | <onlyinclude>{{#switch: {{lc:{{#dplvar:displaystyle}}}} | ||
| table = [[{{{1}}}]] | | table = [[{{{1}}}]] | ||
| #default = [[Category: Quests with {{{1}}} as Patron]]'''Patron:''' [[{{{1}}}]]<br>{{#if: {{{3|}}} | | #default = [[Category: Quests with {{{1}}} as Patron]]'''Patron:''' [[{{{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> | '''Solo/Casual:''' {{#expr: floor({{{2}}}/2)}}<br>'''Normal:''' {{{2}}}<br>'''Hard:''' {{#expr: {{{2}}}*2}}<br>'''Elite:''' {{#expr: {{{2}}}*3}}}}}}</onlyinclude> |
Revision as of 23:54, 8 May 2018
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 |
Usage[edit]
{{QuestFavor|(Patron)|(Favor Normal Difficulty Amount)|(Solo Only)}}
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 |
Template
Ignore any errors below this line, The errors occur because there is no input into the template, in the template itself.
[[Category: Quests with {{{1}}} as Patron]]Patron: [[{{{1}}}]]
Solo/Casual: Expression error: Unrecognized punctuation character "{".
Normal: {{{2}}}
Hard: Expression error: Unrecognized punctuation character "{".
Elite: Expression error: Unrecognized punctuation character "{".