Template:AFM/doc

From blackwiki
< Template:AFM
Revision as of 19:13, 19 July 2017 by blackwiki>Bungle (expand doc)
Jump to navigation Jump to search

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
 Algeria 33.5 29.8 31.7 3.7 1.12 2006 [1]
 Brazil[lower-alpha 1] 30 27 28.5 3 1.11 2013 [2]
23x15px Canada 31.1 29.1 30.1 2 1.07 2008 [3]

Notes

  1. This is a footnote

References

  1. 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)
  2. "United Nations World Marriage Patterns 2000". United Nations.
  3. 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.