Template:MrStoreItem: Difference between revisions

From A KoL Wiki
imported>Cannonfire40
No choice but to increase the width for compatibility, it looks like.
imported>Fig bucket
m add purchase button
 
(8 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<includeonly><table cellpadding=5><tr><td colspan=2 align=center><table  width=400  cellspacing=0 cellpadding=0><tr><td style="color: white;" align=center bgcolor=blue><b>{{{1}}}</b></td></tr><tr><td style="padding: 5px; border: 1px solid blue;"><center>{{ListItem|{{{2}}}}}<br />{{{3}}}</center><br />[[File:mracc.gif|link=Mr. Accessory]] '''{{{4}}}'''&nbsp;</td></tr></table></table></includeonly><noinclude>
<includeonly><table width="300" cellspacing="0" cellpadding="0"><tr><td bgcolor="blue" align="center" style="color: white;">'''{{{1|}}}'''</td></tr><tr><td style="padding: 5px; border: 1px solid blue;"><center><table><tr><td><center><table><tr><td valign="center" height="42">[[File:{{Data|{{{2}}}|image|nopic2.gif}}|link={{{2}}}]]</td><td width="10"></td><td valign="center" align="left">'''[[{{{2}}}|{{Data|{{{2}}}|name|{{{2}}}(?)}}]]'''</td></tr></table><table><tr><td colspan="3">{{{3|}}}<br><br></td></tr><tr><td width="30" align="left">{{#ifeq:{{{currency|}}}|Buck|[[File:unclebuck.gif]]|[[File:mracc.gif]]}}</td><td align="left">'''<font size="+1">{{{4|1}}}</font>'''</td><td align="right">{{button|Purchase|center=n}}</td></tr></table></center></td></tr></table></center></td></tr></table></includeonly><noinclude>


{{Code2}}
{{Code2}}
Line 10: Line 10:


Where ShelfName is the text at the top of the shelf, ItemName is the name of the item in the shelf, ItemDescription is the Mr. Store text for the item, and Price is the number of Mr. Accessories it costs.
Where ShelfName is the text at the top of the shelf, ItemName is the name of the item in the shelf, ItemDescription is the Mr. Store text for the item, and Price is the number of Mr. Accessories it costs.
If the item is paid in Uncle Bucks, then add a "currency=Buck" as one of its fields.


==Examples==
==Examples==
*<code><nowiki>{{MrStoreItem|April's Item-of-the-Month|Libram of Pulled Taffy|Summons delicious taffy that grants helpful effects and does powerful stuff when used underwater.|1}}</nowiki></code> yields:
*<code><nowiki>{{MrStoreItem|April's Item-of-the-Month|Libram of Pulled Taffy|Summons delicious taffy that grants helpful effects and does powerful stuff when used underwater.|1}}</nowiki></code> yields:
{{MrStoreItem|April's Item-of-the-Month|Libram of Pulled Taffy|Summons delicious taffy that grants helpful effects and does powerful stuff when used underwater.|1}}
{{MrStoreItem|April's Item-of-the-Month|Libram of Pulled Taffy|Summons delicious taffy that grants helpful effects and does powerful stuff when used underwater.|1}}
 
*<code><nowiki>{{MrStoreItem|Mr. Family|Mr. Accessory Jr.|As adorable as he is helpful: a whole lot!|5|currency=Buck}}</nowiki></code> yields:
</noinclude>
{{MrStoreItem|Mr. Family|Mr. Accessory Jr.|As adorable as he is helpful: a whole lot!|5|currency=Buck}}
[[Category:Standardization Templates|{{PAGENAME}}]]</noinclude>

Latest revision as of 04:49, 9 December 2014


<table width="300" cellspacing="0" cellpadding="0"><tr><td bgcolor="blue" align="center" style="color: white;">'''{{{1|}}}'''</td></tr><tr><td style="padding: 5px; border: 1px solid blue;"><center><table><tr><td><center><table><tr><td valign="center" height="42">[[File:{{Data|{{{2}}}|image|nopic2.gif}}|link={{{2}}}]]</td><td width="10"></td><td valign="center" align="left">'''[[{{{2}}}|{{Data|{{{2}}}|name|{{{2}}}(?)}}]]'''</td></tr></table><table><tr><td colspan="3">{{{3|}}}<br><br></td></tr><tr><td width="30" align="left">{{#ifeq:{{{currency|}}}|Buck|[[File:unclebuck.gif]]|[[File:mracc.gif]]}}</td><td align="left">'''<font size="+1">{{{4|1}}}</font>'''</td><td align="right">{{button|Purchase|center=n}}</td></tr></table></center></td></tr></table></center></td></tr></table>

Makes a shelf as used in Mr. Store.

Usage

  • To create a Shelf:
    {{MrStoreItem|ShelfName|ItemName|ItemDescription|Price}}

Where ShelfName is the text at the top of the shelf, ItemName is the name of the item in the shelf, ItemDescription is the Mr. Store text for the item, and Price is the number of Mr. Accessories it costs.

If the item is paid in Uncle Bucks, then add a "currency=Buck" as one of its fields.

Examples

  • {{MrStoreItem|April's Item-of-the-Month|Libram of Pulled Taffy|Summons delicious taffy that grants helpful effects and does powerful stuff when used underwater.|1}} yields:
April's Item-of-the-Month
Libram of Pulled Taffy
Summons delicious taffy that grants helpful effects and does powerful stuff when used underwater.

1
Purchase
  • {{MrStoreItem|Mr. Family|Mr. Accessory Jr.|As adorable as he is helpful: a whole lot!|5|currency=Buck}} yields:
Mr. Family
Mr. Accessory Jr.
As adorable as he is helpful: a whole lot!

5
Purchase