Difference between revisions of "Template:QuestFavor"
From DDO Compendium
MNDeveloper (talk | contribs) |
MNDeveloper (talk | contribs) |
||
Line 20: | Line 20: | ||
<onlyinclude>{{#switch: {{lc:{{#dplvar:displaystyle}}}} | <onlyinclude>{{#switch: {{lc:{{#dplvar:displaystyle}}}} | ||
| table = [[{{{1}}}]] | | table = [[{{{1}}}]] | ||
| #default = {{#ifeq: {{FULLPAGENAME}} |Template:QuestFavor||[[Category: Quests with {{{1}}} as Patron]]}}'''Patron:''' {{#if: {{{4|}}}|[[{{{4}}}|{{{1}}}]|[[{{{1}}}]]}}<br>{{#if: {{{3|}}} |'''Solo:''' {{{2}}} | | | #default = {{#ifeq: {{FULLPAGENAME}} |Template:QuestFavor||[[Category: Quests with {{{1}}} as Patron]]}}'''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> | '''Solo/Casual:''' {{#expr: floor({{{2}}}/2)}}<br>'''Normal:''' {{{2}}}<br>'''Hard:''' {{#expr: {{{2}}}*2}}<br>'''Elite:''' {{#expr: {{{2}}}*3}}}}}}</onlyinclude> |
Revision as of 11:58, 16 March 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 |
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 "{".