Difference between revisions of "Template:StorePurchase"

From DDO Compendium
Line 7: Line 7:
|example2 = <nowiki>{{StorePurchase|DDO|350|True}}</nowiki>
|example2 = <nowiki>{{StorePurchase|DDO|350|True}}</nowiki>
|example2output = {{StorePurchase|DDO|350|True}}
|example2output = {{StorePurchase|DDO|350|True}}
|example3 = <nowiki>{{StorePurchase|Market|[[Fables of Feywild]] Ultimate Fan Bundle}}</nowiki>
|example3output = {{StorePurchase|Market|[[Fables of Feywild]] Ultimate Fan Bundle}}
|parameter1name = Which Store
|parameter1name = Which Store
|parameter1description = This is the store that it is bought from
|parameter1description = This is the store that it is bought from
|parameter1values=
|parameter1values=
* DDO
* DDO
* Market
|parameter2name = Cost
|parameter2name = Cost
|parameter2description = This is the number of DDO points the item costs
|parameter2description = This is the cost of the item
|paremeter2values=
* DDO points for the DDO store
* Bundle for the market
|parameter3name = Limited Time
|parameter3name = Limited Time
|parameter3description = This is set if the item is only in the store for a limited time.
|parameter3description = This is set if the item is only in the store for a limited time.
Line 21: Line 27:
<onlyinclude>{{#switch: {{lc:{{{1}}}}}
<onlyinclude>{{#switch: {{lc:{{{1}}}}}
| ddo ={{#ifeq: {{FULLPAGENAME}} |Template:StorePurchase||[[Category:DDO Store Purchase]]}}[[DDO Store]]{{#if: {{{3|}}}|&nbsp;(Limited Time)}}: {{#ifeq: {{{2}}}|0|Freebie|Purchase {{#if: {{{4|}}}|{{{4}}}&nbsp;}}for {{formatnum:{{{2}}}}} [[File:DDOPointsIcon.png|link=DDO Point]] DDO Points}}
| ddo ={{#ifeq: {{FULLPAGENAME}} |Template:StorePurchase||[[Category:DDO Store Purchase]]}}[[DDO Store]]{{#if: {{{3|}}}|&nbsp;(Limited Time)}}: {{#ifeq: {{{2}}}|0|Freebie|Purchase {{#if: {{{4|}}}|{{{4}}}&nbsp;}}for {{formatnum:{{{2}}}}} [[File:DDOPointsIcon.png|link=DDO Point]] DDO Points}}
| market = {{#ifeq: {{FULLPAGENAME}} |Template:StorePurchase||[[Category:DDO Market Purchase]]}}[[DDO Market]]{{#if: {{{3|}}}|&nbsp;(Limited Time)}}: Purchase {{#if: {{{4|}}}|{{{4}}}&nbsp;}} {{{2}}}
}}</onlyinclude>
}}</onlyinclude>

Revision as of 22:23, 12 December 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}}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)}}

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

Template

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