Template:StoreItem: Difference between revisions

From A KoL Wiki
imported>JRSiebz
m keep changing my mind on the best way to fail
imported>JRSiebz
m oops
 
(8 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<includeonly>|-
<includeonly>|-
|{{#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>
|[[File:{{{image|{{Data|{{{item}}}|image|nopic2.gif}}}}}|link={{{item}}}]]||'''[[{{{item}}}|{{{label|{{Data|{{{item}}}|name|{{{item}}}}}}}}]]'''{{#if:{{{desc|}}}|<br />{{{desc}}}}}||{{#if:{{{currImage|}}}|[[File:{{Data|{{{currency}}}|image|nopic2.gif}}|link={{{currency}}}]] {{{price}}}|{{{price}}} {{{currency|Meat}}}}}</includeonly><noinclude>
{{Code2}}
{{Code2}}
==Usage==
&#123;{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.
*<code>label=</code>''text" to override the item name on the item link in cases where needed


==Syntax==
==Syntax==
Line 10: Line 22:
{{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=astral bracer|price=10|currency=Karma|currImage=y}}
{{StoreItem|item=unknown item|price=666}}
{{StoreItem|item=Elf Army machine parts|label=Elf Army machine parts (3)|price=1|currency=Elf Guard broom|currImage=y}}
|}</nowiki>
|}</nowiki>


Line 18: Line 34:
{{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=astral bracer|price=10|currency=Karma|currImage=y}}
{{StoreItem|item=unknown item|price=666}}
{{StoreItem|item=unknown item|price=666}}
{{StoreItem|item=Elf Army machine parts|label=Elf Army machine parts (3)|price=1|currency=Elf Guard broom|currImage=y}}
|}
|}


[[Category:Standardization Templates|{{PAGENAME}}]]</noinclude>
[[Category:Standardization Templates|{{PAGENAME}}]]</noinclude>

Latest revision as of 11:41, 17 December 2023

|- |[[File:{{{image|{{Data|{{{item}}}|image|nopic2.gif}}}}}|link={{{item}}}]]||'''[[{{{item}}}|{{{label|{{Data|{{{item}}}|name|{{{item}}}}}}}}]]'''{{#if:{{{desc|}}}|<br />{{{desc}}}}}||{{#if:{{{currImage|}}}|[[File:{{Data|{{{currency}}}|image|nopic2.gif}}|link={{{currency}}}]] {{{price}}}|{{{price}}} {{{currency|Meat}}}}}

Usage

{{StoreItem|
  item=item name|
  price=price of item|
  other option=value|
  etc.}}

Other options can be:

  • desc=description for an optional description or note
  • currency=currency for currencies other than Meat (Mr. Accessory, sand dollar, etc.)
  • currImage=y to look-up and use a currency image instead of text.
  • label=text" to override the item name on the item link in cases where needed

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=astral bracer|price=10|currency=Karma|currImage=y}}
{{StoreItem|item=unknown item|price=666}}
{{StoreItem|item=Elf Army machine parts|label=Elf Army machine parts (3)|price=1|currency=Elf Guard broom|currImage=y}}
|}
Item: Price:
hair spray 24 Meat
chewing gum on a string 30 Meat
green beer
Always available on St. Sneaky Pete's Day
300 Meat
Ms. Accessory 1 Mr. Accessory
map to Anemone Mine 50
astral bracer 10
unknown item 666 Meat
Elf Army machine parts (3) 1