Template:PI character: Difference between revisions
miraheze developers>Legroom No edit summary |
m update the data |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 6: | Line 6: | ||
<data source="nickname"><label>Nicknames</label></data> | <data source="nickname"><label>Nicknames</label></data> | ||
<header>Characteristics</header> | <header>Characteristics</header> | ||
<data source=" | <data source="birthday"><label>Birthday</label></data> | ||
<data source=" | <data source="age"><label>Age</label></data> | ||
<data source="gender"><label>Gender</label></data> | <data source="gender"><label>Gender</label></data> | ||
<data source=" | <data source="family"><label>Family</label></data> | ||
<data source=" | <header>Family</header> | ||
<data source=" | <data source="parents"><label>Parents</label></data> | ||
<data source=" | <data source="siblings"><label>Siblings</label></data> | ||
<data source=" | <data source="nieces"><label>Nieces</label></data> | ||
<data source=" | <data source="nephews"><label>Nephews</label></data> | ||
<data source=" | <data source="aunts"><label>Aunts</label></data> | ||
<data source=" | <data source="uncles"><label>Uncles</label></data> | ||
<data source=" | <data source="cousins"><label>Cousins</label></data> | ||
<data source=" | <data source="grandparents"><label>Grandparents</label></data> | ||
<data source="pets"><label></label>Pets</data> | |||
<data source=" | <header>Relationships</header> | ||
<data source=" | <data source="partner"><label>Partner</label></data> | ||
<data source=" | <data source="spouse"><label>Spouse</label></data> | ||
<data source=" | <data source="history"><label>Prior</label></data> | ||
<data source=" | <header>Education & Occupation</header> | ||
<data source="highschool"><label>High school</label></data> | |||
<data source="university"><label>University</label></data> | |||
<data source="job"><label>Occupation</label></data> | |||
<header>Appearance</header> | |||
<data source="haircolor"><label>Hair colour</label></data> | |||
<data source="eyecolor"><label>Eye colour</label></data> | |||
<data source="height"><label>Height</label></data> | |||
<header>Security</header> | |||
<data source="bodyguard"><label>Bodyguard</label></data> | |||
<navigation>{{#if: {{{disambig|}}} |For other versions of this character see:<br>[[Disambiguation:{{{disambig|}}}]]}}</navigation> | <navigation>{{#if: {{{disambig|}}} |For other versions of this character see:<br>[[Disambiguation:{{{disambig|}}}]]}}</navigation> | ||
</infobox><noinclude>{{ | </infobox><noinclude>{{Documentation}}</noinclude> | ||
Latest revision as of 15:12, 4 October 2025
It contains usage information, categories, and other content that is not part of the original template page.
Description
This infobox template is built with the PortableInfobox (PI) extension. It should be used in articles about fictional characters.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Name | name | Name of the character which will appear as main header of the infobox; optional, by default uses page name. | Content | optional |
| Image | image | Image file which represent the character, to be used in infobox; should be just name of the file with file extension. Can support several images with the use of <gallery> tag. | File | optional |
| Image caption | caption | Caption text for image; optional. If <gallery> is used in image parameter, caption will be ignored. | Content | optional |
| Full name | fullname | Full name of the character is available. | Content | optional |
| Nickname | nickname | Nicknames used by or applied to the character; can be formatted inline with commas, separate lines with <br> or as bullet list with *. | Content | optional |
| Gender | gender | Gender of the character. | Content | optional |
| Age | age | Age of the character. | Number | optional |
| Occupation | occupation | The character's job or role. | Content | optional |
Syntax
Bellow is a boilerplate of infobox which can be copied and filled up in source editor:
{{PI character
|image =
|caption =
|fullname =
|nickname =
|birthday =
|age =
|gender =
|family =
|parents =
|siblings =
|nieces =
|nephews =
|aunts =
|uncles =
|cousins =
|grandparents
|pets =
|partner =
|spouse =
|history =
|highschool =
|university =
|job =
|haircolor =
|eyecolor =
|height =
|bodyguard =
}}
Usage example
Bellow is an example of template's code with filled up parameters:
{{PI character
|image =
|caption =
|fullname = Ben Pirrip Cobalt
|nickname =
|birthday = March 29, 2022
|age = {{age|2022|03|22|2041}} in 2041
|gender = Male
|family = [[Cobalt family]]
|parents =
* [[Connor Cobalt]]
* [[Rose Calloway]]
|siblings =
|nieces = * [[Maeve Moretti]]
|nephews =
|aunts =
|uncles =
|cousins =
|grandparents =
|pets =
|partner = [[Harriet Fisher]]
|spouse =
|history =
|highschool = [[Dalton Academy]]
|university =
* [[University of Pennsylvania]]
* [[Manhattan Valley University]]
|job =
|haircolor =
|eyecolor =
|height =
|bodyguard = Chris Novak
}}
See the result on the right (links are omitted).
Notes
These are notes provided by Miraheze Developers Wiki (they can be removed after import):
- When importing this template to another wiki, you should enable extension PortableInfobox at Special:ManageWiki/extensions#mw-section-parserhooks, and might need to make an empty or small edit in newly created template for it to start working.
- To change visual appearance of portable infobox, modify its CSS at wiki's
MediaWiki:Common.csspage or by using TemplateStyles extension. - Upon import to another wiki the title can be changed to just "character" or whatever user prefers, so use that title instead of "PI character" in the beginning of the boilerplate code.
- This documentation contains TemplateData to provide parameters in visual editor.
Add categories to the /doc subpage. Subpages of this template.