Difference between revisions of "Template:Character"
Jump to navigation
Jump to search
LadyLameness (talk | contribs) |
|||
(6 intermediate revisions by 2 users not shown) | |||
Line 45: | Line 45: | ||
{{#if:{{{groups|}}} |{{row/kv|Groups |{{{groups}}} }}|}} |
{{#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-raw|}}} |{{row/kv|Species |{{{species-raw}}} {{{species-ref|}}} {{raw/species}} }}|}} |
||
{{#if:{{{species|}}} |{{row/kv|Species |{{species tag|{{{species}}}|}} {{{species-ref|}}} }}|}} |
{{#if:{{{species|}}} |{{row/kv|Species |{{species tag|{{{species}}}|}} {{{species-ref|}}} }}|}} |
||
⚫ | |||
{{#if:{{{era|}}} |{{row/kv|Era |{{{era}}}{{era/{{{era}}}|}} }}|}} |
{{#if:{{{era|}}} |{{row/kv|Era |{{{era}}}{{era/{{{era}}}|}} }}|}} |
||
<!-- location --> |
<!-- 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-raw|}}} |{{row/kv|Birthplace |{{{birthplace-raw}}} {{{birthplace-ref|}}} {{raw/birthplace}} }}|}} |
||
{{#if:{{{birthplace|}}} |{{row/kv|Birthplace |{{toponym tag|{{{birthplace}}}|}} {{{birthplace-ref|}}} }}|}} |
{{#if:{{{birthplace|}}} |{{row/kv|Birthplace |{{toponym tag|{{{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-raw|}}} |{{row/kv|Residence |{{{residence-raw}}} {{{residence-ref|}}} {{raw/residence}} }}|}} |
||
− | {{#if:{{{residence|}}} |{{row/kv|Residence |{{toponym tag|{{{residence}}}| |
+ | {{#if:{{{residence|}}} |{{row/kv|Residence |{{toponym tag|{{{residence}}}|residents of}} {{{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-raw|}}} |{{row/kv|Ethnicity |{{{ethnicity-raw}}} {{{ethnicity-ref|}}} {{raw/ethnicity}} }}|}} |
||
{{#if:{{{ethnicity|}}} |{{row/kv|Ethnicity |{{demonym tag|{{{ethnicity}}}|}} {{{ethnicity-ref|}}} }}|}} |
{{#if:{{{ethnicity|}}} |{{row/kv|Ethnicity |{{demonym tag|{{{ethnicity}}}|}} {{{ethnicity-ref|}}} }}|}} |
||
⚫ | |||
{{#if:{{{nation-raw|}}} |{{row/kv|Nationality |{{{nation-raw}}} {{{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:{{{nation|}}} |{{row/kv|Nationality |{{demonym tag|{{{nation}}}|}} {{{nationality-ref|}}} }}|}} |
||
Line 63: | Line 67: | ||
{{#if:{{{earth|}}} |{{row/kv|World |{{earth tag|earth={{{earth}}}|cat={{{earth}}} characters}} {{{earth-ref|{{{world-ref|}}}|}}} }} |
{{#if:{{{earth|}}} |{{row/kv|World |{{earth tag|earth={{{earth}}}|cat={{{earth}}} characters}} {{{earth-ref|{{{world-ref|}}}|}}} }} |
||
− | |{{#if:{{{world |
+ | |{{#if:{{{'world|}}} |{{row/kv|World |{{{'world}}} {{{world-ref|}}} {{raw/world}} }} |
|{{#if:{{{world|}}} |{{row/kv|World |{{toponym tag|{{{world}}}|}} {{{world-ref|}}} }} |
|{{#if:{{{world|}}} |{{row/kv|World |{{toponym tag|{{{world}}}|}} {{{world-ref|}}} }} |
||
− | |{{#if:{{{ |
+ | |{{#if:{{{hide-world|}}} |<!-- don't show a world row --> |
<!-- ELSE -->|{{row/kv|World |''Unknown'' }}<!-- |
<!-- ELSE -->|{{row/kv|World |''Unknown'' }}<!-- |
||
END IFs-->}}|}}|}}|}} |
END IFs-->}}|}}|}}|}} |
||
Line 77: | Line 81: | ||
-->{{#if:<!-- |
-->{{#if:<!-- |
||
− | -->{{{earth|}}}<!-- -->{{{world|}}}<!-- -->{{{world |
+ | -->{{{earth|}}}<!-- -->{{{world|}}}<!-- -->{{{'world|}}}<!-- -->{{{universe|}}}<!-- |
-->||{{infobox/no-world}}<!-- |
-->||{{infobox/no-world}}<!-- |
||
-->}}<!-- |
-->}}<!-- |
||
Line 88: | Line 92: | ||
-->||{{character/no-location}}<!-- |
-->||{{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]]}}<!-- |
-->{{#if:{{{image-artist|}}}|[[category: redundant artist attribution]]}}<!-- |
||
Line 95: | Line 109: | ||
--></includeonly><noinclude> |
--></includeonly><noinclude> |
||
− | 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: |
+ | 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 |
; Location |
||
: {{{ethnicity}}} or {{{nation}}} or {{{nationality}}} can be used to identify the ethnicity of the character. |
: {{{ethnicity}}} or {{{nation}}} or {{{nationality}}} can be used to identify the ethnicity of the character. |
||
Line 108: | Line 122: | ||
: {{{titles}}}, {{{abilities}}}, {{{skills}}}, {{{achievements}}}}, {{{{profession}}}, {{{aliases}}}, {{{religion}}}, {{{powers}}}, and {{{species}}} (if non-human) are available to describe the character in more detail. |
: {{{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 - |
+ | Many of the properties have an alternative <code>'</code>-prefixed version which has no automatic linking and categorization. |
− | The advanced properties {{{ethnicity |
+ | The advanced properties {{{'ethnicity}}}, {{{'nation}}}, stop the corresponding properties from automatically linking and categorizing. |
− | In addition to the |
+ | 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]]. |
It automatically adds pages to [[:Category: Characters]]. |
||
Line 117: | Line 131: | ||
<pre class=mw-code> |
<pre class=mw-code> |
||
{{character |
{{character |
||
+ | |unnamed=y |
||
|image= |
|image= |
||
+ | |merge-family=y |
||
|parents= |
|parents= |
||
|spouse= |
|spouse= |
||
Line 139: | Line 155: | ||
|religion= |
|religion= |
||
|groups= |
|groups= |
||
⚫ | |||
|species= |
|species= |
||
⚫ | |||
− | |form= |
||
|era= |
|era= |
||
⚫ | |||
|birthplace= |
|birthplace= |
||
⚫ | |||
⚫ | |||
|residence= |
|residence= |
||
⚫ | |||
⚫ | |||
|ethnicity= |
|ethnicity= |
||
⚫ | |||
⚫ | |||
|nation= |
|nation= |
||
⚫ | |||
|nationality= |
|nationality= |
||
⚫ | |||
|world= / earth= |
|world= / earth= |
||
⚫ | |||
+ | |hide-world=y |
||
|universe= |
|universe= |
||
|books= |
|books= |
Revision as of 08:07, 20 November 2019
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}}} 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= |books= }}