Difference between revisions of "Template:Buy now"
m (pass param to {{defindex}}) |
|||
Line 1: | Line 1: | ||
+ | {{#ifexist:Template:Dictionary/price/{{{1|{{BASEPAGENAME}}}}}| | ||
<div class="plainlinks btn_wrapper" style="width:{{{width|100%}}}">[http://store.steampowered.com/buyitem/440/{{defindex|{{{1|{{BASEPAGENAME}}}}}}} <span class="btn_buynow">{{Common string|Buy Now}} {{lang | en = - | ru = за}} {{lang | <div class="plainlinks btn_wrapper" style="width:{{{width|100%}}}">[http://store.steampowered.com/buyitem/440/{{defindex|{{{1|{{BASEPAGENAME}}}}}}} <span class="btn_buynow">{{Common string|Buy Now}} {{lang | en = - | ru = за}} {{lang | ||
| en = {{item price|tooltips=no|item={{{1|{{BASEPAGENAME}}}}}|currency=usd}} / {{item price|tooltips=no|item={{{1|{{BASEPAGENAME}}}}}|currency=gbp}} / {{item price|tooltips=no|item={{{1|{{BASEPAGENAME}}}}}|currency=eur}} | | en = {{item price|tooltips=no|item={{{1|{{BASEPAGENAME}}}}}|currency=usd}} / {{item price|tooltips=no|item={{{1|{{BASEPAGENAME}}}}}|currency=gbp}} / {{item price|tooltips=no|item={{{1|{{BASEPAGENAME}}}}}|currency=eur}} | ||
Line 22: | Line 23: | ||
| zh-hant = {{item price|tooltips=no|item={{{1|{{BASEPAGENAME}}}}}|currency=usd}} / {{item price|tooltips=no|item={{{1|{{BASEPAGENAME}}}}}|currency=rub}} | | zh-hant = {{item price|tooltips=no|item={{{1|{{BASEPAGENAME}}}}}|currency=usd}} / {{item price|tooltips=no|item={{{1|{{BASEPAGENAME}}}}}|currency=rub}} | ||
| zh-hans = {{item price|tooltips=no|item={{{1|{{BASEPAGENAME}}}}}|currency=usd}} | | zh-hans = {{item price|tooltips=no|item={{{1|{{BASEPAGENAME}}}}}|currency=usd}} | ||
− | }}<span></span></span>]</div><noinclude> | + | }}<span></span></span>]</div>}}<noinclude> |
+ | == Usage == | ||
+ | This template is used by {{tl|Item infobox}}. It creates a box which links to the steam page to purchase an item. It also lists the price in a localized currency. | ||
+ | <pre> | ||
+ | {{Buy now|Ambassador}} | ||
+ | </pre> | ||
+ | Produces:<br> | ||
+ | <table class="infobox item-infobox weapon-infobox"><tr><td>{{Buy now|Ambassador}}</td></tr></table> | ||
[[Category:Link insertion templates]] | [[Category:Link insertion templates]] | ||
</noinclude> | </noinclude> |
Revision as of 17:12, 20 January 2015
Usage
This template is used by {{Item infobox}}
. It creates a box which links to the steam page to purchase an item. It also lists the price in a localized currency.
{{Buy now|Ambassador}}
Produces: