Template:PersonLink

From NationStates Sports Wiki
(Redirected from Template:Pl)
Jump to navigation Jump to search

Example

Produces a link to the person specified, using a combination of names given. Requires at least one name to be passed.

Use like so: {{PersonLink|FirstName|LastName}} to produce LastName.

Can also use "Pl" as a shortcut, like {{pl|FirstName|LastName}} to produce the same output.

Usage

If a single name is passed, this will form the link in its entirety. For example {{pl|Neaniaõ}} would produce this link: Neaniaõ

For most people, a given name and family name will be provided. In those cases, if no value is passed to "t", the template will assume only the family name should be shown. For example, {{pl|Yannick|Coquet}} would produce this link: Coquet

In the case of a person who has a "common" name which is different to their given and family names, for example the RLStates player "Pele", whose full name was "Edson Arantes do Nascimento", and the link should point to the full name, you will need to pass all three names. So you would use {{pl|Edson Arantes|do Nascimento|Pele}}, which would then link the text "Pele" to "Edson Arantes do Nascimento". Though in such cases, it would probably be better to redirect "Pele" to "Edson Arantes do Nascimento" in the first place, and just pass {{pl|Pele}}. This same approach can be used for famous personalities who may be better known by a stage name, though again, it may be better to create redirects so the full name does not need to be typed out every time.

Here is a table of example combinations to illustrate:

Input Output
{{pl|Example}} Example
{{pl|Example|Person}} Person
{{pl|Example|Person|Mr. X}} Mr. X
{{pl|Example|d=actor, born 2000}} Example
{{pl|Example|Person|t=f|d=actor, born 2000}} Example Person
{{pl|Example|Person|t=s|d=actor, born 2000}} Example P.
{{pl|Example|Person|Mr. X|t=s|d=actor, born 2000}} Mr. X
{{pl|Example|Person|Mr. X|d=actor, born 2000}} Mr. X

Disambiguation clauses

If there are multiple well known players with the same common name (let's go with "Pele"), you would need to specify which one you want to link to. For this, use the "d" parameter. So if there were a second Neaniaõ, who played for Examplestan, maybe we would distinguish between them by adding "(Examplestani footballer)" to the end of his page title. In which case, {{pl|Neaniaõ}} would point to the wrong person. To get around that, we could pass the disambiguation to the "d" parameter of this template, like {{pl|Neaniaõ|d=Examplestani footballer}}, to produce a link to "Neaniaõ (Examplestani footballer)" instead.

Type values

There are also different ways to display the link. While the template will always concatenate the first two parameters passed to produce the link text, and then add the value passed to "d" at the end in brackets if present, we can change how this is displayed. If we only pass two values, the template will use the second one as the link text (on the assumption this is the family name, e.g. "Coquet"). If we pass three values, the third value will form the link text (on the assumption this is the common name, e.g. "Pele"), even if a value is passed to "t".

In all other cases, the template will look at the "t" value. The table below shows the different outputs.

t-value description example output
(blank) default setting: use the family name (second parameter) {{pl|Yannick|Coquet}} Coquet
(blank)
with third parameter
default setting: use the "common" name (third parameter) {{pl|Yannick|Coquet|Le Capitain}} Le Capitain
initial use the initial of the given name (first parameter),
and the family name (second parameter)
{{pl|Yannick|Coquet|t=i}} Y. Coquet
i
first use the given name (first parameter) {{pl|Yannick|Coquet|t=g}} Yannick
given
g
second use the given name (first parameter),
and the initial of the family name (second parameter)
{{pl|Yannick|Coquet|t=s}} Yannick C.
s
full use the given name (first parameter),
and the family name (second parameter)
(useful when disambiguation is needed)
{{pl|Yannick|Coquet|t=f|d=Akachese footballer}} Yannick Coquet
f