Difference between revisions of "Template:QuestExp"

From DDO Compendium
Line 1: Line 1:
<noinclude>This template is used for Quest Experience.[[Category:Template]]
<noinclude>[[Category:Template]]{{TemplateDocumentation
 
|name = QuestExp
Used in this manner:
|description = This template is used to generate a nicely defined look for quest experience.  Not, that if the dpl key "displaystyle" is set to "table" it generates a more flat, simple look.
<br><nowiki>{{QuestExp|(solo)|(casual)|(normal)|(hard)|(elite)}}</nowiki><br>
|example1 = <nowiki>{{QuestExp||228|408|436|464}}</nowiki>
<br>Such that <nowiki>{{QuestExp|(solo)|(casual)|(normal)|(hard)|(elite)}}</nowiki>
|example1output = {{QuestExp||228|408|436|464}}
<br>{{QuestExp||228|408|436|464}}
|parameter1name = Solo/Casual Experience
|parameter1description = This is the experience given for the solo/casual difficulty.
|parameter1values =
|parameter2name = Normal Experience
|parameter2description = This is the experience given for the normal difficulty.
|parameter2values =
|parameter3name = Hard Experience
|parameter3description = This is the experience given for the hard difficulty.
|parameter3values =
|parameter4name = Elite Experience
|parameter4description = This is the experience given for the elite difficulty.
|parameter4values =
}}
</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|}}}|{{{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>
| #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:''' {{{1}}}<br>}}{{#if: {{{2|}}} |'''Casual:''' {{{2}}}<br>}}{{#if: {{{3|}}} |'''Normal:''' {{{3}}}<br>}}{{#if: {{{4|}}} |'''Hard:''' {{{4}}}<br>}}{{#if: {{{5|}}} |'''Elite:''' {{{5}}}<br>}}}}</onlyinclude>

Revision as of 21:34, 5 May 2018

QuestExp[edit]

This template is used to generate a nicely defined look for quest experience. Not, that if the dpl key "displaystyle" is set to "table" it generates a more flat, simple look.

Example Usage
{{QuestExp||228|408|436|464}}Casual: 228
Normal: 408
Hard: 436
Elite: 464

Usage[edit]

{{QuestExp|(Solo/Casual Experience)|(Normal Experience)|(Hard Experience)|(Elite Experience)}}

Parameter Documentation
Solo/Casual ExperienceThis is the experience given for the solo/casual difficulty.
Normal ExperienceThis is the experience given for the normal difficulty.
Hard ExperienceThis is the experience given for the hard difficulty.
Elite ExperienceThis 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.