Template:Cape: Difference between revisions
No edit summary |
No edit summary |
||
(7 intermediate revisions by the same user not shown) | |||
Line 17: | Line 17: | ||
| label4 = Alignment | | label4 = Alignment | ||
| data4 = {{{alignment|Unknown}}}[[Category:{{{alignment}}}]] | | data4 = {{{alignment|Unknown}}}{{#ifeq: {{{status|Unknown}}} | Draft || [[Category:{{{alignment}}}]]}} | ||
| label5 = Affiliation | | label5 = Affiliation | ||
| data5 = {{{affiliation|Unknown}}} ({{{location}}})[[Category:{{{location}}} characters]] | | data5 = {{{affiliation|Unknown}}} ({{{location}}}){{#ifeq: {{{status|Unknown}}} | Draft || [[Category:{{{location}}} characters]]}} | ||
| label6 = PRT Classification | | label6 = PRT Classification | ||
| data6 = {{{class|}}} | | data6 = {{{class|}}}{{#ifeq: {{{status|Unknown}}} | Draft || {{#arraymap:{{{class|}}}|,|x|[[Category:xs]]}} }} | ||
| label7 = Born | | label7 = Born | ||
Line 38: | Line 38: | ||
| label9 = Status | | label9 = Status | ||
| data9 = | | data9 = {{{status|Unknown}}}[[Category:{{Cape/status|{{{status|Unknown}}}}} characters]] | ||
}} | }} | ||
{{#if: {{{noncape|}}} | [[Category:Non-capes]] | [[Category:Capes]] }} | {{#ifeq: {{{status|Unknown}}} | Draft || {{#if: {{{noncape|}}} | [[Category:Non-capes]] | [[Category:Capes]] }}}} | ||
{{# | {{#ifeq: {{{status|Unknown}}} | Draft || {{#ifeq:{{{leader|}}} | true | [[Category:Leaders]] }}}} | ||
{{#ifeq:{{{leader|}}} | true | | |||
{{#cargo_store:_table=characters}} | {{#cargo_store:_table=characters}} | ||
</includeonly><noinclude> | </includeonly><noinclude> | ||
Line 49: | Line 48: | ||
|name=String | |name=String | ||
|location=Page | |location=Page | ||
| | |status=String (allowed values=Active,NPC,Lore,Deceased,Draft,Noncanon) | ||
|author=List (,) of String | |author=List (,) of String | ||
|alignment=Page | |alignment=Page (allowed values=Hero,Villain,Rogue,Other) | ||
|affiliation=List (,) of Page | |affiliation=List (,) of Page | ||
|civ_name=String | |civ_name=String | ||
|class=List (,) of String | |class=List (,) of String (allowed values=Blaster,Breaker,Brute,Changer,Master,Mover,Shaker,Stranger,Striker,Thinker,Tinker,Trump) | ||
|birth_date=Date | |birth_date=Date | ||
|leader=boolean | |||
}} | }} | ||
<templatedata> | <templatedata> | ||
Line 189: | Line 189: | ||
"leader" | "leader" | ||
], | ], | ||
"format": "block" | "format": "block", | ||
"description": "The \"Cape\" template is the primary data point for your character. Information submitted is displayed on an \"infobox\" to the side with vital information available at a glance. Note that some of this information is also read by the wiki to automatically categorize and list your character elsewhere on the site. If you have any questions, ask for help on the Discord and we'll be happy to get you assistance." | |||
} | } | ||
</templatedata></noinclude> | </templatedata></noinclude> |
Latest revision as of 18:53, 29 July 2024
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |
This template defines the table "characters". View table.
The "Cape" template is the primary data point for your character. Information submitted is displayed on an "infobox" to the side with vital information available at a glance. Note that some of this information is also read by the wiki to automatically categorize and list your character elsewhere on the site. If you have any questions, ask for help on the Discord and we'll be happy to get you assistance.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Cape name | name | The name most recognizable for your character. If multiple names are applicable, pick one.
| String | required |
Location | location | What city or locality the character lives in. Leave as-is unless directed otherwise.
| Page name | required |
Status | status | Status of the character. Choose one of the given options.
| String | required |
Author | author | The discord username of the character's author
| String | required |
Alignment | alignment | Alignment of the character within the Hero/Villain system
| String | required |
Affiliation | affiliation | What group the character is affiliated with.
| Page name | required |
Civilian Name | civ_name | The name used by the character outside of parahuman-related contexts. "Secret Identity".
| String | suggested |
PRT Classification | class | The in-character PRT classification given to your character. Multiple options should be separated with commas, and no numerics should be added. This classification should be based on what is known to the PRT about your powers, not necessarily what they really are.
| String | suggested |
Image | image | An image of your character, to be shown in the sidebar. Go to [[Special:Upload]] first to add the image to the wiki | File | optional |
Image caption | caption | Used to add text below the image, for adding context as required | String | optional |
Pronouns | pronouns | What pronouns are used by your character
| String | optional |
Date of birth | birth_date | When was your character born
| Date | optional |
Date of death | death_date | When your character died, if applicable
| Date | optional |
Noncape flag | noncape | Check this box if your character is not a parahuman. Otherwise, leave it alone | Boolean | optional |
Leader flag | leader | Check this box if your character is the leader of their team. Otherwise, leave it alone. | Boolean | optional |