Template:Shop: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
m added ability to remove left margin |
||
| (4 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
{| class=mw-collapsible cellpadding="3" style="margin-left:1%; white-space:nowrap; width:{{{width|69}}}%; max-width:100%; background-color:#E8FFE8; border-radius:7px" | <includeonly>{| class=mw-collapsible cellpadding="3" style="margin-left:{{{margin|1}}}%; white-space:nowrap; width:{{{width|69}}}%; max-width:100%; background-color:#E8FFE8; border-radius:7px" | ||
| colspan=3 style="border-radius: 7px; background-color:# | | colspan=3 style="border-radius: 7px; background-color:#C4FFC2; border:2px solid #E8FFE8" | '''{{{1}}}''' | ||
|- | |- | ||
{{{2}}} | {{{2}}} | ||
|} | |}</includeonly><noinclude>This template is a wrapper for [[Template:ShopLine]] to create shop scripts for routes. Here's an example of how it's implemented along with [[Template:InlineIcon]]: | ||
<pre>{{Shop|Toad Bros. Bazaar| | |||
{{ShopLine|Note|''Order the Contact Lens''}} | |||
{{ShopLine|Buy|{{InlineIcon|image=Fire Flower.png|text=2 Fire Flowers}}<br>{{InlineIcon|image=Fright Mask.png|text=5 Fright Masks}}}} | |||
{{ShopLine|Sell|{{InlineIcon|Mushroom}}|up 2}} | |||
{{ShopLine|Store|{{InlineIcon|Boo's Sheet}}}} | |||
{{ShopLine|Withdraw|{{InlineIcon|Life Shroom}}<br>{{InlineIcon|Ice Storm}}|up 1<br>up 2}} | |||
}}</pre> | |||
{{Shop|Toad Bros. Bazaar| | |||
{{ShopLine|Note|''Order the Contact Lens''}} | |||
{{ShopLine|Buy|{{InlineIcon|image=Fire Flower.png|text=2 Fire Flowers}}<br>{{InlineIcon|image=Fright Mask.png|text=5 Fright Masks}}}} | |||
{{ShopLine|Sell|{{InlineIcon|Mushroom}}|up 2}} | |||
{{ShopLine|Store|{{InlineIcon|Boo's Sheet}}}} | |||
{{ShopLine|Withdraw|{{InlineIcon|Life Shroom}}<br>{{InlineIcon|Ice Storm}}|up 1<br>up 2}} | |||
}} | |||
</noinclude> | |||
Latest revision as of 14:12, 16 November 2026
This template is a wrapper for Template:ShopLine to create shop scripts for routes. Here's an example of how it's implemented along with Template:InlineIcon:
{{Shop|Toad Bros. Bazaar|
{{ShopLine|Note|''Order the Contact Lens''}}
{{ShopLine|Buy|{{InlineIcon|image=Fire Flower.png|text=2 Fire Flowers}}<br>{{InlineIcon|image=Fright Mask.png|text=5 Fright Masks}}}}
{{ShopLine|Sell|{{InlineIcon|Mushroom}}|up 2}}
{{ShopLine|Store|{{InlineIcon|Boo's Sheet}}}}
{{ShopLine|Withdraw|{{InlineIcon|Life Shroom}}<br>{{InlineIcon|Ice Storm}}|up 1<br>up 2}}
}}
| Toad Bros. Bazaar | ||
| Order the Contact Lens | ||
| Buy | ||
| Sell | up 2 | |
| Store | ||
| Withdraw | up 1 up 2 | |