This module uses TemplateStyles: |
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 article.
- For a meta-template for creating structured infoboxes, see {{module:params/doc/examples/tablebox}}.
Usage
editFor 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 |