Template:Cape: Difference between revisions

From WormRP
Jump to navigation Jump to search
Keira (talk | contribs)
m :v
Keira (talk | contribs)
No edit summary
 
(44 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>
<includeonly>{{Infobox|child={{{child|}}}
{{Infobox|child={{{child|}}}
| bodyclass  = biography vcard
| bodyclass  = biography vcard
|name = Cape
| name = Cape
| above     = {{Br separated entries
| above = <span class="fn">{{{name|{{PAGENAMEBASE}}}}}</span>
| 1 = {{#if:{{{honorific prefix|{{{honorific_prefix|{{{honorific-prefix|{{{pre-nominals|}}}}}}}}}}}}|<span class="honorific-prefix" style="font-size: 77%; font-weight: normal;">{{{honorific prefix|{{{honorific_prefix|{{{honorific-prefix|{{{pre-nominals|}}}}}}}}}}}}</span>}}
| 2 = <span class="fn">[[Cape Name::{{#if:{{{name|}}}|{{{name}}}|{{PAGENAMEBASE}}}}]]</span>{{#if:{{{name|}}}|{{#set:Identity={{{name|}}}}}}}
| 3 = {{#if:{{{honorific suffix|{{{honorific_suffix|{{{honorific-suffix|{{{post-nominals|}}}}}}}}}}}}|<span class="honorific-suffix" style="font-size: 77%; font-weight: normal;">{{{honorific suffix|{{{honorific_suffix|{{{honorific-suffix|{{{post-nominals|}}}}}}}}}}}}</span>}}
}}
| abovestyle = {{{abovestyle|}}}


| image     = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image size|{{{image_size|{{{imagesize|}}}}}}}}}|sizedefault=frameless|upright={{{image_upright|1}}}|alt={{{alt|}}}|suppressplaceholder=yes}}{{#if:{{{image|}}}|{{#set:Image={{{image|}}}}}}}
| image   = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|sizedefault=frameless|upright=1|suppressplaceholder=yes}}
| caption   = {{{image caption|{{{caption|{{{image_caption|}}}}}}}}}
| caption = {{{caption|}}}


| label1     = [[WormRP:Reputation|Reputation]]
| label1 = Author
| rowcellstyle1 = vertical-align: middle;
| data1 = {{{author|}}}
| data1     = {{Cape/rep}}


| label5    = Civilian&nbsp;name
| label2 = Pronouns
| data5      = {{#if:{{{civ_name|}}}|{{#set:Identity={{{civ_name|}}}}}<span class="nickname">[[Civilian Name::{{{civ_name}}}]]</span>}}
| data2 = {{{pronouns|}}}


| label6    = Alignment
| label3 = Civilian&nbsp;name
| data6      = [[Alignment::{{{alignment|Unknown}}}]]
| data3 = {{{civ_name|}}}


| label7    = Affiliation
| label4 = Alignment
| data7      = [[Affiliation::{{{affiliation|None}}}]]
| data4 = {{{alignment|Unknown}}}{{#ifeq: {{{status|Unknown}}} | Draft || [[Category:{{{alignment}}}]]}}


| label8    = PRT Classification
| label5 = Affiliation
| data8      = {{{class|}}}
| data5 = {{{affiliation|Unknown}}} ({{{location}}}){{#ifeq: {{{status|Unknown}}} | Draft || [[Category:{{{location}}} characters]]}}


| label10    = Born
| label6 = PRT Classification
| data10    = {{Br separated entries
| data6 = {{{class|}}}{{#ifeq: {{{status|Unknown}}} | Draft || {{#arraymap:{{{class|}}}|,|x|[[Category:xs]]}} }}
  |1={{#if:{{{birth_name|{{{birthname|}}}}}}|<span class="nickname">{{{birth_name|{{{birthname|}}}}}}</span>}}
 
   |2={{#if:{{{birth_date|}}} | {{Cape/dob|{{{birth_date }}}|{{{death_date|}}} }} }}
| label7 = Born
   |3={{#if:{{{birth_place|}}}|<span class="birthplace">{{{birth_place|}}}</span> }}
|  data7 = {{Br separated entries
   |1={{#if:{{{birth_date|}}} | {{Cape/dob|{{{birth_date }}}|{{{death_date|}}} }} }}
   |2={{#if:{{{birth_place|}}}|<span class="birthplace">{{{birth_place|}}}</span> }}
   }}
   }}
  {{#if:{{{birth_name|}}} |{{#set:Identity={{{birth_name|}}}}}}}


| label13    = Status
| label8 = Died
| data13    = [[Status::{{{status|Unknown}}}]]
| data8 = {{Br separated entries
 
| label14    = Died
| data14    = {{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>}}
   }}
   }}


| label15    = Cause&nbsp;of death
| label9 = Status
| data15    = {{{death cause|{{{death_cause|}}}}}}
| data9 = {{{status|Unknown}}}[[Category:{{Cape/status|{{{status|Unknown}}}}} characters]]
 
}}
| label19    = Residence
{{#ifeq: {{{status|Unknown}}} | Draft || {{#if: {{{noncape|}}} | [[Category:Non-capes]] | [[Category:Capes]] }}}}
| data19    = [[Residence::{{{residence|}}}]]
{{#ifeq: {{{status|Unknown}}} | Draft || {{#ifeq:{{{leader|}}} | true | [[Category:Leaders]] }}}}
| class19    = {{#if:{{{death_date|}}}{{{death_place|}}}||label}}
{{#cargo_store:_table=characters}}
 
</includeonly><noinclude>
| label20    = Nationality
{{documentation}}
| data20    = [[Nationality::{{{nationality|}}}]]
{{#cargo_declare:_table=characters
| class20    = category
|name=String
 
|location=Page
| label21    = Other&nbsp;names
|status=String (allowed values=Active,NPC,Lore,Deceased,Draft,Noncanon)
| data21    = {{{othername|{{{nickname|{{{alias|}}}}}}}}}{{#if:{{{alias|}}}|{{#set:Identity={{{alias|}}}}}}}{{#if:{{{nickname|}}}|{{#set:Identity={{{nickname|}}}}}}}{{#if:{{{othername|}}}|{{#set:Identity={{{othername|}}}}}}}
|author=List (,) of String
| class21    = nickname
|alignment=Page (allowed values=Hero,Villain,Rogue,Other)
 
|affiliation=List (,) of Page
| label40    = Height
|civ_name=String
| data40    = {{#if:{{{height_m|{{{height_cm|}}}}}}{{{height_ft|}}}{{{height_in|}}} | {{convinfobox|{{{height_m|{{{height_cm|}}}}}}|{{#if:{{{height_m|}}}|m|cm}}|{{{height_ft|}}}|ft|{{{height_in|}}}|in}}}}{{#if:{{{height|}}} | {{infobox person/height|{{{height|}}}}}}}
|class=List (,) of String (allowed values=Blaster,Breaker,Brute,Changer,Master,Mover,Shaker,Stranger,Striker,Thinker,Tinker,Trump)
 
|birth_date=Date
| label41    = Weight
|leader=boolean
| data41    = {{#if:{{{weight_kg|}}}{{{weight_st|}}}{{{weight_lb|}}} | {{convinfobox|{{{weight_kg|}}}|kg|{{{weight_st|}}}|st|{{{weight_lb|}}}|lb}}}}{{#if:{{{weight|}}} | {{infobox person/weight|{{{weight|}}}}}}}
 
| label54    = <span class="nowrap">Spouse(s)</span>
| data54    = {{{spouse|{{{spouses|{{{spouse(s)|}}}}}}}}}
 
| label55    = <span class="nowrap">Partner(s)</span>
| data55    = {{{partner|{{{domesticpartner|{{{domestic_partner|{{{partners|{{{partner(s)|}}}}}}}}}}}}}}}
 
| label56    = Children
| data56    = {{{children|}}}
 
| label57    = Parent{{#if:{{{parents|}}}|(s)|{{#if:{{{father|}}}|{{#if:{{{mother|}}}|s|(s)}}|(s)}}}}
| data57    = {{#if:{{{parents|}}}|{{{parents}}}|{{Unbulleted list|{{#if:{{{father|}}}|{{{father}}} (father)}}|{{#if:{{{mother|}}}|{{{mother}}} (mother)}}}}}}
 
| label58    = Relatives
| data58    = {{{relations|{{{relatives|}}}}}}
 
| label59    = Family
| data59    = {{{family|}}}
 
| label60    = Call-sign
| data60    = {{{callsign|}}}{{#if:{{{callsign|}}}|{{#set:Identity={{{callsign|}}}}}}}
 
| data64    = {{{misc|{{{module|}}}}}}
| data65    = {{{misc2|{{{module2|}}}}}}
| data66    = {{{misc3|{{{module3|}}}}}}
| data67    = {{{misc4|{{{module4|}}}}}}
| data68    = {{{misc5|{{{module5|}}}}}}
| data69    = {{{misc6|{{{module6|}}}}}}
 
| header71  = {{#if:{{{signature|}}}|Signature}}
| data72    = {{#invoke:InfoboxImage|InfoboxImage|image={{{signature|}}}|size={{{signature_size|}}}|sizedefault=150px|alt={{{signature alt|{{{signature_alt|}}}}}}}}
 
| header73  = {{#if:{{{footnotes|}}}|Notes}}
| data74    = {{#if:{{{footnotes|}}}|<div style="text-align: left;">
{{{footnotes}}}</div>}}
 
}}
}}
</includeonly>
<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

Template documentation[create]

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.

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Cape namename

The name most recognizable for your character. If multiple names are applicable, pick one.

Example
Skitter
Auto value
{{PAGENAMEBASE}}
Stringrequired
Locationlocation

What city or locality the character lives in. Leave as-is unless directed otherwise.

Default
Devilfish
Example
Brockton Bay
Page namerequired
Statusstatus

Status of the character. Choose one of the given options.

Suggested values
Draft Active NPC Lore Deceased
Default
Draft
Example
Deceased
Stringrequired
Authorauthor

The discord username of the character's author

Example
wildbow
Stringrequired
Alignmentalignment

Alignment of the character within the Hero/Villain system

Suggested values
Hero Villain Rogue Other
Example
Villain
Stringrequired
Affiliationaffiliation

What group the character is affiliated with.

Default
None
Example
Undersiders
Page namerequired
Civilian Nameciv_name

The name used by the character outside of parahuman-related contexts. "Secret Identity".

Example
Taylor Hebert
Stringsuggested
PRT Classificationclass

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
Stringsuggested
Imageimage

An image of your character, to be shown in the sidebar. Go to [[Special:Upload]] first to add the image to the wiki

Fileoptional
Image captioncaption

Used to add text below the image, for adding context as required

Stringoptional
Pronounspronouns

What pronouns are used by your character

Example
she/her
Stringoptional
Date of birthbirth_date

When was your character born

Example
1994-07-23
Dateoptional
Date of deathdeath_date

When your character died, if applicable

Example
2013-08-11
Dateoptional
Noncape flagnoncape

Check this box if your character is not a parahuman. Otherwise, leave it alone

Booleanoptional
Leader flagleader

Check this box if your character is the leader of their team. Otherwise, leave it alone.

Booleanoptional