Template:Shop row

From Stalburg Wiki
Revision as of 12:13, 1 November 2026 by Octopussy (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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) or RM
  • 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 Open Sewer Coins (OC)
Big Generator 14 000 Real Money (RM)