Template:StoreItem: Difference between revisions
imported>JRSiebz m keep changing my mind on the best way to fail |
imported>JRSiebz + long overdue usage section |
||
Line 2: | Line 2: | ||
|{{#ifexist:Data:{{{item}}}|[[image:{{Data:{{{item}}}|image|nopic2.gif}}|{{Data:{{{item}}}|name|{{{item}}}}}]]|{{click|image=nopic2.gif|link=Data:{{{item}}}}}}}||{{#ifexist:Data:{{{item}}}|'''[[{{{item}}}|{{Data:{{{item}}}|name|{{{item}}}}}]]'''|'''[[{{{item}}}]]'''}}{{#if:{{{desc|}}}|<br />{{{desc}}}}}||{{#if:{{{currImage|}}}|{{click|image={{Data1|{{{currency}}}|image|nopic2.gif}}|link={{{currency}}}}} {{{price}}}|{{{price}}} {{{currency|Meat}}}}}</includeonly><noinclude> | |{{#ifexist:Data:{{{item}}}|[[image:{{Data:{{{item}}}|image|nopic2.gif}}|{{Data:{{{item}}}|name|{{{item}}}}}]]|{{click|image=nopic2.gif|link=Data:{{{item}}}}}}}||{{#ifexist:Data:{{{item}}}|'''[[{{{item}}}|{{Data:{{{item}}}|name|{{{item}}}}}]]'''|'''[[{{{item}}}]]'''}}{{#if:{{{desc|}}}|<br />{{{desc}}}}}||{{#if:{{{currImage|}}}|{{click|image={{Data1|{{{currency}}}|image|nopic2.gif}}|link={{{currency}}}}} {{{price}}}|{{{price}}} {{{currency|Meat}}}}}</includeonly><noinclude> | ||
{{Code2}} | {{Code2}} | ||
==Usage== | |||
{{StoreItem| | |||
item=''<span style="font-family: sans-serif">item name</span>''| | |||
price=''<span style="font-family: sans-serif">price of item</span>''| | |||
''<span style="font-family: sans-serif">other option</span>''=''<span style="font-family: sans-serif">value</span>''| | |||
''<span style="font-family: sans-serif">etc.</span>''}} | |||
Other options can be: | |||
*<code>desc=</code>''description'' for an optional description or note | |||
*<code>currency=</code>''currency'' for currencies other than Meat (Mr. Accessory, sand dollar, etc.) | |||
*<code>currImage=y</code> to look-up and use a currency image instead of text. | |||
==Syntax== | ==Syntax== | ||
Line 10: | Line 21: | ||
{{StoreItem|item=green beer|price=300|desc=Always available on [[St. Sneaky Pete's Day]]}} | {{StoreItem|item=green beer|price=300|desc=Always available on [[St. Sneaky Pete's Day]]}} | ||
{{StoreItem|item=Ms. Accessory|price=1|currency=Mr. Accessory}} | {{StoreItem|item=Ms. Accessory|price=1|currency=Mr. Accessory}} | ||
{{StoreItem|item=map to Anemone Mine|price='''50'''|currency=sand dollar|currImage=y}} | |||
{{StoreItem|item=unknown item|price=666}} | |||
|}</nowiki> | |}</nowiki> | ||
Line 18: | Line 31: | ||
{{StoreItem|item=green beer|price=300|desc=Always available on [[St. Sneaky Pete's Day]]}} | {{StoreItem|item=green beer|price=300|desc=Always available on [[St. Sneaky Pete's Day]]}} | ||
{{StoreItem|item=Ms. Accessory|price=1|currency=Mr. Accessory}} | {{StoreItem|item=Ms. Accessory|price=1|currency=Mr. Accessory}} | ||
{{StoreItem|item=map to Anemone Mine|price='''50'''|currency=sand dollar|currImage=y}} | |||
{{StoreItem|item=unknown item|price=666}} | {{StoreItem|item=unknown item|price=666}} | ||
|} | |} | ||
[[Category:Standardization Templates|{{PAGENAME}}]]</noinclude> | [[Category:Standardization Templates|{{PAGENAME}}]]</noinclude> |
Revision as of 08:57, 1 June 2010
Usage
{{StoreItem| item=item name| price=price of item| other option=value| etc.}}
Other options can be:
desc=
description for an optional description or notecurrency=
currency for currencies other than Meat (Mr. Accessory, sand dollar, etc.)currImage=y
to look-up and use a currency image instead of text.
Syntax
{| align="center" !colspan=2|Item:||Price: {{StoreItem|item=hair spray|price=24}} {{StoreItem|item=chewing gum on a string|price=30}} {{StoreItem|item=green beer|price=300|desc=Always available on [[St. Sneaky Pete's Day]]}} {{StoreItem|item=Ms. Accessory|price=1|currency=Mr. Accessory}} {{StoreItem|item=map to Anemone Mine|price='''50'''|currency=sand dollar|currImage=y}} {{StoreItem|item=unknown item|price=666}} |}
Item: | Price: | |
---|---|---|
[[image:{{{{{format}}}|
name=hair spray| plural=cans of hair spray| image=spraycan.gif| image}}|{{{{{format}}}| name=hair spray| plural=cans of hair spray| image=spraycan.gif| name}}]]||{{{{{format}}}| name=hair spray| plural=cans of hair spray| image=spraycan.gif| name}}||24 Meat | ||
[[image:{{{{{format}}}|
name=chewing gum on a string| plural=chewing gums on strings| image=gum.gif| image}}|{{{{{format}}}| name=chewing gum on a string| plural=chewing gums on strings| image=gum.gif| name}}]]||{{{{{format}}}| name=chewing gum on a string| plural=chewing gums on strings| image=gum.gif| name}}||30 Meat | ||
[[image:{{{{{format}}}|
name=green beer|
plural=green beers|
image=juice.gif|
image}}|{{{{{format}}}|
name=green beer|
plural=green beers|
image=juice.gif|
name}}]]||{{{{{format}}}|
name=green beer|
plural=green beers|
image=juice.gif|
name}} | ||
[[image:{{{{{format}}}|
name=Ms. Accessory| plural=Ms. Accessories| image=mrsacc.gif| image}}|{{{{{format}}}| name=Ms. Accessory| plural=Ms. Accessories| image=mrsacc.gif| name}}]]||{{{{{format}}}| name=Ms. Accessory| plural=Ms. Accessories| image=mrsacc.gif| name}}||1 Mr. Accessory | ||
[[image:{{{{{format}}}|
name=map to Anemone Mine| plural=map to Anemone Mines| image=map.gif| image}}|{{{{{format}}}| name=map to Anemone Mine| plural=map to Anemone Mines| image=map.gif| name}}]]||{{{{{format}}}| name=map to Anemone Mine| plural=map to Anemone Mines| image=map.gif| name}}||Template:Click 50 | ||
Template:Click | unknown item | 666 Meat |