Difference between revisions of "Template:Creature"

From The Kingkiller Chronicle Wiki
Jump to navigation Jump to search
(Created page with "<includeonly> <infobox layout="stacked"> <title source="title"> <default>'''{{PAGENAME}}'''</default> </title> <image source="image"> <caption source="caption"/>...")
 
 
(One intermediate revision by one other user not shown)
Line 9: Line 9:
 
   <group>
 
   <group>
 
     <header>Biographical Information</header>
 
     <header>Biographical Information</header>
    <data source="fullname">
 
      <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 source="gender">
 
     <data source="gender">
 
       <label>Gender</label>
 
       <label>Gender</label>
Line 29: Line 17:
 
       <default>Unknown</default>
 
       <default>Unknown</default>
 
     </data>
 
     </data>
<data source="family">
+
    <data source="cause_of_death">
       <label>Family Members</label>
+
       <label>Cause of Death</label>
 
       <default>Unknown</default>
 
       <default>Unknown</default>
     </data>  
+
     </data>
 
   </group>
 
   </group>
 
   <group>
 
   <group>
Line 38: Line 26:
 
   <data source="species">
 
   <data source="species">
 
       <label>Species</label>
 
       <label>Species</label>
      <default>Unknown</default>
 
    </data>
 
  <data source="ethnicity">
 
      <label>Ethnicity</label>
 
      <default>Unknown</default>
 
    </data>
 
    <data source="eyecolor">
 
      <label>Eye color</label>
 
      <default>Unknown</default>
 
    </data>
 
    <data source="haircolor">
 
      <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>
 
       <default>Unknown</default>
 
     </data>
 
     </data>
Line 74: Line 31:
 
</infobox>
 
</infobox>
  
[[Category:Characters]]
+
[[Category:Creatures]]
 
 
{{#switch: {{lc:{{{gender}}}}}
 
| female = [[Category:Gender:_Female]][[Character gender::Female| ]]
 
| male  = [[Category:Gender:_Male]][[Character gender::Male| ]]
 
| unknown = [[Category:Gender:_Unknown]][[Character gender::Unknown| ]]
 
| #default = [[Category:Characters with an undefined gender]][[Character gender::Unknown| ]]
 
}}
 
 
 
{{#switch: {{lc:{{{type}}}}}
 
| background = [[Category:Background characters]][[Character type::Background| ]]
 
| major = [[Category:Major Characters]][[Character type::Major| ]]
 
| #default = [[Category:Minor Characters]][[Character type::Minor| ]]
 
}}
 
 
 
{{#switch: {{lc:{{{status}}}}}
 
| alive = [[Category:Status:_Alive]][[Character status::Alive| ]]
 
| deceased = [[Category:Status:_Deceased]][[Character status::Deceased| ]]
 
| unknown = [[Category:Status:_Unknown]][[Character status::Unknown| ]]
 
| #default = [[Category:Status:_Unknown]][[Character status::Unknown| ]]
 
}}
 
 
</includeonly>
 
</includeonly>
 
<noinclude>
 
<noinclude>
{{/doc}}
+
{{/doc}}<templatedata>
{{TemplateData|<templatedata>
 
 
{
 
{
 
"params": {
 
"params": {
"age": {
+
"title": {},
"label": "Age",
+
"image": {},
"description": "The character's age, preferably in years.",
+
"caption": {},
"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": {
 
"label": "Eye color",
 
"description": "Character's eye color",
 
"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"
 
},
 
"fullname": {
 
"label": "Full name",
 
"description": "Full name of the character",
 
"example": "Kvothe, son of Arliden",
 
"type": "string"
 
},
 
 
"gender": {
 
"gender": {
 
"label": "Gender",
 
"label": "Gender",
"description": "Character's gender",
+
"description": "Creature's gender",
 
"example": "Male",
 
"example": "Male",
 +
"type": "string",
 +
"suggested": true
 +
},
 +
"status": {
 +
"label": "Status",
 +
"description": "Creature's status",
 +
"example": "Alive",
 
"type": "string",
 
"type": "string",
 
"required": true
 
"required": true
 
},
 
},
"haircolor": {
+
"cause_of_death": {
"label": "Hair color",
+
"label": "Cause of Death",
"description": "Character's hair color",
+
"description": "How did the creature die?",
"example": "Red",
+
"example": "Scrael attack",
"type": "string"
+
"type": "string",
},
+
"suggested": true
"image": {
 
"label": "Character image",
 
"description": "File link to the character image",
 
"example": "[[File:MainPage-Kvothe.jpg]]",
 
"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": {
 
"species": {
 
"label": "Species",
 
"label": "Species",
"description": "What species a character is.",
+
"description": "What kind of creature is this?",
"example": "Human",
+
"example": "Horse",
"type": "string"
+
"type": "string",
},
+
"required": true
"status": {
 
"label": "Status",
 
"description": "Character's status",
 
"example": "Alive",
 
"required": true,
 
"type": "string"
 
},
 
"type": {
 
"label": "Type",
 
"description": "Type of character: Major/Minor",
 
"example": "Major",
 
"type": "string"
 
 
}
 
}
 
},
 
},
"description": "Creates an infobox for Character pages",
+
"description": "This template creates the Creature infobox",
 
"format": "block"
 
"format": "block"
 
}
 
}
</templatedata>}}
+
</templatedata>
 
</noinclude>
 
</noinclude>

Latest revision as of 19:38, 6 June 2021


Template:Creature/doc

This template creates the Creature infobox

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Titletitle

no description

Unknownoptional
Imageimage

no description

Unknownoptional
Captioncaption

no description

Unknownoptional
Gendergender

Creature's gender

Example
Male
Stringsuggested
Statusstatus

Creature's status

Example
Alive
Stringrequired
Cause of Deathcause_of_death

How did the creature die?

Example
Scrael attack
Stringsuggested
Speciesspecies

What kind of creature is this?

Example
Horse
Stringrequired