NHL Wiki
Advertisement


Template documentation (for the above template, sometimes hidden or invisible)

Template loop detected: Template:Documentation subpage

This template returns the number of full years between two specified dates. If the second set of parameters is not included, it will return the number of full years between a specified date and today's date.

Syntax:
{{age|year1|month1|day1|year2|month2|day2}} or
{{age|year1|month1|day1}}
Examples:
{{age|1989|7|23|2003|7|14}} returns "13"
{{age|1989|7|23}} returns "32"
When using this template to calculate a person's age at death or a person's age on a specified date (rather than the person's current age), please substitute it into the page.
Example: {{subst:age|1989|7|23|2003|7|14}}
Note:
This template does not check for incorrect input:
{{age|1980|7|14|1993|6|233}} returns "12" (surplus days do not count as extra months)
{{age|1980|7|14|1993|88|14}} returns "13" (surplus months do not count as extra years)

See also

  • {{age in years and days}} — Age in years and days
  • {{age in days}} — Age in days
  • {{birth date and age}} — Displays birth date and age
  • {{birth date and age2}} — Displays birth date and age as of a specified date
  • {{Age nts}} — Like this template, but will sort correctly in sortable tables.
  • Wikipedia:Age calculation templates

id:Templat:Umur ba:Ҡалып:Йәш bg:Шаблон:Age ca:Plantilla:Edat cs:Šablona:Věk da:Skabelon:Alder de:Vorlage:Alter dsb:Pśedłoga:Starstwo es:Plantilla:Edad eo:Ŝablono:Aĝo eu:Txantiloi:Adina fr:Modèle:Âge gl:Modelo:Idade ko:틀:나이 hsb:Předłoha:Staroba os:Шаблон:Кар it:Template:Età ja:Template:年数 no:Mal:Alder pt:Predefinição:Idade ro:Format:Age ru:Шаблон:Возраст sq:Stampa:Mosha simple:Template:Age sl:Predloga:Starost uk:Шаблон:Вік vi:Bản mẫu:Tuổi zh:Template:Age

Template:Intricate template

Instructions

  • The template is intended for conversion of heights specified in either meters, or in feet and inches. Meters are converted to feet and inches, and feet and inches are converted to meters.
  • As this template is intended for use in infoboxes, the units on both sides of the conversion are abbreviated by default. When using this template outside of infoboxes, use the abbr parameter, which can take values of yes (default; both sides of the conversion are abbreviated), no (both sides of the conversion are spelled out), or mos (WP:MOSNUM-compliant format, where the units being converted are spelled out and the units of the converted values are abbreviated).
  • For conversion of meters to feet/inches, the frac parameter can be specified to either show the output inches as decimals (frac=10) or as a vulgar fraction (frac=desired denominator; the default is 2 for halves). The frac parameter is ignored for conversion of feet/inches to meters.
  • When decimal output is used, the default precision is 1 for meters-to-feet/inches conversion and 2 for feet/inches-to-meters conversion, but it can be overridden by specifying a different figure using the precision parameter (see example below). The precision parameter is ignored when frac is set to anything but 10.
  • wiki parameter specifies whether the names of the units should be wikified or not and can take values of either yes or no. The default value is no.

Code

Code Result
{{height|m=1.72}} Template:M to ft in
{{height|m=1.72|precision=0}} Template:M to ft in
{{height|m=1.72|frac=16}} Template:M to ft in
{{height|ft=6}} 6 ft 0 in (1.83 m)
{{height|ft=6|in=1}} 6 ft 1 in (1.85 m)
{{height|ft=6|in=1|precision=1}} 6 ft 1 in (1.9 m)
{{height|in=10}} 0 ft 10 in (0.25 m)
{{height|m=1.72|abbr=no}} Template:M to ft in
{{height|ft=6|in=2|abbr=mos}} 6 feet 2 inches (1.88 m)
{{height|ft=6|in=2|wiki=yes}} ft 2 in (1.88 m)
{{height|m=6|ft=2}} Error: please specify only imperial or only metric units
  • m is for meters
  • ft is for feet
  • in is for inches

See also

ca:Plantilla:Height es:Plantilla:Altura ja:Template:Height no:Mal:Høyde zh:Template:Height


Visit Template:Height/doc to edit this text! (How does this work?)
Advertisement