Template:Birth date and age WD

From Wikidata
Jump to navigation Jump to search
Documentation icon Template documentation[view · edit · history · purge ]

Sub-template that retrieves date of birth (P569), edits it and, if it does not exist date of death (P570), calculates the age and edits it after the date of birth.

It only works with Wikidata data for its calculations.

If the date of birth of the infotaula has been reported manually in the article call, it is recommended:

  • To upload the date of birth to WD, if it doesn't exist, and delete the manual data from the infobox call.

Syntax

[edit]

{{Birth date and age WD|birtdate=<birtdate> |item=<item>|lang=<lang> |temp_living=<template_name> |cat_living=<category_name>

Retrieves the date of birth of the active article or that given in the <item> parameter, which is optional. If <birtdate> is informed, this sub-template do not act and returns the manual parameter receive as a result. Therefore, it must be prepared with the expected content and format.

It allows you to categorize articles that use it in a category. It can be done by providing:

  • cat_living = category:xxxxxxx .... The template will add [[ ]] brackets to the text provide
  • temp_living = <template name to run> ..... Template will add template brackets {{ }}