Module:Params/doc/examples/tablebox
Appearance
This module uses TemplateStyles: |
This example meta-template shows how to use {{#invoke:params|call_for_each_group}} to create infobox-like templates.
- For a template for creating unstructured infoboxes, see {{module:params/doc/examples/informal tablebox}}.
Usage
[edit]For instance, writing
{{module:params/doc/examples/tablebox
| caption = Electron
| header 1 = General properties
| header 2 = Family
| text 2 = [[Lepton]]
| header 3 = [[Particle|Composition]]
| text 3 = [[Elementary particle]]
| header 4 = Physical properties
| header 5 = [[Mass]]
| text 5 = {{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>
| header 6 = [[Electric charge]]
| text 6 = {{val|-1.602176634|e=-19|u=[[coulomb (unit)|C]]}}
| header 7 = [[Color charge]]
| text 7 = ―
| header 8 = [[Spin (physics)|Spin]]
| text 8 = {{frac|1|2}}
| header 9 = [[Half-life]]
| text 9 = Stable
| header 10 = Lorem ipsum
| text 11 = 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 |
Half-life | Stable |
Lorem ipsum | |
Dolor sit amet |
Helper subtemplates
[edit]- {{./row}}