Difference between revisions of "Template:AFM/doc"

From blackwiki
Jump to navigation Jump to search
blackwiki>Bungle
(age gap addition)
m (6 revisions imported)
 
(3 intermediate revisions by 2 users not shown)
Line 9: Line 9:
  
 
===Parameters===
 
===Parameters===
 +
* {{para|ref|NAME}}, <strong>advisory</strong>, defines a reference to a ''citation''
 +
* {{para|fn|NAME}}, <strong>optional</strong>, defines a reference to a ''footnote''
 
* {{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|ref|NAME}}, <strong>optional</strong>, defines a reference to a ''citation''
 
 
* {{para|flag|no}}, <strong>optional</strong>, disables the ''flag'' icon (retains flag space)
 
* {{para|flag|no}}, <strong>optional</strong>, disables the ''flag'' icon (retains flag space)
 +
* {{para|style|bold OR italic}}, <strong>optional</strong>, defines whether the row should be styled in ''italic'' or '''bold'''
  
 
==Example==
 
==Example==
 
   <nowiki>{|class="wikitable sortable" style="text-align:right"
 
   <nowiki>{|class="wikitable sortable" style="text-align:right"
 
   |-
 
   |-
   ! Country !! Men !! Women !! Average !! Age Gap !! Year !! Source
+
   ! Country !! Men !! Women !! Average !! Age Gap !! Age Ratio !! Year !! Source
 
   {{AFM|Algeria|33.5|29.8|2006|ref=algeria}}
 
   {{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}}
 +
  {{AFM|Micronesia|27.5|25.5|2010|ref=micronesia|style=italic}}
 
   {{AFM|Nauru|21.2|22.8|2007|ref=nauru|fn=fn3}}</nowiki>
 
   {{AFM|Nauru|21.2|22.8|2007|ref=nauru|fn=fn3}}</nowiki>
 
   <nowiki>|}</nowiki>
 
   <nowiki>|}</nowiki>
Line 28: Line 30:
 
{|class="wikitable sortable" style="text-align:right"
 
{|class="wikitable sortable" style="text-align:right"
 
|-
 
|-
! Country !! Men !! Women !! Average !! Age Gap !! Year !! Source
+
! Country !! Men !! Women !! Average !! Age Gap !! Age Ratio !! Year !! Source
 
{{AFM|Algeria|33.5|29.8|2006|ref=algeria}}
 
{{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}}
 +
{{AFM|Micronesia|27.5|25.5|2010|ref=micronesia|style=italic}}
 
{{AFM|Nauru|21.2|22.8|2007|ref=nauru|fn=fn3}}
 
{{AFM|Nauru|21.2|22.8|2007|ref=nauru|fn=fn3}}
 
|}
 
|}
Line 43: Line 46:
 
====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="algeria">{{cite report |author=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 }}</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>
<ref name="nauru">{{cite report |author= |author-link= |authors= |date=2009 |title=Republic of Nauru Demographic and Health Survey 2007 |url= |publisher=The Nauru Bureau of Statistics, the Secretariat of the Pacific Community, and Macro International Inc. |page=77 |docket= |access-date=3 September 2016 |quote= |isbn=978-982-00-0333-0 }}</ref>
+
<ref name="micronesia">{{cite report |author= |author-link= |authors= |date=2010 |title=Summary Analysis of Key Indicators from the FSM 2010 Census of Population and Housing |url=http://prism.spc.int/images/census_reports/FSM_2010_Census_Indicators_Final.pdf |publisher= FSM Office of Statistics, Budget, Overseas  Development Assistance and Compact |page=8 |docket= |access-date=3 September 2016 |quote= |isbn= }}</ref>
 +
<ref name="nauru">{{cite report |author= |author-link= |authors= |date=2009 |title=Republic of Nauru Demographic and Health Survey 2007 |url= |publisher=The Nauru Bureau of Statistics, the Secretariat of the Pacific Community, and Macro International Inc. |page=77 |docket= |quote= |isbn=978-982-00-0333-0 }}</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.
 
Notes and references MUST have the original citation located directly within the respective notes or references section, within the ''notelist'' or ''reflist'' templates respectively.

Latest revision as of 17:00, 15 October 2020

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. The age gap between males and females will also be displayed (negative denotes average older female age).

Parameters

  • |ref=NAME, advisory, defines a reference to a citation
  • |fn=NAME, optional, defines a reference to a footnote
  • |avg=NUM, optional, defines a manually entered average value
  • |flag=no, optional, disables the flag icon (retains flag space)
  • |style=bold OR italic, optional, defines whether the row should be styled in italic or bold

Example

 {|class="wikitable sortable" style="text-align:right"
  |-
  ! Country !! Men !! Women !! Average !! Age Gap !! Age Ratio !! 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}}
  {{AFM|Micronesia|27.5|25.5|2010|ref=micronesia|style=italic}}
  {{AFM|Nauru|21.2|22.8|2007|ref=nauru|fn=fn3}}
 |}

will create..

Country Men Women Average Age Gap Age Ratio 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]
 Canada 31.1 29.1 30.1 2 1.07 2008 [3]
 F.S. Micronesia 27.5 25.5 26.5 2 1.08 2010 [4]
 Nauru[lower-alpha 2] 21.2 22.8 22 -1.6 0.93 2007 [5]

Notes

  1. This is a footnote
  2. Those surveyed were aged 20-49

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.
  2. "United Nations World Marriage Patterns 2000". United Nations.
  3. Family Life - Marriage / Indicators of Well-being in Canada
  4. Summary Analysis of Key Indicators from the FSM 2010 Census of Population and Housing (PDF) (Report). FSM Office of Statistics, Budget, Overseas Development Assistance and Compact. 2010. p. 8. Retrieved 3 September 2016.
  5. Republic of Nauru Demographic and Health Survey 2007 (Report). The Nauru Bureau of Statistics, the Secretariat of the Pacific Community, and Macro International Inc. 2009. p. 77. ISBN 978-982-00-0333-0.

Notes and references MUST have the original citation located directly within the respective notes or references section, within the notelist or reflist templates respectively.