Template:Shop row: Difference between revisions
Jump to navigation
Jump to search
Created page with "<includeonly>|- |style="height:40px;text-align:center;line-height:0"|[[File:{{{1}}}|40x40px|link=]]||{{{2}}}||data-sort-value={{{3}}}|{{{display|{{{3}}}}}}{{#ifeq:{{{4|OC}}}|RM|{{RM}}|{{OC}}}}</includeonly><noinclude> == Usage == One row of a shop price table: icon, name, price. Used inside a <code>wikitable sortable</code> whose columns are ''Icon'', ''Name'' and ''Price''. <pre> {{Shop row|icon file|name|price|currency|display=shown price}} </pre> * '''1''' – icon..." |
m Add delete notice |
||
| Line 1: | Line 1: | ||
{{Delete}} | |||
<includeonly>|- | <includeonly>|- | ||
|style="height:40px;text-align:center;line-height:0"|[[File:{{{1}}}|40x40px|link=]]||{{{2}}}||data-sort-value={{{3}}}|{{{display|{{{3}}}}}}{{#ifeq:{{{4|OC}}}|RM|{{RM}}|{{OC}}}}</includeonly><noinclude> | |style="height:40px;text-align:center;line-height:0"|[[File:{{{1}}}|40x40px|link=]]||{{{2}}}||data-sort-value={{{3}}}|{{{display|{{{3}}}}}}{{#ifeq:{{{4|OC}}}|RM|{{RM}}|{{OC}}}}</includeonly><noinclude> | ||
Latest revision as of 20:54, 3 November 2026
Usage
One row of a shop price table: icon, name, price. Used inside a wikitable sortable whose columns are Icon, Name and Price.
{{Shop row|icon file|name|price|currency|display=shown price}}
- 1 – icon file name without
File:(shown in a 40×40 box, aspect ratio kept, centred) - 2 – item or furniture name
- 3 – price as a plain number (also used for sorting)
- 4 – currency:
OC(default) orRM - display – optional; the price as shown, e.g. with a thousands separator (
display=14 000). Defaults to parameter 3.
Example
{| class="wikitable sortable"
! class="unsortable" | Icon !! Item !! Base price
{{Shop row|15000_Asbestos.png|Asbestos|52}}
{{Shop row|Furniture_Big_Generator.png|Big Generator|14000|RM|display=14 000}}
|}
| Icon | Item | Base price
|
|---|---|---|
| Asbestos | 52
| |
| Big Generator | 14 000 |
