Jump to content

Module:Params/doc/examples/informal tablebox/doc

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Grufo (talk | contribs) at 03:56, 2 September 2024. The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

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

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]]&thinsp;[[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

Electron
General properties
FamilyLepton
CompositionElementary particle
Physical properties
Mass510.99895069(16) keVc−2
(9.1093837139(28)×10−31 kg)
Electric charge−1.602176634×10−19 C
Color charge
Spin12
Stable
Lorem ipsum
Dolor sit amet