Difference between revisions of "Template:StorePurchase"
From DDO Compendium
MNDeveloper (talk | contribs) |
|||
Line 20: | Line 20: | ||
</noinclude> | </noinclude> | ||
<onlyinclude>{{#switch: {{lc:{{{1}}}}} | <onlyinclude>{{#switch: {{lc:{{{1}}}}} | ||
| ddo ={{#ifeq: {{FULLPAGENAME}} |Template:StorePurchase||[[Category:DDO Store Purchase]]}}[[DDO Store]]{{#if: {{{3|}}}| (Limited Time)}} | | ddo = | ||
{{#ifeq: {{FULLPAGENAME}} |Template:StorePurchase||[[Category:DDO Store Purchase]]}} | |||
<tr> | |||
<td> </td> | |||
<td>[[DDO Store]]{{#if: {{{3|}}}| (Limited Time)}}</td> | |||
<td>{{#if:{{{4|}}}|{{{4}}}}}</td> | |||
<td>{{#ifeq: {{{2}}}|0|Freebie|{{formatnum:{{{2}}}}} [[File:DDOPointsIcon.png|link=DDO Point]] DDO Points}}</td> | |||
</tr></onlyinclude> |
Revision as of 02:20, 24 February 2020
StorePurchase[edit]
This template is used on equipment to correctly format where that equipment is received from buying in the DDO Store.
Example Usage | |||
{{StorePurchase|DDO|350}} | {{#switch: ddo
| ddo = | ||
DDO Store | 350 DDO Points | ||
{{StorePurchase|DDO|350|True}} | {{#switch: ddo
| ddo = | ||
DDO Store (Limited Time) | 350 DDO Points |
Usage[edit]
{{StorePurchase|(Which Store)|(Cost)|(Limited Time)|(Count)}}
Parameter Documentation | |
Which Store | This is the store that it is bought from Possible Values:
|
Cost | This is the number of DDO points the item costs |
Limited Time | This is set if the item is only in the store for a limited time. |
Count | This is the number you get |
Template
Ignore any errors below this line, The errors occur because there is no input into the template, in the template itself.
{{#switch: {{{1}}} | ddo =
DDO Store {{{2}}} DDO Points