Difference between revisions of "Template:Character"

From The Coppermind
Jump to navigation Jump to search
(not so sure about the homeland thing. Anyone else feel free to add to it. books may be a bit of bother for Hoid and TSA when it gets further into the series.)
 
(rm featured in; add first appeared)
 
(214 intermediate revisions by 15 users not shown)
Line 1: Line 1:
  +
{{infobox|id=Character
{| align="right" border="0" cellspacing="0" style="border: 1px solid; {{RoundBorder|10px}}"
 
  +
|title={{#if:{{{unnamed|}}}|''Unknown''{{cat ns|unnamed characters|only=0}}|{{{name|{{PAGENAME}}}}}|}}<!--
|- colspan="2" align="center"
 
  +
|colspan="2" style="background:black;{{RoundBorder|10px 10px 0px 0px}}"|<span style="color:white">'''''{{{name}}}'''''</span style>
 
  +
-->|1=
|-
 
  +
{{#if:{{{image|}}} |{{row/image+artist| {{{image}}} }}|}}
!style="background: silver"|Race||[[{{{race}}}]]
 
  +
|-
 
  +
<!-- family -->
!style="background: silver"|World||[[{{{world}}}]]
 
  +
{{#if:<!--
|-
 
  +
-->{{{parents|}}}<!-- -->{{{spouse|}}}<!--
!style="background: silver"|Homeland||[[{{{location}}}]]
 
  +
-->{{{siblings|}}}<!-- -->{{{children|}}}<!--
|-
 
  +
-->{{{ancestors|}}}<!--
!style="background: silver;{{RoundBorder|0px 0px 0px 10px}}"|Featured in||style="{{RoundBorder|0px 0px 10px 0px}}"|''{{{books}}}''
 
  +
-->{{{relatives|}}}<!--
|}<includeonly>[[Category:Books]]</includeonly><noinclude>
 
  +
-->{{{descendants|}}}<!--
Race, world and homeland have links built in. Books will need to be formatted manually.
 
  +
-->|
[[Category:Infobox templates]]</noinclude>
 
  +
{{character/family
  +
|merge = {{{merge-family|}}}
  +
|family = {{{family|{{#if:{{{merge-family|}}}|<!-- -->|Family}}|}}}
  +
|spouse = {{{spouse|}}}
  +
|children = {{{children|}}}
  +
|parents = {{{parents|}}}
  +
|siblings = {{{siblings|}}}
  +
|relatives = {{{relatives|}}}
  +
|ancestors = {{{ancestors|}}}
  +
|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}}}{{cat ns|dead characters|only=0}} }}|}}
  +
  +
<!--about -->
  +
{{#if:{{{abilities|}}} |{{row/kv|Abilities |{{{abilities}}} }}|}}
  +
{{#if:{{{bonded|}}} |{{row/kv|Bonded With |{{{bonded}}} }}|}}
  +
{{#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 tag|{{{#profession}}}|}} }}|}}
  +
{{#if:{{{profession|}}} |{{row/kv|Profession |{{{profession}}} }}|}}
  +
{{#if:{{{occupation|}}} |{{row/kv|Profession |{{{occupation}}} }}|}}
  +
{{#if:{{{religion|}}} |{{row/kv|Religion |{{{religion}}} }}|}}
  +
{{#if:{{{groups|}}} |{{row/kv|Groups |{{{groups}}} }}|}}
  +
  +
{{#if:{{{'species|}}} |{{row/kv|Species |{{{'species}}}<!-- -->{{{species-ref|}}} {{raw/species}} }}|}}
  +
{{#if:{{{species-raw|}}} |{{row/kv|Species |{{{species-raw}}}<!-- -->{{{species-ref|}}} {{raw/species}} }}|}}
  +
{{#if:{{{species|}}} |{{row/kv|Species |{{species tag|{{{species}}}|}}<!-- -->{{{species-ref|}}} }}|}}
  +
  +
{{#if:{{{era|}}} |{{row/kv|Era |[[{{{era}}}]]{{era/{{{era}}}|}} }}|}}
  +
  +
<!-- location -->
  +
{{#if:{{{'birthplace|}}} |{{row/kv|Birthplace |{{{'birthplace}}}<!-- -->{{{birthplace-ref|}}} {{raw/birthplace}} }}|}}
  +
{{#if:{{{birthplace-raw|}}} |{{row/kv|Birthplace |{{{birthplace-raw}}}<!-- -->{{{birthplace-ref|}}} {{raw/birthplace}} }}|}}
  +
{{#if:{{{birthplace|}}} |{{row/kv|Birthplace |[[{{{birthplace}}}]]<!-- -->{{{birthplace-ref|}}} }}|}}
  +
{{#if:{{{'residence|}}} |{{row/kv|Residence |{{{'residence}}}<!-- -->{{{residence-ref|}}} {{raw/residence}} }}|}}
  +
{{#if:{{{residence-raw|}}} |{{row/kv|Residence |{{{residence-raw}}}<!-- -->{{{residence-ref|}}} {{raw/residence}} }}|}}
  +
{{#if:{{{residence|}}} |{{row/kv|Residence |{{toponym link|{{{residence}}}}}{{cat ns|Residents of {{#if:{{toponym|{{{residence}}}}}|{{toponym|{{{residence}}}}}|{{{residence}}}}}}}<!-- -->{{{residence-ref|}}} }}|}}
  +
{{#if:{{{'ethnicity|}}} |{{row/kv|Ethnicity |{{{'ethnicity}}}<!-- -->{{{ethnicity-ref|}}} {{raw/ethnicity}} }}|}}
  +
{{#if:{{{ethnicity-raw|}}} |{{row/kv|Ethnicity |{{{ethnicity-raw}}}<!-- -->{{{ethnicity-ref|}}} {{raw/ethnicity}} }}|}}
  +
{{#if:{{{ethnicity|}}} |{{row/kv|Ethnicity |{{demonym tag|{{{ethnicity}}}|}}<!-- -->{{{ethnicity-ref|}}} }}|}}
  +
{{#if:{{{'nation|}}} |{{row/kv|Nationality |{{{'nation}}}<!-- -->{{{nationality-ref|}}} {{raw/nation}} }}|}}
  +
{{#if:{{{nation-raw|}}} |{{row/kv|Nationality |{{{nation-raw}}}<!-- -->{{{nationality-ref|}}} {{raw/nation}} }}|}}
  +
{{#if:{{{nation|}}} |{{row/kv|Nationality |{{demonym tag|{{{nation}}}|}}<!-- -->{{{nationality-ref|}}} }}|}}
  +
{{#if:{{{nationality|}}} |{{row/kv|Nationality |{{demonym tag|{{{nationality}}}|}}<!-- -->{{{nationality-ref|}}} }}|}}
  +
  +
{{#if:{{{earth|}}} |{{row/kv|Homeworld |{{earth tag|earth={{{earth}}}|cat={{{earth}}} characters}}<!-- -->{{{earth-ref|{{{world-ref|}}}|}}} }}
  +
|{{#if:{{{'world|}}} |{{row/kv|Homeworld |{{{'world}}}<!-- -->{{{world-ref|}}} {{raw/world}} }}
  +
|{{#if:{{{world|}}} |{{row/kv|Homeworld |{{toponym tag|{{{world}}}|}}<!-- -->{{{world-ref|}}} }}
  +
|{{#if:{{{hide-world|}}} |<!-- don't show a world row -->
  +
<!-- ELSE -->|{{row/kv|Homeworld |''Unknown'' }}<!--
  +
END IFs-->}}|}}|}}|}}
  +
  +
{{#if:{{{universe|}}} |{{row/kv| Universe | {{{universe}}}<!-- -->}}|}}
  +
{{#if:{{{first appeared|}}} |{{row/kv| First Appeared | ''{{{first appeared}}}''<!-- -->}}|{{missing/first-appeared}}}}
  +
  +
}}<includeonly><!--
  +
  +
-->{{#if:{{{name|}}}|{{DEFAULTSORT:{{{name}}}|}}|}}<!--
  +
  +
-->{{#if:<!--
  +
-->{{{earth|}}}<!-- -->{{{world|}}}<!-- -->{{{'world|}}}<!--
  +
-->||{{#if:{{{universe|}}}|{{missing/world}}|{{missing/world/and universe}}}}<!--
  +
-->}}<!--
  +
  +
-->{{#if:<!--
  +
-->{{{ethnicity-raw |{{{ethnicity |}}}|}}}<!--
  +
-->{{{nation-raw|{{{nationality|{{{nation|}}}|}}}|}}}<!--
  +
-->{{{birthplace-raw|{{{birthplace|}}}|}}}<!--
  +
-->{{{residence-raw |{{{residence |}}}|}}}<!--
  +
-->||{{character/no-location}}<!--
  +
-->}}<!--
  +
  +
-->{{#if:<!--
  +
-->{{{species-raw|}}}{{{raw-species|}}}<!--
  +
-->{{{birthplace-raw|}}}{{{raw-birthplace|}}}<!--
  +
-->{{{residence-raw|}}}{{{raw-residence|}}}<!--
  +
-->{{{ethnicity-raw|}}}{{{raw-ethnicity|}}}<!--
  +
-->{{{nation-raw|}}}{{{raw-nation|}}}<!--
  +
-->{{{world-raw|}}}{{{raw-world|}}}<!--
  +
  +
-->|[[category: depreciated raw parameters]]}}<!--
  +
  +
-->{{#if:{{{image-artist|}}}|[[category: redundant artist attribution]]}}<!--
  +
  +
-->{{cat ns|Characters|only=0}}<!--
  +
  +
--></includeonly><noinclude>
  +
  +
This template allows you to describe the many attributes of a character. The {{{world}}} and {{{first appeared}}} parameters are required. The other parameters are optional and can be described in groups:
  +
; Location
  +
: {{{ethnicity}}} or {{{nation}}} or {{{nationality}}} can be used to identify the ethnicity of the character.
  +
: {{{birthplace}}} or {{{residence}}} link to places.
  +
: for characters not set on earth {{{world}}} should be used
  +
: for those set on alternative earths {{{earth}}} should be used
  +
: for those not set on any particular earth {{{universe}}} can be used to indicate their setting
  +
; 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 {{t|character/family}} template).
  +
; Life
  +
: For major dates in a characters life, {{{born}}} and {{{died}}} are available, and should use the {{t|date}} template.
  +
: {{{titles}}}, {{{abilities}}}, {{{skills}}}, {{{achievements}}}}, {{{{profession}}}, {{{aliases}}}, {{{religion}}}, {{{powers}}}, and {{{species}}} (if non-human) are available to describe the character in more detail.
  +
  +
Many of the properties have an alternative <code>'</code>-prefixed version which has no automatic linking and categorization.
  +
The advanced properties {{{'ethnicity}}}, {{{'nation}}}, stop the corresponding properties from automatically linking and categorizing.
  +
  +
In addition to the <code>'</code> prefixes, there are -ref suffixes for adding references to the magic fields. {{{ethnicity-ref}}}, {{{nationality-ref}}}
  +
  +
It automatically adds pages to [[:Category: Characters]].
  +
  +
<pre class=mw-code>
  +
{{character
  +
|unnamed=y
  +
|image=
  +
|merge-family=y
  +
|parents=
  +
|spouse=
  +
|siblings=
  +
|children=
  +
|ancestors=
  +
|relatives=
  +
|descendants=
  +
|born=
  +
|died=
  +
|abilities=
  +
|bonded=
  +
|titles=
  +
|aliases=
  +
|skills=
  +
|achievements=
  +
|powers=
  +
|#profession=
  +
|profession=
  +
|occupation=
  +
|religion=
  +
|groups=
  +
|species=
  +
|'species=
  +
|era=
  +
|birthplace=
  +
|'birthplace=
  +
|residence=
  +
|'residence=
  +
|ethnicity=
  +
|'ethnicity=
  +
|nation=
  +
|'nation=
  +
|nationality=
  +
|world= / earth=
  +
|'world=
  +
|hide-world=y
  +
|universe=
  +
|first appeared=
  +
}}
  +
</pre>
  +
  +
[[category: infoboxes]]
  +
  +
== Articles using Template ==
  +
{{for|Special:WhatLinksHere/{{FULLPAGENAME}}|a full listing|here|pre=This list is limited to 100 pages.}}
  +
{{Special:WhatLinksHere/{{FULLPAGENAME}}|namespace=0|limit=100}}

Latest revision as of 18:58, 15 March 2024

Character
Homeworld Unknown

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

Location
{{{ethnicity}}} or {{{nation}}} or {{{nationality}}} can be used to identify the ethnicity of the character.
{{{birthplace}}} or {{{residence}}} link to places.
for characters not set on earth {{{world}}} should be used
for those set on alternative earths {{{earth}}} should be used
for those not set on any particular earth {{{universe}}} can be used to indicate their setting
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}}}, {{{powers}}}, and {{{species}}} (if non-human) are available to describe the character in more detail.

Many of the properties have an alternative '-prefixed version which has no automatic linking and categorization. The advanced properties {{{'ethnicity}}}, {{{'nation}}}, stop the corresponding properties from automatically linking and categorizing.

In addition to the ' prefixes, there are -ref suffixes for adding references to the magic fields. {{{ethnicity-ref}}}, {{{nationality-ref}}}

It automatically adds pages to Category: Characters.

{{character
|unnamed=y
|image=
|merge-family=y
|parents=
|spouse=
|siblings=
|children=
|ancestors=
|relatives=
|descendants=
|born=
|died=
|abilities=
|bonded=
|titles=
|aliases=
|skills=
|achievements=
|powers=
|#profession=
|profession=
|occupation=
|religion=
|groups=
|species=
|'species=
|era=
|birthplace=
|'birthplace=
|residence=
|'residence=
|ethnicity=
|'ethnicity=
|nation=
|'nation=
|nationality=
|world= / earth=
|'world=
|hide-world=y
|universe=
|first appeared=
}}

Articles using Template