Template:Cape: Difference between revisions
m add redditlink |
No edit summary |
||
(32 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{Infobox|child={{{child|}}} | <includeonly>{{Infobox|child={{{child|}}} | ||
| bodyclass = biography vcard | | bodyclass = biography vcard | ||
|name = Cape | | name = Cape | ||
| above | | above = <span class="fn">{{{name|{{PAGENAMEBASE}}}}}</span> | ||
| image | | image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|sizedefault=frameless|upright=1|suppressplaceholder=yes}} | ||
| caption | | caption = {{{caption|}}} | ||
| label1 | | label1 = Author | ||
| data1 = {{{author|}}} | |||
| data1 | |||
| | | label2 = Pronouns | ||
| | | data2 = {{{pronouns|}}} | ||
| | | label3 = Civilian name | ||
| | | data3 = {{{civ_name|}}} | ||
| | | label4 = Alignment | ||
| | | data4 = {{{alignment|Unknown}}}{{#ifeq: {{{status|Unknown}}} | Draft || [[Category:{{{alignment}}}]]}} | ||
| | | label5 = Affiliation | ||
| | | data5 = {{{affiliation|Unknown}}} ({{{location}}}){{#ifeq: {{{status|Unknown}}} | Draft || [[Category:{{{location}}} characters]]}} | ||
| | | label6 = PRT Classification | ||
| | | data6 = {{{class|}}}{{#ifeq: {{{status|Unknown}}} | Draft || {{#arraymap:{{{class|}}}|,|x|[[Category:xs]]}} }} | ||
| | | label7 = Born | ||
| | | data7 = {{Br separated entries | ||
|1 | |1={{#if:{{{birth_date|}}} | {{Cape/dob|{{{birth_date }}}|{{{death_date|}}} }} }} | ||
|2={{#if:{{{birth_place|}}}|<span class="birthplace">{{{birth_place|}}}</span> }} | |||
| | |||
}} | }} | ||
| | | label8 = Died | ||
| data8 = {{Br separated entries | |||
| | |||
|1={{#if:{{{death_date|}}} |{{Cape/dod|{{{birth_date }}}|{{{death_date|}}} }} }} | |1={{#if:{{{death_date|}}} |{{Cape/dod|{{{birth_date }}}|{{{death_date|}}} }} }} | ||
|2={{#if:{{{death_place|}}}|<span class="deathplace">{{{death_place|}}}</span>}} | |2={{#if:{{{death_place|}}}|<span class="deathplace">{{{death_place|}}}</span>}} | ||
}} | }} | ||
| | | label9 = Status | ||
| | | data9 = {{{status|Unknown}}}[[Category:{{Cape/status|{{{status|Unknown}}}}} characters]] | ||
}} | |||
{{#ifeq: {{{status|Unknown}}} | Draft || {{#if: {{{noncape|}}} | [[Category:Non-capes]] | [[Category:Capes]] }}}} | |||
{{#ifeq: {{{status|Unknown}}} | Draft || {{#ifeq:{{{leader|}}} | true | [[Category:Leaders]] }}}} | |||
| | {{#cargo_store:_table=characters}} | ||
</includeonly><noinclude> | |||
{{documentation}} | |||
{{#cargo_declare:_table=characters | |||
|name=String | |||
|location=Page | |||
|status=String (allowed values=Active,NPC,Lore,Deceased,Draft,Noncanon) | |||
|author=List (,) of String | |||
|alignment=Page (allowed values=Hero,Villain,Rogue,Other) | |||
|affiliation=List (,) of Page | |||
|civ_name=String | |||
|class=List (,) of String (allowed values=Blaster,Breaker,Brute,Changer,Master,Mover,Shaker,Stranger,Striker,Thinker,Tinker,Trump) | |||
|birth_date=Date | |||
|leader=boolean | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
}} | }} | ||
<templatedata> | |||
{ | |||
"params": { | |||
"name": { | |||
"label": "Cape name", | |||
"description": "The name most recognizable for your character. If multiple names are applicable, pick one.", | |||
"example": "Skitter", | |||
"type": "string", | |||
"autovalue": "{{PAGENAMEBASE}}", | |||
"required": true | |||
}, | |||
"image": { | |||
"label": "Image", | |||
"description": "An image of your character, to be shown in the sidebar. Go to [[Special:Upload]] first to add the image to the wiki", | |||
"type": "wiki-file-name" | |||
}, | |||
"caption": { | |||
"label": "Image caption", | |||
"description": "Used to add text below the image, for adding context as required", | |||
"type": "string" | |||
}, | |||
"author": { | |||
"label": "Author", | |||
"description": "The discord username of the character's author", | |||
"example": "wildbow", | |||
"type": "string", | |||
"required": true | |||
}, | |||
"pronouns": { | |||
"label": "Pronouns", | |||
"description": "What pronouns are used by your character", | |||
"example": "she/her", | |||
"type": "string" | |||
}, | |||
"civ_name": { | |||
"label": "Civilian Name", | |||
"description": "The name used by the character outside of parahuman-related contexts. \"Secret Identity\".", | |||
"example": "Taylor Hebert", | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"alignment": { | |||
"label": "Alignment", | |||
"description": "Alignment of the character within the Hero/Villain system", | |||
"example": "Villain", | |||
"type": "string", | |||
"suggestedvalues": [ | |||
"Hero", | |||
"Villain", | |||
"Rogue", | |||
"Other" | |||
], | |||
"required": true | |||
}, | |||
"affiliation": { | |||
"label": "Affiliation", | |||
"description": "What group the character is affiliated with.", | |||
"example": "Undersiders", | |||
"type": "wiki-page-name", | |||
"default": "None", | |||
"required": true | |||
}, | |||
"location": { | |||
"label": "Location", | |||
"description": "What city or locality the character lives in. Leave as-is unless directed otherwise.", | |||
"example": "Brockton Bay", | |||
"type": "wiki-page-name", | |||
"default": "Devilfish", | |||
"required": true | |||
}, | |||
"class": { | |||
"label": "PRT Classification", | |||
"description": "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.", | |||
"example": "Master, Thinker", | |||
"type": "string", | |||
"suggested": true | |||
}, | |||
"birth_date": { | |||
"label": "Date of birth", | |||
"description": "When was your character born", | |||
"example": "1994-07-23", | |||
"type": "date" | |||
}, | |||
"death_date": { | |||
"label": "Date of death", | |||
"description": "When your character died, if applicable", | |||
"example": "2013-08-11", | |||
"type": "date" | |||
}, | |||
"status": { | |||
"label": "Status", | |||
"description": "Status of the character. Choose one of the given options.", | |||
"example": "Deceased", | |||
"type": "string", | |||
"suggestedvalues": [ | |||
"Draft", | |||
"Active", | |||
"NPC", | |||
"Lore", | |||
"Deceased" | |||
], | |||
"default": "Draft", | |||
"required": true | |||
}, | |||
"noncape": { | |||
"label": "Noncape flag", | |||
"description": "Check this box if your character is not a parahuman. Otherwise, leave it alone", | |||
"type": "boolean" | |||
}, | |||
"leader": { | |||
"label": "Leader flag", | |||
"description": "Check this box if your character is the leader of their team. Otherwise, leave it alone.", | |||
"type": "boolean" | |||
} | |||
}, | |||
"paramOrder": [ | |||
"name", | |||
"location", | |||
"status", | |||
"author", | |||
"alignment", | |||
"affiliation", | |||
"civ_name", | |||
"class", | |||
"image", | |||
"caption", | |||
"pronouns", | |||
"birth_date", | |||
"death_date", | |||
"noncape", | |||
"leader" | |||
], | |||
"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> |
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 |