Difference between revisions of "Template:Character"

From The Kingkiller Chronicle Wiki
Jump to navigation Jump to search
(Let's try out the PortableInfoboxes extension)
m (Reverted edits by Corey (talk) to last revision by Multinerd)
Tag: Rollback
 
(10 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
<includeonly>
 
<includeonly>
<infobox>
+
<infobox layout="stacked">
 
   <title source="title">
 
   <title source="title">
     <default>{{PAGENAME}}</default>
+
     <default>'''{{PAGENAME}}'''</default>
 
   </title>
 
   </title>
 
   <image source="image">
 
   <image source="image">
Line 8: Line 8:
 
   </image>
 
   </image>
 
   <group>
 
   <group>
     <header>Biographical information</header>
+
     <header>Biographical Information</header>
 
     <data source="fullname">
 
     <data source="fullname">
 
       <label>Full name</label>
 
       <label>Full name</label>
 +
      <default>Unknown</default>
 +
    </data>
 +
<data source="alias">
 +
      <label>Alias(es)</label>
 +
      <default>None</default>
 +
    </data>
 +
<data source="age">
 +
      <label>Age</label>
 +
      <default>Unknown</default>
 
     </data>
 
     </data>
 
     <data source="gender">
 
     <data source="gender">
 
       <label>Gender</label>
 
       <label>Gender</label>
 +
      <default>Unknown</default>
 
     </data>
 
     </data>
 
     <data source="status">
 
     <data source="status">
 
       <label>Status</label>
 
       <label>Status</label>
 +
      <default>Unknown</default>
 
     </data>
 
     </data>
 +
<data source="family">
 +
      <label>Family Members</label>
 +
      <default>Unknown</default>
 +
    </data>
 
   </group>
 
   </group>
 
   <group>
 
   <group>
 
     <header>Appearance</header>
 
     <header>Appearance</header>
 +
  <data source="species">
 +
      <label>Species</label>
 +
      <default>Unknown</default>
 +
    </data>
 +
  <data source="ethnicity">
 +
      <label>Ethnicity</label>
 +
      <default>Unknown</default>
 +
    </data>
 
     <data source="eyecolor">
 
     <data source="eyecolor">
 
       <label>Eye color</label>
 
       <label>Eye color</label>
 +
      <default>Unknown</default>
 
     </data>
 
     </data>
 
     <data source="haircolor">
 
     <data source="haircolor">
 
       <label>Hair color</label>
 
       <label>Hair color</label>
 +
      <default>Unknown</default>
 +
    </data>
 +
    <data source="skincolor">
 +
      <label>Skin color</label>
 +
      <default>Unknown</default>
 +
    </data>
 +
</group>
 +
  <group>
 +
    <header>Personal Information</header>
 +
    <data source="occupation">
 +
      <label>Occupation</label>
 +
      <default>None</default>
 +
    </data>
 +
    <data source="field">
 +
      <label>Field of Study</label>
 +
      <default>None</default>
 +
    </data>
 +
    <data source="rank">
 +
      <label>Rank</label>
 +
      <default>Unknown</default>
 
     </data>
 
     </data>
 
   </group>
 
   </group>
Line 33: Line 77:
  
 
{{#switch: {{lc:{{{gender}}}}}
 
{{#switch: {{lc:{{{gender}}}}}
| female = [[Category:Gender:_Female]]
+
| female = [[Category:Gender:_Female]][[Character gender::Female| ]]
| male  = [[Category:Gender:_Male]]
+
| male  = [[Category:Gender:_Male]][[Character gender::Male| ]]
| unknown = [[Category:Gender:_Unknown]]
+
| unknown = [[Category:Gender:_Unknown]][[Character gender::Unknown| ]]
| #default = [[Category:Characters with an undefined gender]]
+
| #default = [[Category:Characters with an undefined gender]][[Character gender::Unknown| ]]
 
}}
 
}}
  
 
{{#switch: {{lc:{{{type}}}}}
 
{{#switch: {{lc:{{{type}}}}}
| background = [[Category:Background characters]]
+
| background = [[Category:Background characters]][[Character type::Background| ]]
| major = [[Category:Major Characters]]
+
| major = [[Category:Major Characters]][[Character type::Major| ]]
| #default = [[Category:Minor Characters]]
+
| #default = [[Category:Minor Characters]][[Character type::Minor| ]]
 
}}
 
}}
  
 
{{#switch: {{lc:{{{status}}}}}
 
{{#switch: {{lc:{{{status}}}}}
| alive = [[Category:Status:_Alive]]
+
| alive = [[Category:Status:_Alive]][[Character status::Alive| ]]
| deceased = [[Category:Status:_Deceased]]
+
| deceased = [[Category:Status:_Deceased]][[Character status::Deceased| ]]
| unknown = [[Category:Status:_Unknown]]
+
| unknown = [[Category:Status:_Unknown]][[Character status::Unknown| ]]
| #default = [[Category:Characters with an undefined status]]
+
| #default = [[Category:Status:_Unknown]][[Character status::Unknown| ]]
 
}}
 
}}
 
</includeonly>
 
</includeonly>
Line 57: Line 101:
 
{
 
{
 
"params": {
 
"params": {
 +
"age": {
 +
"label": "Age",
 +
"description": "The character's age, preferably in years.",
 +
"example": "18",
 +
"type": "string"
 +
},
 +
"alias": {
 +
"label": "Alias(es)",
 +
"description": "Alternate names for a character.",
 +
"example": "Kvothe Kingkiller, Maedre, Kvothe the Bloodless",
 +
"type": "string"
 +
},
 +
"ethnicity": {
 +
"label": "Ethnicity",
 +
"description": "The character's ethnicity.",
 +
"example": "Edema Ruh",
 +
"type": "string"
 +
},
 +
 
"eyecolor": {
 
"eyecolor": {
 
"label": "Eye color",
 
"label": "Eye color",
 
"description": "Character's eye color",
 
"description": "Character's eye color",
 
"example": "Green",
 
"example": "Green",
 +
"type": "string"
 +
},
 +
"family": {
 +
"label": "Family Members",
 +
"description": "Known members of someone's family.",
 +
"example": "Arliden, Laurian",
 +
"type": "string"
 +
},
 +
"field": {
 +
"label": "Field of Study",
 +
"description": "What a character is studying, either independently or at The University",
 +
"example": "Chemistry, Naming, Sympathy",
 
"type": "string"
 
"type": "string"
 
},
 
},
Line 87: Line 162:
 
"example": "[[File:MainPage-Kvothe.jpg]]",
 
"example": "[[File:MainPage-Kvothe.jpg]]",
 
"type": "wiki-file-name"
 
"type": "wiki-file-name"
 +
},
 +
"occupation": {
 +
"label": "Occupation",
 +
"description": "What the character does for a living, a job.",
 +
"example": "Student",
 +
"type": "string"
 +
},
 +
"rank": {
 +
"label": "Rank",
 +
"description": "What rank a character is",
 +
"example": "Re'lar, King, Maer",
 +
"type": "string"
 +
},
 +
"skincolor": {
 +
"label": "Skin Color",
 +
"description": "What color a character's skin is",
 +
"example": "Pale",
 +
"type": "string"
 +
},
 +
"species": {
 +
"label": "Species",
 +
"description": "What species a character is.",
 +
"example": "Human",
 +
"type": "string"
 
},
 
},
 
"status": {
 
"status": {

Latest revision as of 02:47, 27 December 2019


Template:Character/doc

Data

Show/hide template's data

The following information is used by extensions and applications, such as VisualEditor, to help users implement this template onto pages. Please ensure that it is up-to-date.

Creates an infobox for Character pages

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Ageage

The character's age, preferably in years.

Example
18
Stringoptional
Alias(es)alias

Alternate names for a character.

Example
Kvothe Kingkiller, Maedre, Kvothe the Bloodless
Stringoptional
Ethnicityethnicity

The character's ethnicity.

Example
Edema Ruh
Stringoptional
Eye coloreyecolor

Character's eye color

Example
Green
Stringoptional
Family Membersfamily

Known members of someone's family.

Example
Arliden, Laurian
Stringoptional
Field of Studyfield

What a character is studying, either independently or at The University

Example
Chemistry, Naming, Sympathy
Stringoptional
Full namefullname

Full name of the character

Example
Kvothe, son of Arliden
Stringoptional
Gendergender

Character's gender

Example
Male
Stringrequired
Hair colorhaircolor

Character's hair color

Example
Red
Stringoptional
Character imageimage

File link to the character image

Example
[[File:MainPage-Kvothe.jpg]]
Fileoptional
Occupationoccupation

What the character does for a living, a job.

Example
Student
Stringoptional
Rankrank

What rank a character is

Example
Re'lar, King, Maer
Stringoptional
Skin Colorskincolor

What color a character's skin is

Example
Pale
Stringoptional
Speciesspecies

What species a character is.

Example
Human
Stringoptional
Statusstatus

Character's status

Example
Alive
Stringrequired
Typetype

Type of character: Major/Minor

Example
Major
Stringoptional