Template:StoreItem: Difference between revisions

From A KoL Wiki
imported>Fig bucket
m allow image override
imported>JRSiebz
custom link text...hopefully
Line 1: Line 1:
{{{label|{{{item}}} }}}
<includeonly>|-
<includeonly>|-
|[[File:{{{image|{{Data|{{{item}}}|image|nopic2.gif}}}}}|link={{{item}}}]]||'''[[{{{item}}}|{{Data|{{{item}}}|name|{{{item}}}}}]]'''{{#if:{{{desc|}}}|<br />{{{desc}}}}}||{{#if:{{{currImage|}}}|[[File:{{Data|{{{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}}


Line 13: Line 15:
*<code>currency=</code>''currency'' for currencies other than Meat (Mr. Accessory, sand dollar, etc.)
*<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>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 24: Line 27:
{{StoreItem|item=astral bracer|price=10|currency=Karma|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}}
|}</nowiki>
|}</nowiki>


Line 35: Line 39:
{{StoreItem|item=astral bracer|price=10|currency=Karma|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>

Revision as of 11:41, 17 December 2023

{{{item}}}


{{{label|{{{item}}} }}}

|-

|[[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

hair spray 24 Meat

chewing gum on a string

chewing gum on a string 30 Meat

green beer

green beer
Always available on St. Sneaky Pete's Day
300 Meat

Ms. Accessory

Ms. Accessory 1 Mr. Accessory

map to Anemone Mine

map to Anemone Mine 50

astral bracer

astral bracer 10

unknown item

unknown item 666 Meat

Elf Army machine parts (3)

Elf Army machine parts (3) 1