Template:NPC/doc: Difference between revisions
Hypermoron (talk | contribs) No edit summary |
(→Some) |
||
(7 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{ | {{Documentation header}} | ||
This template provides an infobox for NPC/character pages. | |||
| | <pre style="display:table"> | ||
| | {{NPC | ||
| | | name = | ||
| | | image = | ||
| | | image_caption = | ||
| other_names = | |||
| | | titles = | ||
| gender = | |||
| | | species = | ||
| affiliation = | |||
| | | location = | ||
| | | occupation = | ||
| | | relatives = | ||
| status = | |||
| | | buys = | ||
| sells = | |||
| | |||
| | |||
| | |||
}} | }} | ||
</pre> | |||
== TemplateData == | |||
<templatedata> | <templatedata> | ||
{ | { | ||
Line 146: | Line 141: | ||
} | } | ||
</templatedata> | </templatedata> | ||
== Examples == | |||
=== Some === | |||
{{NPC | |||
| image = Plains Armorer.png | |||
| image_caption = Oh man dude | |||
| gender = Non-binary (they/them) | |||
| species = Human (''Homo sapiens'') | |||
| location = Unknown | |||
| occupation = Swamp Witch | |||
| status = Unknown, presumed alive | |||
}} | |||
<pre style="display:table"> | |||
{{NPC | |||
| image = Plains Armorer.png | |||
| image_caption = Oh man dude | |||
| gender = Non-binary (they/them) | |||
| species = Human (''Homo sapiens'') | |||
| location = Unknown | |||
| occupation = Swamp Witch | |||
| status = Unknown, presumed alive | |||
}} | |||
</pre> |
Latest revision as of 07:22, 1 November 2023
This template provides an infobox for NPC/character pages.
{{NPC | name = | image = | image_caption = | other_names = | titles = | gender = | species = | affiliation = | location = | occupation = | relatives = | status = | buys = | sells = }}
TemplateData
An infobox to serve as a quick reference on the right side of NPC pages.
Parameter | Description | Type | Status | |
---|---|---|---|---|
NPC name | name | Will automatically enter based on page name
| Line | optional |
Image | image | Refers to the image file stored on the wiki. Images should preferably be uploaded in .svg or .png and named the same as the NPC name in snake_case (e.g. totem_of_the_void.png). By default, the Parallel logo will be displayed, but you should always point this parameter to an NPC render or screenshot.
| File | suggested |
Image caption | image_caption | An optional caption for the image. | Line | optional |
Other names | other_names | Any other names the NPC has been referred to with. | Line | suggested |
Titles | titles | Any titles the NPC holds.
| Line | suggested |
Gender | gender | The gender of the NPC. | Line | suggested |
Species | species | The species of the NPC.
| Line | suggested |
Affiliation | affiliation | Groups the NPC is affiliated with.
| Line | suggested |
Found in | location | Where in Parallel the NPC is stationed.
| Line | suggested |
Occupation | occupation | Any occupation the NPC holds.
| Line | suggested |
Relatives | relatives | Relatives of the NPC.
| Line | suggested |
Status | status | The current status of the NPC.
| Line | suggested |
Buys | buys | Items the NPC buys. | Line | suggested |
Found in | sells | Items the NPC sells. | Line | suggested |
Examples
Some
Gender |
Non-binary (they/them) |
---|---|
Species |
Human (Homo sapiens) |
Occupation |
Swamp Witch |
Found in |
Unknown |
Unknown |
Unknown, presumed alive |
{ "extratext": "Oh man dude", "title": "Template:NPC/doc", "images": [ "Plains Armorer.png" ], "rows": [ { "field": "Non-binary (they/them)", "label": "Gender" }, { "field": "Human (''Homo sapiens'')", "label": "Species" }, { "field": "Swamp Witch", "label": "Occupation" }, { "field": "Unknown", "label": "Found in" }, { "field": "Unknown, presumed alive", "label": "Unknown" } ], "invimages": [] }
{{NPC | image = Plains Armorer.png | image_caption = Oh man dude | gender = Non-binary (they/them) | species = Human (''Homo sapiens'') | location = Unknown | occupation = Swamp Witch | status = Unknown, presumed alive }}