Jump to content

Template:PI character: Difference between revisions

From We Are Calloway
m 1 revision imported
m update the data
 
(One intermediate revision 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="species"><label>Species</label></data>
             <data source="birthday"><label>Birthday</label></data>
             <data source="nationality"><label>Nationality</label></data>
             <data source="age"><label>Age</label></data>
             <data source="gender"><label>Gender</label></data>
             <data source="gender"><label>Gender</label></data>
             <data source="age"><label>Age</label></data>
             <data source="family"><label>Family</label></data>
             <data source="origin"><label>Origin</label></data>
          <header>Family</header>
             <data source="title"><label>Title</label></data>
            <data source="parents"><label>Parents</label></data>
             <data source="occupation"><label>Occupation</label></data>
             <data source="siblings"><label>Siblings</label></data>
             <data source="affiliation"><label>Affiliation</label></data>
             <data source="nieces"><label>Nieces</label></data>
             <data source="alignment"><label>Alignment</label></data>
             <data source="nephews"><label>Nephews</label></data>
             <data source="power"><label>Power(s)</label></data>
             <data source="aunts"><label>Aunts</label></data>
             <data source="weapon"><label>Weapon(s)</label></data>
             <data source="uncles"><label>Uncles</label></data>
             <data source="relationships"><label>Relationships</label></data>
             <data source="cousins"><label>Cousins</label></data>
             <data source="status"><label>Status</label></data>
             <data source="grandparents"><label>Grandparents</label></data>
        <header>Media</header>
             <data source="pets"><label></label>Pets</data>
             <data source="debut"><label>Debut</label></data>
          <header>Relationships</header>
             <data source="creator"><label>Created by</label></data>
            <data source="partner"><label>Partner</label></data>
             <data source="design"><label>Designed by</label></data>
             <data source="spouse"><label>Spouse</label></data>
             <data source="actor"><label>Portrayed by</label></data>
            <data source="history"><label>Prior</label></data>
             <data source="voiceactor"><label>Voiced by</label></data>
          <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>{{Simplest documentation}}</noinclude>
</infobox><noinclude>{{Documentation}}</noinclude>

Latest revision as of 15:12, 4 October 2025

Template Documentation[view | edit | history | purge]
This is a template documentation subpage for Template:PI character.
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.

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Namename

Name of the character which will appear as main header of the infobox; optional, by default uses page name.

Contentoptional
Imageimage

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.

Fileoptional
Image captioncaption

Caption text for image; optional. If <gallery> is used in image parameter, caption will be ignored.

Contentoptional
Full namefullname

Full name of the character is available.

Contentoptional
Nicknamenickname

Nicknames used by or applied to the character; can be formatted inline with commas, separate lines with <br> or as bullet list with *.

Contentoptional
Gendergender

Gender of the character.

Contentoptional
Ageage

Age of the character.

Numberoptional
Occupationoccupation

The character's job or role.

Contentoptional

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.css page 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.
The above documentation is transcluded from Template:PI character/doc. (edit | history)
Add categories to the /doc subpage. Subpages of this template.