Template:NPC/doc: Difference between revisions

(Created page with "<templatedata> { "description": "An infobox to serve as a quick reference on the right side of NPC pages.", "params": { "name": { "label": "NPC name", "description": "Will automatically enter based on page name", "example": "Niall", "type": "line" }, "image": { "label": "Image", "description": "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....")
 
 
(10 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 35: Line 58:
             "suggested": true
             "suggested": true
         },
         },
         "pronouns": {
         "gender": {
"label": "Pronouns",
"label": "Gender",
"description": "Pronouns the NPC uses.",
"description": "The gender of the NPC.",
"type": "line",
"type": "line",
             "suggested": true,
             "suggested": true
            "suggestedvalues": [
        "he/him",
        "she/her",
        "they/them"
        ]
         },
         },
"species": {
"label": "Species",
"description": "The species of the NPC.",
"example": "Human",
"type": "line",
            "suggested": true
},
"location": {
"location": {
"label": "Found in",
"label": "Found in",
Line 104: Line 129:
         "other_names",
         "other_names",
         "titles",
         "titles",
         "pronouns",
         "gender",
        "species",
"affiliation",
"location",
"location",
"occupation",
"occupation",
"affiliation",
"relatives",
"relatives",
"status",
"status",
Line 115: Line 141:
}
}
</templatedata>
</templatedata>
This is an example NPC infobox, showing all available parameters.
 
{{Infobox
== Examples ==
|above = {{{name}}}
=== Some ===
|image = [[File:{{{image}}}]]
{{NPC
|caption = {{{image_caption}}}
| image = Plains Armorer.png
| label1 = Other names
| image_caption = Oh man dude
| data1 = {{{other_names}}}
| gender = Non-binary (they/them)
| label2 = Title(s)
| species = Human (''Homo sapiens'')
| data2 = {{{titles}}}
| location = Unknown
| label3 = Pronouns
| occupation = Swamp Witch
| data3 = {{{pronouns}}}
| status = Unknown, presumed alive
| label4 = Found in
}}
| data4 = {{{location}}}
<pre style="display:table">
| label5 = Occupation
{{NPC
| data5 = {{{occupation}}}
| image = Plains Armorer.png
| label6 = Affiliation(s)
| image_caption = Oh man dude
| data6 = {{{affiliation}}}
| gender = Non-binary (they/them)
| label7 = Relatives
| species = Human (''Homo sapiens'')
| data7 = {{{relatives}}}
| location = Unknown
| label8 = Status
| occupation = Swamp Witch
| data8 = {{{status}}}
| status = Unknown, presumed alive
| label9 = Buys
| data9 = {{{buys}}}
| label10 = Sells
| data10 = {{{sells}}}
}}
}}
</pre>