Difference between revisions of "Template:StorePurchase"

From DDO Compendium
 
(35 intermediate revisions by 2 users not shown)
Line 2: Line 2:
|name = StorePurchase
|name = StorePurchase
|description = This template is used on equipment to correctly format where that equipment is received from buying in the DDO Store.
|description = This template is used on equipment to correctly format where that equipment is received from buying in the DDO Store.
|category = Item Templates
|category = DropLocation Templates
|example1 = <nowiki>{{StorePurchase|DDO|350}}</nowiki>
|example1 = <nowiki>{{StorePurchase|DDO|350}}</nowiki>
|example1output = {{StorePurchase|DDO|350}}
|example1output = {{StorePurchase|DDO|350}}
|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|Remnant|10000}}</nowiki>
|example3 = <nowiki>{{StorePurchase|Market|[[Fables of Feywild]] Ultimate Fan Bundle}}</nowiki>
|example3output = {{StorePurchase|Remnant|10000}}
|example3output = {{StorePurchase|Market|[[Fables of Feywild]] Ultimate Fan Bundle}}
|example4 = <nowiki>{{StorePurchase|Remnant|10000|True}}</nowiki>
|example4output = {{StorePurchase|Remnant|10000|True}}
|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
* Remnant
* 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.
|parameter4name = Count
|parameter4description = This is the number you get
|parameter5name = Content
|parameter5description = This is the store content, if you can't buy it directly
}}
}}
</noinclude>
</noinclude>
<onlyinclude>{{#switch: {{lc:{{{1}}}}}
<onlyinclude>{{#switch: {{lc:{{#dplvar:vendorformat}}}}
| ddo =[[Category:DDO Store Purchase]][[DDO Store]]{{#if: {{{3|}}}|&nbsp;(Limited Time)}}, Purchase for {{formatnum:{{{2}}}}} [[File:DDOPointsIcon.png]] DDO Points
| table={{#switch: {{lc:{{{1}}}}}
| remnant=[[Category:Mysterious Remnant Items]][[Champion Hunter]], Purchase for {{formatnum:{{{2}}}}} Mysterious Remnants}}{{#if:  
| 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>
{{{3|}}}|. This is only available during [[Champion Hunter Week]].}}
| market = <tr><td>[[DDO Market]]{{#if: {{{3|}}}|&nbsp;(Limited Time)}}</td><td>{{#if: {{{4|}}}|{{{4}}}&nbsp;}}</td><td>{{{2|}}}</td><td></td>
| totem=[[Category:Vistani Totem Items]][[Osah Lukresh]], Purchase for {{formatnum:{{{2}}}}} Vistani Totems. These versions are {{ItemBinding|btc}}.
}}
| talisman=[[Category:Vistani Talisman Items]][[Raam Lukresh]], Purchase for {{formatnum:{{{2}}}}} Vistani Talismans. These versions are {{ItemBinding|btc}}.
|#default={{#switch: {{lc:{{{1}}}}}
| ddo =[[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}}{{#if: {{{5|}}}|&nbsp;as part of {{RenderLink|{{{5}}}}}}}
| market = [[DDO Market]]{{#if: {{{3|}}}|&nbsp;(Limited Time)}}: Purchase {{#if: {{{4|}}}|{{{4}}}&nbsp;}} {{{2}}}
}}}}{{#ifeq: {{FULLPAGENAME}} |Template:StorePurchase||{{#switch: {{lc:{{{1}}}}}
| ddo =[[Category:DDO Store Purchase]]
| market = [[Category:DDO Market Purchase]]}}
}}</onlyinclude>
}}</onlyinclude>

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.