Template:Quantity box/doc

From RuneRealm Wiki

This is the current revision of this page, as edited by Alex (talk | contribs) at 16:38, 15 October 2024 (Created page with "{{Documentation}} This template returns a string representing infobox-quantity and infobox-quantity-replace span elements if passed a string representing a number, otherwise the string passed is returned. ==Usage== <pre> {{Quantity box|value}} </pre> ==Examples== ===Number provided=== <pre> {{Quantity box|8}} </pre> {{Quantity box|8}} ===Non-numeric provided=== <pre> {{Quantity box|8, 10}} </pre> {{Quantity box|8, 10}}"). The present address (URL) is a permanent link to this version.

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
This is a documentation subpage for Template:Quantity box.
It contains usage information, categories, and other content that is not part of the original template page.
Template:Quantity box invokes function main in Module:Quantity box using Lua.

This template returns a string representing infobox-quantity and infobox-quantity-replace span elements if passed a string representing a number, otherwise the string passed is returned.

Usage

{{Quantity box|value}}

Examples

Number provided

{{Quantity box|8}}

8 xp


Non-numeric provided

{{Quantity box|8, 10}}

8, 10