Template:Persondata: Difference between revisions

From WDCL Wiki
Jump to navigation Jump to search
(Created page with "{{Documentation subpage}} {{high-risk|1,170,000+}}<!-- if updating this transclusion count template, please update the note in the lead section of WP:PDT --> {{AWB standar...")
 
No edit summary
 
Line 1: Line 1:
{{Documentation subpage}}
{| id="persondata" class="persondata noprint" style="border:1px solid #aaa; display:none; speak:none;"
{{high-risk|1,170,000+}}<!-- if updating this transclusion count template, please update the note in the lead section of [[WP:PDT]] -->
! colspan="2" | [[Wikipedia:Persondata|Persondata]]
{{AWB standard installation}}
|-
 
| class="persondata-label" style="color:#aaa;" | Name
==Description==
| {{{name|{{{NAME|}}}}}}
This metadata template provides for automatic data gathering and cataloging. It should be added to '''biographical''' articles (only). It must not be added to non-biographical articles, even if an article describes events related to a single individual. See [[Wikipedia:Persondata]] for the detailed documentation.
|-
 
| class="persondata-label" style="color:#aaa;" | Alternative names
Please consider using [[Wikipedia:Wikidata|Wikidata]] instead of adding new uses of this template. Eventually, when all existing uses have been converted over to Wikidata, this template will be deleted; but the conversion process is likely to take a long time, and this template is still useful to hold the data until the conversion process is finished.
| {{{alternative names|{{{ALTERNATIVE NAMES|}}}}}}
 
|-
==Usage==
| class="persondata-label" style="color:#aaa;" | Short description
<pre>
| {{{short description|{{{SHORT DESCRIPTION|}}}}}}
{{Persondata
|-
| NAME             =
| class="persondata-label" style="color:#aaa;" | Date of birth
| ALTERNATIVE NAMES =
| {{{date of birth|{{{DATE OF BIRTH|}}}}}}
| SHORT DESCRIPTION =
|-
| DATE OF BIRTH    =  
| class="persondata-label" style="color:#aaa;" | Place of birth
| PLACE OF BIRTH    =  
| {{{place of birth|{{{PLACE OF BIRTH|}}}}}}
| DATE OF DEATH    =
|-
| PLACE OF DEATH    =
| class="persondata-label" style="color:#aaa;" | Date of death
}}</pre>
| {{{date of death|{{{DATE OF DEATH|}}}}}}
 
|-
===Example===
| class="persondata-label" style="color:#aaa;" | Place of death
<pre>
| {{{place of death|{{{PLACE OF DEATH|}}}}}}
{{Persondata
|}<includeonly>{{main other
| NAME              = Magellan, Ferdinand
| {{#if: {{{name|{{{NAME|}}}}}}
| ALTERNATIVE NAMES = Magalhães, Fernão de (Portuguese); Magallanes, Fernando de (Spanish)
    |
| SHORT DESCRIPTION = Sea explorer
    | [[Category:Persondata templates without name parameter]]
| DATE OF BIRTH    = Spring 1480
  }}{{#if: {{{short description|{{{SHORT DESCRIPTION|}}}}}}
| PLACE OF BIRTH    = Sabrosa, Portugal
    |
| DATE OF DEATH    = April 27, 1521
    | [[Category:Persondata templates without short description parameter]]
| PLACE OF DEATH    = Mactan Island, Cebu, Philippines
  }}
}}</pre>
}}</includeonly><noinclude>
 
{{Documentation}}
==Maintenance categories==
</noinclude>
Articles containing Persondata with no value in either the {{para|NAME}} or {{para|SHORT DESCRIPTION}} parameters are automatically added to [[:Category:Persondata templates without name parameter]] or [[:Category:Persondata templates without short description parameter]], respectively.
 
==TemplateData==
{{TemplateDataHeader}}
<templatedata>{
"description": "This metadata template provides for automatic data gathering and cataloging. It should be added to biographical articles (only). It must not be added to non-biographical articles, even if an article describes events related to a single individual.",
"params": {
  "NAME": {
    "label": "Name",
    "description": "Example: Magellan, Ferdinand",
    "type": "string",
    "required": true
  },
  "ALTERNATIVE NAMES": {
    "label": "Alternative names",
    "description": "Example: Magalhães, Fernão de (Portuguese); Magallanes, Fernando de (Spanish)",
    "type": "string",
    "required": false
  },
  "SHORT DESCRIPTION": {
    "label": "Short description",
    "description": "Example: Sea explorer",
    "type": "string",
    "required": true
  },
  "DATE OF BIRTH": {
    "label": "Date of birth",
    "description": "Use exact date if known, but otherwise as close an approximation as possible. Example: Spring 1480",
    "type": "string",
    "required": false
  },
  "PLACE OF BIRTH": {
    "label": "Place of birth",
    "description": "Example: Sabrosa, Portugal",
    "type": "string",
    "required": false
  },
  "DATE OF DEATH": {
    "label": "Date of death",
    "description": "Use exact date if known, but otherwise as close an approximation as possible. Example: April 27, 1521",
    "type": "string",
    "required": false
  },
  "PLACE OF DEATH": {
    "label": "Place of death",
    "description": "Example: Mactan Island, Cebu, Philippines",
    "type": "string",
    "required": false
  }
}}</templatedata>
 
<includeonly>
{{#ifeq:{{SUBPAGENAME}}|sandbox | |
[[Category:Wikipedia utility templates]]
[[Category:People and person templates]]
[[Category:WikiProject Persondata]]
[[Category:Exclude in print]]
}}
</includeonly>

Latest revision as of 22:28, 29 December 2014

Documentation icon Template documentation[create]