Jump to content

Template:PI character/doc: Difference between revisions

From We Are Calloway
m 1 revision imported
m update the sample data
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{documentation subpage}}
{{documentation subpage}}
{{ExtensionDependencies|PortableInfobox}}


=== Description ===
=== Description ===
Line 24: Line 23:
"label": "Nickname",
"label": "Nickname",
"description": "Nicknames used by or applied to the character; can be formatted inline with commas, separate lines with <br> or as bullet list with *.",
"description": "Nicknames used by or applied to the character; can be formatted inline with commas, separate lines with <br> or as bullet list with *.",
"type": "content"
},
"species": {
"label": "Species",
"description": "Species to which the character belongs to.",
"type": "content"
},
"nationality": {
"label": "Nationality",
"description": "Nationality to which the character belongs to.",
"type": "content"
"type": "content"
},
},
Line 45: Line 34:
"description": "Age of the character.",
"description": "Age of the character.",
"type": "number"
"type": "number"
},
"origin": {
"label": "Origin",
"description": "Place of origin of the character.",
"type": "content"
},
"title": {
"label": "Title",
"description": "Titles the character is known by. ",
"type": "content"
},
},
"occupation": {
"occupation": {
"label": "Occupation",
"label": "Occupation",
"description": "The character's job or role.",
"description": "The character's job or role.",
"type": "content"
},
"affiliation": {
"label": "Affiliation",
"description": "The groups or teams the character belongs to.",
"type": "content"
},
"alignment": {
"label": "Alignment",
"description": "The character's alignment (good, evil, etc). ",
"type": "content"
},
"power": {
"label": "Power",
"description": "The types of powers the character uses.",
"type": "content"
},
"weapon": {
"label": "Weapon",
"description": "The types of weapons the character uses.",
"type": "content"
},
"relationships": {
"label": "Relationships",
"description": "List of other characters and what type of relationships they have with character that is subject of the article.",
"type": "content"
},
"status": {
"label": "Status",
"description": "Possible status of the character.",
"type": "content"
},
"debut": {
"label": "First appearance",
"description": "First appearance (debut) of the character in media.",
"type": "content"
},
"creator": {
"description": "Name of or link to article about character's creator.",
"type": "content",
"label": "Creator"
},
"design": {
"label": "Designer",
"description": "Name of or link to article about character's designer.",
"type": "content"
},
"actor": {
"label": "Actor",
"description": "Name of or link to article about individual(s) (such as live action actors) who portrayed the character.",
"type": "content"
},
"voiceactor": {
"label": "Voice actor",
"description": "Name of or link to article about voice actor(s) who portrayed the character.",
"type": "content"
},
"disambig": {
"label": "Disambiguation page link",
"description": "Optional parameter to provide a link to corresponding disambiguation page; requires only name without link brackets ([[]]).",
"type": "content"
"type": "content"
},
},
Line 124: Line 43:
"label": "Image caption",
"label": "Image caption",
"description": "Caption text for image; optional. If <gallery> is used in image parameter, caption will be ignored.",
"description": "Caption text for image; optional. If <gallery> is used in image parameter, caption will be ignored.",
"type": "content"
},
"series": {
"label": "Series",
"description": "Name of the series (franchise) which the character belongs to.",
"type": "content"
"type": "content"
}
}
Line 139: Line 53:
"fullname",
"fullname",
"nickname",
"nickname",
"species",
"nationality",
"gender",
"gender",
"age",
"age",
"origin",
"occupation"
"title",
"occupation",
"affiliation",
"alignment",
"power",
"weapon",
"relationships",
"status",
"series",
"debut",
"creator",
"design",
"actor",
"voiceactor",
"disambig"
]
]
}
}
Line 166: Line 63:
<pre>
<pre>
{{PI character
{{PI character
|name =
|image =
|image =  
|caption =
|caption =  
|fullname =
|fullname =  
|nickname =
|nickname =  
|birthday =
|species =  
|age =
|nationality =  
|gender =
|gender =  
|family =
|age =  
|parents =
|origin =  
|siblings =
|title =  
|nieces =
|occupation =  
|nephews =
|affiliation =  
|aunts =
|alignment =  
|uncles =
|power =  
|cousins =
|weapon =  
|grandparents
|relationships =  
|pets =
|status =  
|partner =
|series =  
|spouse =
|debut =  
|history =
|creator =  
|highschool =
|design =  
|university =
|actor =  
|job =
|voiceactor =  
|haircolor =
|disambig =  
|eyecolor =
|height =
|bodyguard =  
}}</pre>
}}</pre>


