Difference between revisions of "Template:StorePurchase"

From DDO Compendium
 
(5 intermediate revisions by the same user not shown)
Line 29: Line 29:
<onlyinclude>{{#switch: {{lc:{{#dplvar:vendorformat}}}}
<onlyinclude>{{#switch: {{lc:{{#dplvar:vendorformat}}}}
| table={{#switch: {{lc:{{{1}}}}}
| table={{#switch: {{lc:{{{1}}}}}
| ddo =<tr><td>[[DDO Store]]{{#if: {{{3|}}}|&nbsp;(Limited Time)}}</td><td>{{#if: {{{4|}}}|{{{4}}}|1}}</td><td>{{#ifeq: {{{2}}}|0|Freebie|[[File:DDOPointsIcon.png|link=DDO Point]] {{formatnum:{{{2}}}}}x DDO Points}}</td></tr>
| ddo =<tr><td>[[DDO Store]]{{#if: {{{3|}}}|<br>(Limited Time)}}</td><td></td><td>{{#if: {{{4|}}}|{{{4}}}|1}}</td><td>{{#ifeq: {{{2}}}|0|Freebie|{{formatnum:{{{2}}}}}&nbsp;}}[[File:DDOPointsIcon.png|20px|x20px|link=DDO Point]]</td><td></td></tr>
| market = <tr><td>[[DDO Market]]{{#if: {{{3|}}}|&nbsp;(Limited Time)}}</td><td>{{#if: {{{4|}}}|{{{4}}}&nbsp;}}</td><td>{{{2|}}}</td>
| market = <tr><td>[[DDO Market]]{{#if: {{{3|}}}|&nbsp;(Limited Time)}}</td><td>{{#if: {{{4|}}}|{{{4}}}&nbsp;}}</td><td>{{{2|}}}</td><td></td>
}}
}}
|#default={{#switch: {{lc:{{{1}}}}}
|#default={{#switch: {{lc:{{{1}}}}}

Latest revision as of 13:53, 12 March 2022

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}}DDO Store: Purchase for 350 DDOPointsIcon.png DDO Points
{{StorePurchase|DDO|350|True}}DDO Store (Limited Time): Purchase for 350 DDOPointsIcon.png DDO Points
{{StorePurchase|Market|[[Fables of Feywild]] Ultimate Fan Bundle}}DDO Market: Purchase Fables of Feywild Ultimate Fan Bundle

Usage[edit]

{{StorePurchase|(Which Store)|(Cost)|(Limited Time)|(Count)|(Content)}}

Parameter Documentation
Which StoreThis is the store that it is bought from
Possible Values:
  • DDO
  • Market
CostThis is the cost of the item
Limited TimeThis is set if the item is only in the store for a limited time.
CountThis is the number you get
ContentThis is the store content, if you can't buy it directly

Template

Ignore any errors below this line, The errors occur because there is no input into the template, in the template itself.