Template:NPC/doc: Difference between revisions

From Parallel Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
{{Infobox
{{Documentation header}}
|above = {{{name}}}
 
|image = [[File:{{{image}}}]]
This template provides an infobox for NPC/character pages.
|caption = {{{image_caption}}}
<pre style="display:table">
| label1 = Other names
{{NPC
| data1 = {{{other_names}}}
| name =
| label2 = Title
| image =
| data2 = {{{titles}}}
| image_caption =
| label3 = Gender
| other_names =
| data3 = {{{gender}}}
| titles =
| label4 = Species
| gender =
| data4 = {{{species}}}
| species =
| label5 = Affiliation
| affiliation =
| data5 = {{{affiliation}}}
| location =
| label6 = Occupation
| occupation =
| data6 = {{{occupation}}}
| relatives =
| label7 = Found in
| status =
| data7 = {{{location}}}
| buys =
| label8 = Relatives
| sells =
| data8 = {{{relatives}}}
| label9 = Status
| data9 = {{{status|Unknown}}}
| label10 = Buys
| data10 = {{{buys}}}
| label11 = Sells
| data11 = {{{sells}}}
}}
}}
</pre>


== TemplateData ==
<templatedata>
<templatedata>
{
{
Line 47: Line 42:
         "image_caption": {
         "image_caption": {
"label": "Image caption",
"label": "Image caption",
"description": "An optional caption for the image. Currently not working at the moment!",
"description": "An optional caption for the image.",
"type": "line"
"type": "line"
         },
         },

Revision as of 07:09, 1 November 2023

This is the documentation page. It should be transcluded into the main template page. See Template:Documentation for more information

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.

Template parameters

ParameterDescriptionTypeStatus
NPC namename

Will automatically enter based on page name

Example
Niall
Lineoptional
Imageimage

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.

Default
ParallelLogo.png
Example
Niall.svg
Filesuggested
Image captionimage_caption

An optional caption for the image.

Lineoptional
Other namesother_names

Any other names the NPC has been referred to with.

Linesuggested
Titlestitles

Any titles the NPC holds.

Example
King of the Sky Kingdom
Linesuggested
Gendergender

The gender of the NPC.

Linesuggested
Speciesspecies

The species of the NPC.

Example
Human
Linesuggested
Affiliationaffiliation

Groups the NPC is affiliated with.

Example
Sky Kingdom
Linesuggested
Found inlocation

Where in Parallel the NPC is stationed.

Example
Shopping District
Linesuggested
Occupationoccupation

Any occupation the NPC holds.

Example
Baker
Linesuggested
Relativesrelatives

Relatives of the NPC.

Example
Niall
Linesuggested
Statusstatus

The current status of the NPC.

Suggested values
Alive Deceased
Default
Unknown
Linesuggested
Buysbuys

Items the NPC buys.

Linesuggested
Found insells

Items the NPC sells.

Linesuggested