Module:ConvertIB/doc
Appearance
From Wikipedia, the free encyclopedia
icon This is a documentation subpage for Module:ConvertIB.
It may contain usage information, categories and other content that is not part of the original module page.
It may contain usage information, categories and other content that is not part of the original module page.
Warning This Lua module is used on approximately 761,000 pages, or roughly 1% of all pages .
To avoid major disruption and server load, any changes should be tested in the module's /sandbox or /testcases subpages, or in your own module sandbox. The tested changes can be added to this page in a single edit. Consider discussing changes on the talk page before implementing them.
To avoid major disruption and server load, any changes should be tested in the module's /sandbox or /testcases subpages, or in your own module sandbox. The tested changes can be added to this page in a single edit. Consider discussing changes on the talk page before implementing them.
A Lua module that wraps {{convert }}, designed for infoboxes. It implements:
- {{convinfobox }}
- {{Infobox settlement/areadisp }}
- {{Infobox settlement/lengthdisp }}
- {{Infobox settlement/densdisp }}
Usage
[edit ]{{#invoke:ConvertIB|convert}}
- Like {{convinfobox }}, accepts alternating series of pairs of [blank|value], unit . When a unit has a non-blank value, it will get converted to all other units that do have blank values
- Accepts all named parameters that {{convert }} does
- Accepts groups of multiple units (e.g., "5 ft 6 in") that {{convert }} does
{{#invoke:ConvertIB|area}}
- Implements {{Infobox settlement/areadisp }}, automatically converting area units, using the output order specified by MOS:UNIT
{{#invoke:ConvertIB|length}}
- Implements {{Infobox settlement/lengthdisp }}, automatically converting length units, using the output order specified by MOS:UNIT
{{#invoke:ConvertIB|density}}
- Implements {{Infobox settlement/densdisp }}, parsing population and area, producting density in inhabitants per square km and square mile.