Template:PI object/doc
From Anthrodia Atlas
| This is a documentation subpage for Template:PI object. It contains usage information, categories and other content that is not part of the original page. |
Description
This infobox template is built with the PortableInfobox (PI) extension. It should be used in articles about items and other inanimate objects.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Title | title | Title (main header) of infobox; optional, by default uses page name. | Content | optional |
| Image | image | 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. | File | optional |
| Image caption | caption | Caption text for image; optional. If <gallery> is used in image parameter, caption will be ignored. | Content | optional |
| Type | type | Type of the object (weapon, device, building, etc). | Content | optional |
| Creator | creator | Name of or link to article about creator(s) of the object. | Content | optional |
| Owner | owner | Name of or link to article about owner(s) of the object. | Content | optional |
| Location | location | Name of or link to article about place where the object is located. | Content | optional |
| Appearance | from | Media installment(s) where the object appears. | Content | optional |
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.csspage 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.