Difference between revisions of "Template:Character"

From The Coppermind
Jump to navigation Jump to search
m
(some changes)
Line 3: Line 3:
   
 
-->|1=
 
-->|1=
{{#if:{{{image|}}}|{{row/image|{{{image}}}}}|}}
+
{{#if:{{{image|}}} |{{row/image |{{{image}}} }}|}}
  +
 
<!-- family -->
 
<!-- family -->
  +
{{#if:<!--
{{#if:{{{parents|}}}<!-- -->{{{spouse|}}}<!-- -->{{{siblings|}}}<!-- -->{{{children|}}}<!--
 
-->{{{ancestors|}}}<!-- -->{{{relatives|}}}<!-- -->{{{descendants|}}}<!-- -->|
+
-->{{{parents|}}}<!-- -->{{{spouse|}}}<!--
 
-->{{{siblings|}}}<!-- -->{{{children|}}}<!--
{{character/family|notable={{{merge-family|}}}
 
  +
-->{{{ancestors|}}}<!--
|family={{{family|{{#if:{{{merge-family|}}}|<!-- -->|Family}}|}}}
 
|ancestors={{{ancestors|}}}
+
-->{{{relatives|}}}<!--
|parents={{{parents|}}}
+
-->{{{descendants|}}}<!--
  +
-->|
|siblings={{{siblings|}}}
 
  +
{{character/family
|spouse={{{spouse|}}}
 
|children={{{children|}}}
+
|merge = {{{merge-family|}}}
 
|family = {{{family|{{#if:{{{merge-family|}}}|<!-- -->|Family}}|}}}
|relatives={{{relatives|}}}
 
|descendants={{{descendants|}}}
+
|ancestors = {{{ancestors|}}}
  +
|parents = {{{parents|}}}
 
|siblings = {{{siblings|}}}
 
|spouse = {{{spouse|}}}
  +
|children = {{{children|}}}
 
|relatives = {{{relatives|}}}
  +
|descendants = {{{descendants|}}}
 
}}<!-- make family-only a row -->
 
}}<!-- make family-only a row -->
|{{#if:{{{family|}}} |{{row/kv|Family|{{{family}}} }}|}}
+
|{{#if:{{{family|}}} |{{row/kv|Family |{{{family}}} }}|}}
 
}}
 
}}
  +
 
<!-- life -->
 
<!-- life -->
 
{{#if:{{{born|}}} |{{row/kv|Born |{{{born}}} }}|}}
 
{{#if:{{{born|}}} |{{row/kv|Born |{{{born}}} }}|}}
{{#if:{{{died|}}} |{{row/kv|Died |{{{died}}}[[Category: Dead Characters]] }}|}}
+
{{#if:{{{died|}}} |{{row/kv|Died |{{{died}}} }}|}}
  +
 
<!--about -->
 
<!--about -->
 
{{#if:{{{abilities|}}} |{{row/kv|Abilities |{{{abilities}}} }}|}}
 
{{#if:{{{abilities|}}} |{{row/kv|Abilities |{{{abilities}}} }}|}}
Line 33: Line 42:
 
{{#if:{{{religion|}}} |{{row/kv|Religion |{{{religion}}} }}|}}
 
{{#if:{{{religion|}}} |{{row/kv|Religion |{{{religion}}} }}|}}
 
{{#if:{{{groups|}}} |{{row/kv|Groups |{{{groups}}} }}|}}
 
{{#if:{{{groups|}}} |{{row/kv|Groups |{{{groups}}} }}|}}
  +
 
<!-- location -->
 
<!-- location -->
{{#if:{{{ethnicity-raw|}}} |{{row/kv|Ethnicity |{{{ethnicity-raw}}} }}|}}
+
{{#if:{{{ethnicity-raw|}}} |{{row/kv|Ethnicity |{{{ethnicity-raw}}} {{raw/ethnicity}} }}|}}
 
{{#if:{{{ethnicity|}}} |{{row/kv|Ethnicity |{{demonym tag|{{{ethnicity}}}|}} }}|}}
 
{{#if:{{{ethnicity|}}} |{{row/kv|Ethnicity |{{demonym tag|{{{ethnicity}}}|}} }}|}}
{{#if:{{{nation-raw|}}} |{{row/kv|Nationality |{{{nation-raw}}} }}|}}
+
{{#if:{{{nation-raw|}}} |{{row/kv|Nationality |{{{nation-raw}}} {{raw/nation}} }}|}}
 
{{#if:{{{nation|}}} |{{row/kv|Nationality |{{demonym tag|{{{nation}}}|}} }}|}}
 
{{#if:{{{nation|}}} |{{row/kv|Nationality |{{demonym tag|{{{nation}}}|}} }}|}}
{{#if:{{{birthplace-raw|}}} |{{row/kv|Birthplace |{{{birthplace-raw}}} }}|}}
+
{{#if:{{{birthplace-raw|}}} |{{row/kv|Birthplace |{{{birthplace-raw}}} {{raw/birthplace}} }}|}}
 
{{#if:{{{birthplace|}}} |{{row/kv|Birthplace |{{toponym tag|{{{birthplace}}}|}} }}|}}
 
{{#if:{{{birthplace|}}} |{{row/kv|Birthplace |{{toponym tag|{{{birthplace}}}|}} }}|}}
{{#if:{{{residence-raw|}}} |{{row/kv|Residence |{{{residence-raw}}} }}|}}
+
{{#if:{{{residence-raw|}}} |{{row/kv|Residence |{{{residence-raw}}} {{raw/residence}} }}|}}
 
{{#if:{{{residence|}}} |{{row/kv|Residence |{{toponym tag|{{{residence}}}|Residents}} }}|}}
 
{{#if:{{{residence|}}} |{{row/kv|Residence |{{toponym tag|{{{residence}}}|Residents}} }}|}}
   
{{#if:{{{earth|}}} |{{row/kv|World |[[Earth ({{{earth}}})]] }}|
+
{{#if:{{{earth|}}} |{{row/kv|World |[[Earth ({{{earth}}})]] }}
{{#if:{{{world-raw|}}} |{{row/kv|World |{{{world-raw}}} }}|
+
|{{#if:{{{world-raw|}}} |{{row/kv|World |{{{world-raw}}} {{raw/world}} }}
{{#if:{{{world|}}} |{{row/kv|World |{{toponym tag|{{{world}}}|}} }}|
+
|{{#if:{{{world|}}} |{{row/kv|World |{{toponym tag|{{{world}}}|}} }}
{{#if:{{{universe|}}} |{{row/kv|Universe |{{{universe}}} }}
+
|{{#if:{{{universe|}}} |{{row/kv|Universe |{{{universe}}} }}
<!-- else -->|{{row/kv|World |''Unknown''}} }}|}}|}}|}}
+
<!-- ELSE -->|{{row/kv|World |''Unknown'' }}<!--
  +
END IFs-->}}|}}|}}|}}
<!-- featured in -->{{row/kv|Featured In|''{{{books}}}''|}}
 
  +
 
<!-- featured in -->{{row/kv|Featured In |''{{{books}}}'' }}
  +
 
}}<includeonly><!--
 
}}<includeonly><!--
   
 
-->{{#if:{{{name|}}}|{{DEFAULTSORT:{{{name}}}|}}|}}<!--
 
-->{{#if:{{{name|}}}|{{DEFAULTSORT:{{{name}}}|}}|}}<!--
-->[[Category: Characters]]<!--
 
 
-->{{#if:{{{era|}}}|[[Category: infobox.era]]}}<!--
 
-->{{#if:{{{universe|}}}|[[Category: infobox.universe]]}}<!--
 
-->{{#if:{{{place|}}}|[[Category: infobox.place]]}}<!--
 
-->{{#if:{{{hide-family|}}}|[[Category: infobox.hide]]}}<!--
 
   
 
-->{{#if:{{{earth|}}}|[[Category: {{{earth}}} characters]]}}<!--
 
-->{{#if:{{{earth|}}}|[[Category: {{{earth}}} characters]]}}<!--
Line 72: Line 79:
 
-->||[[Category: Characters missing location]]<!--
 
-->||[[Category: Characters missing location]]<!--
 
-->}}<!--
 
-->}}<!--
  +
 
-->{{#if:{{{died|}}}|[[Category: Dead Characters]]}}<!--
  +
 
-->[[Category: Characters]]<!--
   
 
--></includeonly><noinclude>
 
--></includeonly><noinclude>
Line 81: Line 92:
 
: The {{{place}}} parameter allows you to extend the template with extra rows for more specific parameters like birthplace or residency.
 
: The {{{place}}} parameter allows you to extend the template with extra rows for more specific parameters like birthplace or residency.
 
; Family
 
; Family
: {{{parents}}}, {{{siblings}}}, {{{spouse}}}, {{{children}}} and the more generic {{{relatives}}}, {{{ancestors}}} and {{{descendants}}}. The family options are grouped into a section, which can be renamed with {{{family}}}. If {{{hide-family}}} is present, the family section will be shown by default.
+
: {{{parents}}}, {{{siblings}}}, {{{spouse}}}, {{{children}}} and the more generic {{{relatives}}}, {{{ancestors}}} and {{{descendants}}}. The family options are grouped into a section, which can be renamed with {{{family}}}. If {{{hide-family}}} is present, the family section will be shown by default. (Uses {{t|character/family}} template).
 
; Life
 
; Life
 
: For major dates in a characters life, {{{born}}} and {{{died}}} are available, and should use the {{t|date}} template.
 
: For major dates in a characters life, {{{born}}} and {{{died}}} are available, and should use the {{t|date}} template.

Revision as of 18:43, 25 December 2014

Character
World Unknown
Featured In {{{books}}}

This template allows you to describe the many attributes of a character. The {{{world}}} and {{{books}}} parameters are required The other parameters are optional and can be described in groups:

Location
{{{ethnicity}}} and/or {{{nation}}} can be used to identify the ethnicity of the character.
{{{birthplace}}} and/or {{{residence}}} link to places.
The {{{place}}} parameter allows you to extend the template with extra rows for more specific parameters like birthplace or residency.
Family
{{{parents}}}, {{{siblings}}}, {{{spouse}}}, {{{children}}} and the more generic {{{relatives}}}, {{{ancestors}}} and {{{descendants}}}. The family options are grouped into a section, which can be renamed with {{{family}}}. If {{{hide-family}}} is present, the family section will be shown by default. (Uses {{character/family}} template).
Life
For major dates in a characters life, {{{born}}} and {{{died}}} are available, and should use the {{date}} template.
{{{titles}}}, {{{abilities}}}, {{{skills}}}, {{{achievements}}}}, {{{{profession}}}, {{{aliases}}}, {{{religion}}} and {{{powers}}} are available to describe the character in more detail.

The advanced properties {{{ethnicity-raw}}}, {{{nation-raw}}}, stop the corresponding properties from automatically linking and categorizing.