Template:AFM/doc
< Template:AFM
Jump to navigation
Jump to search
Revision as of 10:18, 19 July 2017 by blackwiki>Bungle (created documentation)
| This is a documentation subpage for Template:AFM. It contains usage information, categories and other content that is not part of the original template page. |
| This template employs intricate features of template syntax.
You are encouraged to familiarise yourself with its setup and parser functions before editing the template. If your edit causes unexpected problems, please undo it quickly, as this template may appear on a large number of pages. You can conduct experiments, and should test all major changes, in either this template's sandbox, the general template sandbox, or your user space before changing anything here. |
Usage
{{AFM|Country (ISO)|Male age|Female age|Year|Parameters}}
This template is used for managing table items on List of countries by age at first marriage. It will automatically calculate the average from the given ages, which itself can be over-ridden if an alternate, manually entered average is desired.
Parameters
|avg=NUMoptional, defines a manually entered average value|fn=NAMEoptional, defines a reference to a footnote|ref=NAMEoptional, defines a reference citation
Example
{{AFM|Brazil|30|27|2013|ref=brazil|fn=test}}
{{AFM|Canada|31.1|29.1|2008|ref=canada|avg=30.1}}
will create..
| Country | Men | Women | Average | Year | Source | ||
|---|---|---|---|---|---|---|---|
| 30 | 27 | 28.5 | 3 | 1.11 | 2013 | [1] | |
| 31.1 | 29.1 | 30.1 | 2 | 1.07 | 2008 | [2] |
Notes
- ↑ This is a footnote