Module:Params/doc/examples/informal tablebox
File:Test Template Info-Icon - Version (2).svg Template documentation[view] [edit] [history] [purge]
Lua error in Module:TNT at line 159: Missing JsonConfig extension; Cannot load https://commons.wikimedia.org/wiki/Data:I18n/Uses TemplateStyles.tab.
| File:Lua-Logo.svg | This template uses Lua: |
This example template shows how to use {{#invoke:params|call_for_each_group}} to create an informal (unstructured) infobox-like template to be inserted directly in Wikipedia articles.
- For a meta-template for creating structured infoboxes, see {{module:params/doc/examples/tablebox}}.
Usage
[edit source]For instance, writing
{{module:params/doc/examples/informal tablebox | caption = Electron
| ; General properties
| Family: [[Lepton]]
| [[Particle|Composition]]: [[Elementary particle]]
| ; Physical properties
| [[Mass]]: {{val|510.99895069|(16)|u=[[Electronvolt|keV]] [[Speed of light|c]]<sup>−2</sup>}}<br /><small>({{val|9.1093837139|(28)|e=-31|u=[[kilogram|kg]]}})</small>
| [[Electric charge]]: {{val|-1.602176634|e=-19|u=[[coulomb (unit)|C]]}}
| [[Color charge]]: ―
| [[Spin (physics)|Spin]]: {{frac|1|2}}
| [[Half-life|Stable]]
| ; Lorem ipsum
| : Dolor sit amet
}}
will generate
| General properties | |
|---|---|
| Family | Lepton |
| Composition | Elementary particle |
| Physical properties | |
| Mass | 510.99895069(16) keV c−2 (9.1093837139(28)×10−31 kg) |
| Electric charge | −1.602176634×10−19 C |
| Color charge | ― |
| Spin | 1⁄2 |
| Stable | ✔ |
| Lorem ipsum | |
| Dolor sit amet | |