Template:NPC/doc: Difference between revisions

No edit summary
 
(9 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": {
"species": {
Line 111: Line 129:
         "other_names",
         "other_names",
         "titles",
         "titles",
         "pronouns",
         "gender",
         "species",
         "species",
"affiliation",
"location",
"location",
"occupation",
"occupation",
"affiliation",
"relatives",
"relatives",
"status",
"status",
Line 123: 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 = Species
}}
| data4 = {{{species}}}
<pre style="display:table">
| label5 = Found in
{{NPC
| data5 = {{{location}}}
| image = Plains Armorer.png
| label6 = Occupation
| image_caption = Oh man dude
| data6 = {{{occupation}}}
| gender = Non-binary (they/them)
| label7 = Affiliation(s)
| species = Human (''Homo sapiens'')
| data7 = {{{affiliation}}}
| location = Unknown
| label8 = Relatives
| occupation = Swamp Witch
| data8 = {{{relatives}}}
| status = Unknown, presumed alive
| label9 = Status
| data9 = {{{status}}}
| label10 = Buys
| data10 = {{{buys}}}
| label11 = Sells
| data11 = {{{sells}}}
}}
}}
</pre>