Difference between revisions of "Template:QuestExp"
From DDO Compendium
MNDeveloper (talk | contribs) |
MNDeveloper (talk | contribs) |
||
(7 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<noinclude> | <noinclude>{{TemplateDocumentation | ||
|name = QuestExp | |name = QuestExp | ||
|description = This template is used to generate a nicely defined look for quest experience. Any value not specified will be left out. | |description = This template is used to generate a nicely defined look for quest experience. Any value not specified will be left out. | ||
'''NOTE:''' that if the dpl key "displaystyle" is set to "table" it generates a more flat, simple look. | |||
|example1 = <nowiki>{{QuestExp||228|408|436| | |category = Quest and Area Templates | ||
|example1output = {{QuestExp||228|408|436| | |example1 = <nowiki>{{QuestExp||228|408|436|1571}}</nowiki> | ||
|example1output = {{QuestExp||228|408|436|1571}} | |||
|example2 = <nowiki>{{QuestExp|2456}}</nowiki> | |||
|example2output = {{QuestExp|2456}} | |||
|parameter1name = Solo Experience | |parameter1name = Solo Experience | ||
|parameter1description = This is the experience given for the solo difficulty. | |parameter1description = This is the experience given for the solo difficulty. | ||
Line 23: | Line 26: | ||
</noinclude> | </noinclude> | ||
<onlyinclude>{{#switch: {{lc:{{#dplvar:displaystyle}}}} | <onlyinclude>{{#switch: {{lc:{{#dplvar:displaystyle}}}} | ||
| table = <span style="color:black">{{#if: {{{1|}}}|{{{1}}}|N/A}}</span> / <span style="color:#66cc33">{{#if: {{{2|}}}|{{{2}}}|N/A}}</span> / <span style="color:yellow">{{#if: {{{3|}}}|{{{3}}}|N/A}}</span> / <span style="color:maroon">{{#if: {{{4|}}}|{{{4}}}|N/A}}</span> | | table = <span style="color:black">{{#if: {{{1|}}}|{{formatnum:{{{1}}}}}|N/A}}</span> / <span style="color:#66cc33">{{#if: {{{2|}}}|{{formatnum:{{{2}}}}}|N/A}}</span> / <span style="color:yellow">{{#if: {{{3|}}}|{{formatnum:{{{3}}}}}|N/A}}</span> / <span style="color:maroon">{{#if: {{{4|}}}|{{formatnum:{{{4}}}}}|N/A}}</span> | ||
| #default = {{#if: {{{1|}}} |'''Solo:''' {{{1}}}<br>}}{{#if: {{{2|}}} |'''Casual:''' {{{2}}}<br>}}{{#if: {{{3|}}} |'''Normal:''' {{{3}}}<br>}}{{#if: {{{4|}}} |'''Hard:''' {{{4}}}<br>}}{{#if: {{{5|}}} |'''Elite:''' {{{5}}}<br>}}}}</onlyinclude> | | #default = {{#if: {{{1|}}} |'''Solo:''' {{formatnum:{{{1}}}}}<br>}}{{#if: {{{2|}}} |'''Casual:''' {{formatnum:{{{2}}}}}<br>}}{{#if: {{{3|}}} |'''Normal:''' {{formatnum:{{{3}}}}}<br>}}{{#if: {{{4|}}} |'''Hard:''' {{formatnum:{{{4}}}}}<br>}}{{#if: {{{5|}}} |'''Elite:''' {{formatnum:{{{5}}}}}<br>}}}}</onlyinclude> |
Latest revision as of 20:24, 7 July 2020
QuestExp[edit]
This template is used to generate a nicely defined look for quest experience. Any value not specified will be left out.
NOTE: that if the dpl key "displaystyle" is set to "table" it generates a more flat, simple look.
Example Usage | |
{{QuestExp||228|408|436|1571}} | Casual: 228 Normal: 408 Hard: 436 Elite: 1,571 |
{{QuestExp|2456}} | Solo: 2,456 |
Usage[edit]
{{QuestExp|(Solo Experience)|(Casual Experience)|(Normal Experience)|(Hard Experience)|(Elite Experience)}}
Parameter Documentation | |
Solo Experience | This is the experience given for the solo difficulty. |
Casual Experience | This is the experience given for the casual difficulty. |
Normal Experience | This is the experience given for the normal difficulty. |
Hard Experience | This is the experience given for the hard difficulty. |
Elite Experience | This is the experience given for the elite difficulty. |
Template
Ignore any errors below this line, The errors occur because there is no input into the template, in the template itself.