Template:Person in year
|
A decade navigational box for "{Person} in {Year}" categories
Usage
{{Person in year |1= |2= |3= |4= }}
The first three parameters represent the name of a person. These parameter values plus the fourth parameter (the year) should match the name of the category you are placing this template on (e.g. your category should be titled Category:{1} {2}{3} in {4}
).
This template will automatically set a default sort key value to enable sorting by last name (e.g. {{DEFAULTSORT:{2}, {1}{3}}}
). It will also add the category Category:{1} {2}{3} by year
. If that category doesn't exist, it will add Category:{1} {2}{3}
instead. (See the byyear
parameter for more info.) Both of these functions can be disabled by including the nocat=1
parameter.
Template parameters
Parameter | Description | Default | Status | |
---|---|---|---|---|
1 | first name | First (and middle) name(s) of the person (leave blank for mononymous people) | empty | optional |
2 | last name | Last name of the person (use this parameter for mononymous people) | empty | required |
3 | name suffix | A suffix after the name, including punctuation (e.g. , Jr. ). If your suffix begins with a space, you must either use unnamed parameters (e.g. don't include 3= at the beginning), or use the character code for a space:   . | empty | optional |
4 | year | The year number (BC years not supported) | empty | required |
nocat | no categories | Set to 1 to disable automatic inclusion of categories. | 0 | optional |
byyear by | use 'by year' category? | Set to 1 to use "Category:{Person} by year" as the parent category, or set to 0 to use "Category:{Person}" as the parent category. By default, the template will automatically pick the parent category based on whether or not "Category:{Person} by year" exists. (In general, you should not set this parameter at all unless you are running into issues with too many expensive parser function calls.) | empty | optional |
<templatedata>JSON</templatedata> ./. {{TemplateBox}}
TemplateData is a way to store information about template parameters (the description of those and of the whole template) for both humans and machines. It is used by VisualEditor and possibly other tools like Upload Wizard. Existing template documentation Newly created template documentation and imports Wikipedia's help about TemplateData • Commons-specific information A decade navigational box for "{Person} in {Year}" categories
|
Additional information
The template is intended to be used in the following namespaces: the Category namespace
The template is intended to be used by the following user groups: all users
Placement: At the top of the page
Relies on:
{{Decade years navbox}}
Example
{{Person in year|Cristiano|Ronaldo||2009}}
renders as:
See also
Localization
This template is not intended to be localized.