Difference between revisions of "Template:Character"

From The Coppermind
Jump to navigation Jump to search
m
m (everything might break again)
Line 2: Line 2:
 
|title={{#if:{{{unnamed|}}}|''Unknown''[[Category: Unnamed characters]]|{{{name|{{PAGENAME}}}}}|}}<!--
 
|title={{#if:{{{unnamed|}}}|''Unknown''[[Category: Unnamed characters]]|{{{name|{{PAGENAME}}}}}|}}<!--
   
  +
-->|1=
-->|{{#if:{{{image|}}}|{{row/image|{{{image}}}}}|}}<!--
+
{{#if:{{{image|}}}|{{row/image|{{{image}}}}}|}}
 
family
+
<!-- family -->
 
{{#if:{{{parents|}}}<!-- -->{{{spouse|}}}<!-- -->{{{siblings|}}}<!-- -->{{{children|}}}<!--
-->{{#if:<!--
 
-->{{{parents|}}}<!-- -->{{{spouse|}}}<!-- -->{{{siblings|}}}<!-- -->{{{children|}}}<!--
+
-->{{{ancestors|}}}<!-- -->{{{relatives|}}}<!-- -->{{{descendants|}}}<!-- -->|
 
{{character/family|notable={{{merge-family|}}}
-->{{{ancestors|}}}<!-- -->{{{relatives|}}}<!-- -->{{{descendants|}}}<!--
 
-->|{{character/family|notable={{{merge-family|}}}
 
 
|family={{{family|{{#if:{{{merge-family|}}}|<!-- -->|Family}}|}}}
 
|family={{{family|{{#if:{{{merge-family|}}}|<!-- -->|Family}}|}}}
 
|ancestors={{{ancestors|}}}
 
|ancestors={{{ancestors|}}}
Line 17: Line 16:
 
|relatives={{{relatives|}}}
 
|relatives={{{relatives|}}}
 
|descendants={{{descendants|}}}
 
|descendants={{{descendants|}}}
 
}}<!-- make family-only a row -->
}}<!--
 
  +
|{{#if:{{{family|}}} |{{row/kv|Family|{{{family}}} }}|}}
  +
}}
  +
<!-- life -->
 
{{#if:{{{born|}}} |{{row/kv|Born |{{{born}}} }}|}}
 
{{#if:{{{died|}}} |{{row/kv|Died |{{{died}}}[[Category: Dead Characters]] }}|}}
  +
<!--about -->
 
{{#if:{{{abilities|}}} |{{row/kv|Abilities |{{{abilities}}} }}|}}
 
{{#if:{{{titles|}}} |{{row/kv|Titles |{{{titles}}} }}|}}
 
{{#if:{{{aliases|}}} |{{row/kv|Aliases |{{{aliases}}} }}|}}
 
{{#if:{{{skills|}}} |{{row/kv|Skills |{{{skills}}} }}|}}
 
{{#if:{{{achievements|}}} |{{row/kv|Achievements|{{{achievements}}} }}|}}
 
{{#if:{{{powers|}}} |{{row/kv|Powers |{{{powers}}} }}|}}
 
{{#if:{{{profession|}}} |{{row/kv|Profession |{{{profession}}} }}|}}
  +
{{#if:{{{occupation|}}} |{{row/kv|Profession |{{{occupation}}} }}|}}
 
{{#if:{{{religion|}}} |{{row/kv|Religion |{{{religion}}} }}|}}
 
{{#if:{{{groups|}}} |{{row/kv|Groups |{{{groups}}} }}|}}
 
<!-- location -->
  +
{{#if:{{{ethnicity-raw|}}} |{{row/kv|Ethnicity |{{{ethnicity-raw}}} }}|}}
 
{{#if:{{{ethnicity|}}} |{{row/kv|Ethnicity |{{demonym tag|{{{ethnicity}}}|}} }}|}}
  +
{{#if:{{{nation-raw|}}} |{{row/kv|Nationality |{{{nation-raw}}} }}|}}
 
{{#if:{{{nation|}}} |{{row/kv|Nationality |{{demonym tag|{{{nation}}}|}} }}|}}
 
{{#if:{{{birthplace-raw|}}} |{{row/kv|Birthplace |{{{birthplace-raw}}} }}|}}
 
{{#if:{{{birthplace|}}} |{{row/kv|Birthplace |{{toponym tag|{{{birthplace}}}|}} }}|}}
  +
{{#if:{{{residence-raw|}}} |{{row/kv|Residence |{{{residence-raw}}} }}|}}
 
{{#if:{{{residence|}}} |{{row/kv|Residence |{{demonym tag|{{{residence}}}|}} }}|}}
   
 
{{#if:{{{earth|}}} |{{row/kv|World |[[Earth ({{{earth}}})]] }}|
make family-only a row
 
  +
{{#if:{{{world-raw|}}} |{{row/kv|World |{{{world-raw}}} }}|
-->|{{#if:{{{family|}}}<!--
 
-->|{{row/kv|Family|{{{family}}}|}}<!--
+
{{#if:{{{world|}}} |{{row/kv|World |{{toponym tag|{{{world}}}|}} }}|
 
{{#if:{{{universe|}}} |{{row/kv|Universe |{{{universe}}} }}
-->}}<!--
 
  +
<!-- else -->|{{row/kv|World |''Unknown''}} }}|}}|}}|}}
 
 
<!-- featured in -->{{row/kv|Featured In|''{{{books}}}''|}}
-->}}<!--
 
 
}}<includeonly><!--
 
life
 
-->{{#if:{{{born|}}}|{{row/kv|Born|{{{born}}}|}}|}}<!--
 
-->{{#if:{{{died|}}}|{{row/kv|Died|{{{died}}}[[Category: Dead Characters]]|}}|}}<!--
 
 
about
 
-->{{#if:{{{abilities|}}}|{{row/kv|Abilities|{{{abilities}}}|}}|}}<!--
 
-->{{#if:{{{titles|}}}|{{row/kv|Titles|{{{titles}}}|}}|}}<!--
 
-->{{#if:{{{aliases|}}}|{{row/kv|Aliases|{{{aliases}}}|}}|}}<!--
 
-->{{#if:{{{skills|}}}|{{row/kv|Skills|{{{skills}}}|}}|}}<!--
 
-->{{#if:{{{achievements|}}}|{{row/kv|Achievements|{{{achievements}}}|}}|}}<!--
 
-->{{#if:{{{powers|}}}|{{row/kv|Powers|{{{powers}}}|}}|}}<!--
 
-->{{#if:{{{profession|{{{occupation|}}}|}}}|{{row/kv|Profession|{{{profession|{{{occupation}}}|}}}|}}|}}<!--
 
-->{{#if:{{{religion|}}}|{{row/kv|Religion|{{{religion}}}|}}|}}<!--
 
-->{{#if:{{{groups|}}}|{{row/kv|Groups|{{{groups}}}}}|}}<!--
 
 
location
 
-->{{#if:{{{ethnicity-raw|{{{ethnicity|}}}|}}}<!--
 
-->|{{row/kv|Ethnicity|{{{ethnicity-raw|{{demonym tag|{{{ethnicity}}}|}}|}}}|}}<!--
 
-->}}<!--
 
-->{{#if:{{{nation-raw|{{{nation|}}}|}}}<!--
 
-->|{{row/kv|Nationality|{{{nation-raw|{{demonym tag|{{{nation}}}|}}|}}}|}}<!--
 
-->}}<!--
 
-->{{#if:{{{birthplace-raw|{{{birthplace|}}}|}}}<!--
 
-->|{{row/kv|Birthplace|{{{birthplace-raw|{{toponym tag|{{{birthplace}}}|}}|}}}|}}<!--
 
-->}}<!--
 
-->{{#if:{{{residence-raw|{{{residence|}}}|}}}<!--
 
-->|{{row/kv|Residence|{{{residence-raw|{{toponym tag|{{{residence}}}|}}|}}}|}}<!--
 
-->}}<!--
 
 
IF -->{{#if:{{{earth|}}}<!-- -->|{{row/kv|World|[[Earth ({{{earth}}})]][[Category: {{{earth}}} characters]]}}|<!--
 
ELSE IF -->{{#if:{{{world-raw|{{{world|}}}|}}}<!-- -->|{{row/kv|World|{{{world-raw|{{toponym tag|{{{world}}}|}}|}}}|}}|<!--
 
ELSE IF -->{{#if:{{{universe|}}}<!-- -->||<!--
 
ELSE -->{{row/kv|World|''Unknown''}}<includeonly>[[Category: Characters missing location]]</includeonly><!--
 
ENDIF -->}}<!-- -->}}<!-- -->}}<!--
 
 
-->{{#if:{{{universe|}}}|{{row/kv|Universe|{{{universe}}}|}}|}}<!--
 
 
featured in
 
-->{{row/kv|Featured In|''{{{books}}}''|}}<!--
 
 
-->}}<includeonly><!--
 
   
 
-->{{#if:{{{name|}}}|{{DEFAULTSORT:{{{name}}}|}}|}}<!--
 
-->{{#if:{{{name|}}}|{{DEFAULTSORT:{{{name}}}|}}|}}<!--
Line 75: Line 58:
 
-->{{#if:{{{place|}}}|[[Category: infobox.place]]}}<!--
 
-->{{#if:{{{place|}}}|[[Category: infobox.place]]}}<!--
 
-->{{#if:{{{hide-family|}}}|[[Category: infobox.hide]]}}<!--
 
-->{{#if:{{{hide-family|}}}|[[Category: infobox.hide]]}}<!--
  +
  +
-->{{#if:{{{earth|}}}|[[Category: {{{earth}}} characters]]}}<!--
 
-->{{#if:<!--
 
-->{{{earth|}}}<!-- -->{{{world|}}}<!-- -->{{{world-raw|}}}<!-- -->{{{universe|}}}<!--
 
-->||[[Category: Characters missing location]]<!--
 
-->}}
   
 
-->{{#if:<!--
 
-->{{#if:<!--
-->{{{ethnicity-raw|{{{ethnicity|}}}|}}}<!--
+
-->{{{ethnicity-raw |{{{ethnicity |}}}|}}}<!--
-->{{{nation-raw|{{{nation|}}}|}}}<!--
+
-->{{{nation-raw |{{{nation |}}}|}}}<!--
 
-->{{{birthplace-raw|{{{birthplace|}}}|}}}<!--
 
-->{{{birthplace-raw|{{{birthplace|}}}|}}}<!--
-->{{{residence-raw|{{{residence|}}}|}}}<!--
+
-->{{{residence-raw |{{{residence |}}}|}}}<!--
 
-->||[[Category: Characters missing location]]<!--
 
-->||[[Category: Characters missing location]]<!--
 
-->}}<!--
 
-->}}<!--

Revision as of 21:15, 4 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.
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.