Difference between revisions of "Template:QuestFavor"

From DDO Compendium
Line 16: Line 16:
}}
}}
</noinclude>
</noinclude>
<onlyinclude>{{#if: {{{3|}}} | [[Category: Quests with {{{1}}} as Patron]]'''Patron:''' [[{{{1}}}]]<br>'''Solo:'''{{{2}}} | {{#switch: {{lc:{{#dplvar:displaystyle}}}}
<onlyinclude>{{#if: {{{3|}}} | [[Category: Quests with {{{1}}} as Patron]]'''Patron:''' [[{{{1}}}]]<br>'''Solo:''' {{{2}}} | {{#switch: {{lc:{{#dplvar:displaystyle}}}}
| table = [[{{{1}}}]]
| table = [[{{{1}}}]]
| #default = [[Category: Quests with {{{1}}} as Patron]]'''Patron:''' [[{{{1}}}]]<br>'''Solo/Casual:''' {{#expr: floor({{{2}}}/2)}}<br>'''Normal:''' {{{2}}}<br>'''Hard:''' {{#expr: {{{2}}}*2}}<br>'''Elite:''' {{#expr: {{{2}}}*3}}}}}}</onlyinclude>
| #default = [[Category: Quests with {{{1}}} as Patron]]'''Patron:''' [[{{{1}}}]]<br>'''Solo/Casual:''' {{#expr: floor({{{2}}}/2)}}<br>'''Normal:''' {{{2}}}<br>'''Hard:''' {{#expr: {{{2}}}*2}}<br>'''Elite:''' {{#expr: {{{2}}}*3}}}}}}</onlyinclude>

Revision as of 23:39, 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

Usage[edit]

{{QuestFavor|(Patron)|(Favor Normal Difficulty Amount)|(Solo Only)}}

Parameter Documentation
PatronThis is the patron that the favor belongs with.
Favor Normal Difficulty AmountThis is the amount of favor given on normal difficulty. The rest are calculated from that value.
Solo OnlyIf 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 "{".