Actions

Template

Template:PI object/doc

From Anthrodia Atlas

Description

This infobox template is built with the PortableInfobox (PI) extension. It should be used in articles about items and other inanimate objects.

Template parameters

ParameterDescriptionTypeStatus
Titletitle

Title (main header) of infobox; optional, by default uses page name.

Contentoptional
Imageimage

Image file which represent the group, 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
Typetype

Type of the object (weapon, device, building, etc).

Contentoptional
Creatorcreator

Name of or link to article about creator(s) of the object.

Contentoptional
Ownerowner

Name of or link to article about owner(s) of the object.

Contentoptional
Locationlocation

Name of or link to article about place where the object is located.

Contentoptional
Appearancefrom

Media installment(s) where the object appears.

Contentoptional

Syntax

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

{{PI object
|title = 
|image = 
|caption = 
|type = 
|creator = 
|owner = 
|location = 
|from = 
}}

Usage example

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

{{PI object
|title = Demon mask
|image = De Alice's Abenteuer im Wunderland Carroll pic 15.jpg
|caption = Demon mask in original [[Devilman (manga)|Devilman]] manga
|type = Artifact
|creator = [[Psycho Jenny]]
|owner = [[Professor Asuka]]
|location = [[Asuka mansion]]
|from = [[Devilman (manga)|Devilman]] (manga)
}}

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 "object" or whatever user prefers, so use that title instead of "PI object" in the beginning of the boilerplate code.
  • This documentation contains TemplateData to provide parameters in visual editor.