Difference between revisions of "Template:AFM/doc"
Jump to navigation
Jump to search
blackwiki>Bungle (created documentation) |
blackwiki>Bungle (expand doc) |
||
| Line 4: | Line 4: | ||
==Usage== | ==Usage== | ||
| − | <nowiki>{{AFM|Country (ISO)|Male age|Female age|Year|Parameters}}</nowiki> | + | <nowiki>{{AFM|Country (ISO)|Male age|Female age|Year|Parameters (optional)}}</nowiki> |
| − | 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. | + | This template is used for managing table items on the article [[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=== | ===Parameters=== | ||
| − | * {{para|avg|NUM}} <strong>optional</strong>, defines a manually entered average value | + | * {{para|avg|NUM}}, <strong>optional</strong>, defines a manually entered ''average'' value |
| − | * {{para|fn|NAME}} <strong>optional</strong>, defines a reference to a footnote | + | * {{para|fn|NAME}}, <strong>optional</strong>, defines a reference to a ''footnote'' |
| − | * {{para|ref|NAME}} <strong>optional</strong>, defines a reference citation | + | * {{para|ref|NAME}}, <strong>optional</strong>, defines a reference to a ''citation'' |
| + | * {{para|flag|no}}, <strong>optional</strong>, disables the ''flag'' icon (retains flag space) | ||
==Example== | ==Example== | ||
| − | + | <nowiki>{|class="wikitable sortable" style="text-align:right" | |
| − | + | |- | |
| + | ! Country !! Men !! Women !! Average !! Year !! Source | ||
| + | {{AFM|Algeria|33.5|29.8|2006|ref=algeria}} | ||
| + | {{AFM|Brazil|30|27|2013|ref=brazil|fn=test}} | ||
| + | {{AFM|Canada|31.1|29.1|2008|ref=canada|avg=30.1}}</nowiki> | ||
| + | <nowiki>|}</nowiki> | ||
will create.. | will create.. | ||
| Line 22: | Line 28: | ||
|- | |- | ||
! Country !! Men !! Women !! Average !! Year !! Source | ! Country !! Men !! Women !! Average !! Year !! Source | ||
| + | {{AFM|Algeria|33.5|29.8|2006|ref=algeria}} | ||
{{AFM|Brazil|30|27|2013|ref=brazil|fn=test}} | {{AFM|Brazil|30|27|2013|ref=brazil|fn=test}} | ||
{{AFM|Canada|31.1|29.1|2008|ref=canada|avg=30.1}} | {{AFM|Canada|31.1|29.1|2008|ref=canada|avg=30.1}} | ||
| Line 33: | Line 40: | ||
====References==== | ====References==== | ||
{{reflist|refs= | {{reflist|refs= | ||
| + | <ref name="algeria">{{cite report |authors=Ministère de la Santé, de la Population et de la Réforme hospitalière and Office national des statistiques |date=December 2008 |title=Suivi de la situation des enfants et des femmes. Enquête nationale à indicateurs multiples. Rapport principal |url= |publisher= |page=104 |access-date=7 October 2016 }}</ref> | ||
<ref name="brazil">{{cite web|url=http://un.org/esa/population/publications/worldmarriage/worldmarriage.htm|title=United Nations World Marriage Patterns 2000|publisher=United Nations}}</ref> | <ref name="brazil">{{cite web|url=http://un.org/esa/population/publications/worldmarriage/worldmarriage.htm|title=United Nations World Marriage Patterns 2000|publisher=United Nations}}</ref> | ||
<ref name="canada">[http://www4.hrsdc.gc.ca/.3ndic.1t.4r@-eng.jsp?iid=78 Family Life - Marriage / Indicators of Well-being in Canada]</ref> | <ref name="canada">[http://www4.hrsdc.gc.ca/.3ndic.1t.4r@-eng.jsp?iid=78 Family Life - Marriage / Indicators of Well-being in Canada]</ref> | ||
}} | }} | ||
| + | |||
| + | Notes and references MUST have the original citation located directly within the respective notes or references section, within the ''notelist'' or ''reflist'' templates respectively. | ||
Revision as of 19:13, 19 July 2017
| 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 (optional)}}
This template is used for managing table items on the article 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=NUM, optional, defines a manually entered average value|fn=NAME, optional, defines a reference to a footnote|ref=NAME, optional, defines a reference to a citation|flag=no, optional, disables the flag icon (retains flag space)
Example
{|class="wikitable sortable" style="text-align:right"
|-
! Country !! Men !! Women !! Average !! Year !! Source
{{AFM|Algeria|33.5|29.8|2006|ref=algeria}}
{{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 | ||
|---|---|---|---|---|---|---|---|
| 33.5 | 29.8 | 31.7 | 3.7 | 1.12 | 2006 | [1] | |
| 30 | 27 | 28.5 | 3 | 1.11 | 2013 | [2] | |
| 31.1 | 29.1 | 30.1 | 2 | 1.07 | 2008 | [3] |
Notes
- ↑ This is a footnote
References
- ↑ Ministère de la Santé, de la Population et de la Réforme hospitalière and Office national des statistiques (December 2008). Suivi de la situation des enfants et des femmes. Enquête nationale à indicateurs multiples. Rapport principal (Report). p. 104.
|access-date=requires|url=(help)CS1 maint: uses authors parameter (link) - ↑ "United Nations World Marriage Patterns 2000". United Nations.
- ↑ Family Life - Marriage / Indicators of Well-being in Canada
Notes and references MUST have the original citation located directly within the respective notes or references section, within the notelist or reflist templates respectively.