=== Usage example ===
=== Usage example ===
Bellow is an example of template's code with filled up parameters:
Bellow is an example of template's code with filled up parameters:
<pre>
<pre>{{PI character
{{PI character
|image =
|name = Akira Fudo
|caption =
|image = De Alice's Abenteuer im Wunderland Carroll pic 15.jpg
|fullname = Ben Pirrip Cobalt
|caption = Akira Fudo in ''Devilman'' manga
|nickname =  
|nickname = Devilman
|birthday = March 29, 2022
|species = [[Devilmen|Devilman]]
|age = {{age|2022|03|22|2041}} in 2041
|nationality = Japanese
|gender = Male
|gender = Male
|age = Teenager
|family = [[Cobalt family]]
|occupation = Student
|parents =
|affiliation = Devilmen
* [[Connor Cobalt]]
|alignment = Good
* [[Rose Calloway]]
|power = super strength, super speed, high agility, flight, sharp teeth and claws, tail whip, regeneration, energy beam, fire breath
|siblings =
|relationships = Miki Makimura (love interest) <br>Ryo Asuka (friend)
|nieces = * [[Maeve Moretti]]
|series = [[Devilman (franshise)|Devilman]]
|nephews =
|debut = [[Devilman (TV)|Devilman]] (TV series)
|aunts =
|creator = [[Go Nagai]]
|uncles =
|design = Go Nagai
|cousins =
|voiceactor = [[w:Sho Hayami|Sho Hayami]] {{country flag|Japan}} (OVA)
|grandparents =
|disambig = Akira Fudo}}</pre>
|pets =
|partner = [[Harriet Fisher]]
|spouse =
|history =
|highschool = [[Dalton Academy]]
|university =
* [[University of Pennsylvania]]
* [[Manhattan Valley University]]
|job =
|haircolor =
|eyecolor =
|height =
|bodyguard = Chris Novak
}}</pre>


See the result on the right (links are omitted).
See the result on the right (links are omitted).
{{PI character
{{PI character
|name = Akira Fudo
|image =
|image = De Alice's Abenteuer im Wunderland Carroll pic 15.jpg
|caption =
|caption = Akira Fudo in ''Devilman'' manga
|fullname = Ben Pirrip Cobalt
|nickname = Devilman
|nickname =  
|species = Devilman
|birthday = March 29, 2022
|nationality = Japanese
|age = {{age|2022|03|22|2041}} in 2041
|gender = Male
|gender = Male
|age = Teenager
|family = [[Cobalt family]]
|occupation = Student
|parents =
|affiliation = Devilmen
* [[Connor Cobalt]]
|alignment = Good
* [[Rose Calloway]]
|power = super strength, super speed, high agility, flight, sharp teeth and claws, tail whip, regeneration, energy beam, fire breath
|siblings =
|relationships = Miki Makimura (love interest) <br>Ryo Asuka (friend)
|nieces = * [[Maeve Moretti]]
|series = Devilman
|nephews =
|debut = Devilman (TV series)
|aunts =
|creator = Go Nagai
|uncles =
|design = Go Nagai
|cousins =
|voiceactor = Sho Hayami {{country flag|Japan}} (OVA)
|grandparents =
|disambig = Akira Fudo}}
|pets =
|partner = [[Harriet Fisher]]
|spouse =
|history =
|highschool = [[Dalton Academy]]
|university =
* [[University of Pennsylvania]]
* [[Manhattan Valley University]]
|job =
|haircolor =
|eyecolor =
|height =
|bodyguard = Chris Novak
}}


=== Notes ===
=== Notes ===

Latest revision as of 15:28, 4 October 2025

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

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.