Template:PI character/doc

From The Soulbreach Algorithm
Revision as of 14:12, 7 August 2024 by mirahaze>Legroom (+ cat)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Template:Mbox

Description

<templatedata> { "params": { "name": { "label": "Name", "description": "Name of the character which will appear as main header of the infobox; optional, by default uses page name.", "type": "content" }, "image": { "label": "Image", "description": "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.", "type": "wiki-file-name" }, "fullname": { "label": "Full name", "description": "Full name of the character is available.", "type": "content" }, "nickname": { "label": "Nickname", "description": "Nicknames used by or applied to the character; can be formatted inline with commas, separate lines with
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" }, "gender": { "label": "Gender", "description": "Gender of the character.", "type": "content" }, "age": { "label": "Age", "description": "Age of the character.", "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": { "label": "Occupation", "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" }, "caption": { "label": "Image caption", "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" } }, "description": "This infobox template is built with the PortableInfobox (PI) extension. It should be used in articles about fictional characters.", "paramOrder": [ "name", "image", "caption", "fullname", "nickname", "species", "nationality", "gender", "age", "origin", "title", "occupation", "affiliation", "alignment", "power", "weapon", "relationships", "status", "series", "debut", "creator", "design", "actor", "voiceactor", "disambig" ] } </templatedata>

Syntax

Bellow is a boilerplate of infobox which can be copied and filled up in source editor:

{{PI character
|name = 
|image = 
|caption = 
|fullname = 
|nickname = 
|species = 
|nationality = 
|gender = 
|age = 
|origin = 
|title = 
|occupation = 
|affiliation = 
|alignment = 
|power = 
|weapon = 
|relationships = 
|status = 
|series = 
|debut = 
|creator = 
|design = 
|actor = 
|voiceactor = 
|disambig = 
}}

Usage example

Bellow is an example of template's code with filled up parameters:

{{PI character
|name = Akira Fudo
|image = De Alice's Abenteuer im Wunderland Carroll pic 15.jpg
|caption = Akira Fudo in ''Devilman'' manga
|nickname = Devilman
|species = [[Devilmen|Devilman]]
|nationality = Japanese
|gender = Male
|age = Teenager
|occupation = Student
|affiliation = Devilmen
|alignment = Good
|power = super strength, super speed, high agility, flight, sharp teeth and claws, tail whip, regeneration, energy beam, fire breath
|relationships = Miki Makimura (love interest) <br>Ryo Asuka (friend)
|series = [[Devilman (franshise)|Devilman]]
|debut = [[Devilman (TV)|Devilman]] (TV series)
|creator = [[Go Nagai]]
|design = Go Nagai
|voiceactor = [[w:Sho Hayami|Sho Hayami]] {{country flag|Japan}} (OVA)
|disambig = Akira Fudo}}

See the result on the right (links are omitted). <infobox>

    <title source="name"><default>PI character/doc</default></title>
    <navigation>Devilman character</navigation>

<image source="image"></image> <label>Full name</label> <label>Nicknames</label> <header>Characteristics</header> <label>Species</label> <label>Nationality</label> <label>Gender</label> <label>Age</label> <label>Origin</label> <label>Title</label> <label>Occupation</label> <label>Affiliation</label> <label>Alignment</label> <label>Power(s)</label> <label>Weapon(s)</label> <label>Relationships</label> <label>Status</label> <header>Media</header> <label>Debut</label> <label>Created by</label> <label>Designed by</label> <label>Portrayed by</label> <label>Voiced by</label> <navigation>For other versions of this character see:
Disambiguation:Akira Fudo</navigation> </infobox>

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.