Template:Cape: Difference between revisions

From WormRP
Jump to navigation Jump to search
Keira (talk | contribs)
add cats
Keira (talk | contribs)
No edit summary
 
(16 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     = {{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|}}}}}{{Opengraph 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     = {{#if: {{{noncape|}}} | | {{Cape/rep|{{{rep_morality|}}}|{{{rep_notoriety|}}}|{{{rep_criminal|}}}}} }}


| label3    = Author{{#if:{{{c70|}}}|s|}}
| label2 = Pronouns
| data3      = [[Author::{{{author|Unknown}}}]] <small>{{user capes|{{{author|Unknown}}}|(capes)}}</small>{{#if:{{{c70|}}}|<br />[[Author::{{{author2|Unknown}}}]] <small>{{user capes|{{{author2|Unknown}}}|(capes)}}</small>|}}
| data2 = {{{pronouns|}}}


| label5    = Civilian&nbsp;name
| label3 = Civilian&nbsp;name
| data5      = {{#if:{{{civ_name|}}}|{{#set:Identity={{{civ_name|}}}}}<span class="nickname">[[Civilian Name::{{{civ_name}}}]]</span>}}{{#if:{{{civ_name2|}}}|<br />{{#set:Identity={{{civ_name2|}}}}}<span class="nickname">[[Civilian Name::{{{civ_name2}}}]]</span>}}
| data3 = {{{civ_name|}}}


| label6    = Alignment
| label4 = Alignment
| data6      = {{#if: {{{noncape|}}} | | {{Cape/alignment|{{{alignment|Unknown}}}}}}}
| data4 = {{{alignment|Unknown}}}{{#ifeq: {{{status|Unknown}}} | Draft || [[Category:{{{alignment}}}]]}}


| label7    = Affiliation
| label5 = Affiliation
| data7      = {{Cape/affiliation|{{{affiliation|Unknown}}}}} {{#if: {{{location|}}} | ([[Location::{{{location}}}]]) | {{#set:Location=Unknown}} }}
| data5 = {{{affiliation|Unknown}}} ({{{location}}}){{#ifeq: {{{status|Unknown}}} | Draft || [[Category:{{{location}}} characters]]}}


| label8    = PRT Classification
| label6 = PRT Classification
| data8      = {{#if: {{{noncape|}}} | | {{{class|}}} }}
| data6 = {{{class|}}}{{#ifeq: {{{status|Unknown}}} | Draft || {{#arraymap:{{{class|}}}|,|x|[[Category:xs]]}} }}


| label10    = Born
| label7 = Born
| data10    = {{Br separated entries
| data7 = {{Br separated entries
   |1={{#if:{{{birth_name|{{{birthname|}}}}}}|<span class="nickname">{{{birth_name|{{{birthname|}}}}}}</span>}}
   |1={{#if:{{{birth_date|}}} | {{Cape/dob|{{{birth_date }}}|{{{death_date|}}} }} }}
  |2={{#if:{{{birth_date|}}} | {{Cape/dob|{{{birth_date }}}|{{{death_date|}}} }} }}
   |2={{#if:{{{birth_place|}}}|<span class="birthplace">{{{birth_place|}}}</span> }}
   |3={{#if:{{{birth_place|}}}|<span class="birthplace">{{{birth_place|}}}</span> }}
   }}
   }}
  {{#if:{{{birth_name|}}} |{{#set:Identity={{{birth_name|}}}}}}}


| label13    = Status
| label8 = Died
| data13    = [[Status::{{Cape/status|{{{status|Unknown}}}}}]][[Category:{{Cape/status|{{{status|Unknown}}}}} capes]]
| 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    = {{#if:{{{residence|}}} |[[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    = {{#if:{{{nationality|}}} |[[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>}}
 
| data75    = [{{#if:{{{redditlink|}}} | {{{redditlink}}} | {{Cape/reddit link|{{#if:{{{name|}}}|{{{name}}}|{{PAGENAMEBASE}}}}}} }} Reddit Sheet]
 
}}
}}
{{#if: {{{author|}}} | {{Infobox
| subheader  = [https://www.reddit.com{{{author}}} {{{author}}}]
| data1 = {{flair|{{{author}}}}}
}} |}}
{{#if: {{{author2|}}} | {{Infobox
| subheader  = [https://www.reddit.com{{{author2}}} {{{author2}}}]
| data1 = {{flair|{{{author2}}}}}
}} |}}
{{#if: {{{noncape|}}} | [[Category:Non-capes]] | <includeonly>[[Category:Capes]]</includeonly> }}
{{#set:Flair tag={{#if: {{{flair tag|}}} | {{{flair tag}}} | {{#if:{{{name|}}}|{{{name}}}|{{PAGENAMEBASE}}}} }} }}
{{#if:{{{c70|}}}|[[Category:Case-70s]]|}}
{{#ifeq:{{{leader|}}} | true | {{#set:Leader=true}}[[Category:Leaders]] }}
<noinclude>
<templatedata>
<templatedata>
{
{
"params": {
"params": {
"name": {
"name": {
"label": "Cape Name",
"label": "Cape name",
"description": "Your cape name. If you don't have a cape name, put their civilian name here instead. In most cases, this is also the name of the Wiki page",
"description": "The name most recognizable for your character. If multiple names are applicable, pick one.",
"example": "Good Samaritan",
"example": "Skitter",
"type": "line",
"type": "string",
"autovalue": "{{subst:PAGENAME}}",
"autovalue": "{{PAGENAMEBASE}}",
"required": true
"required": true
},
},
"image": {
"image": {
"label": "Faceclaim",
"label": "Image",
"description": "Your uploaded faceclaim, to be displayed in the sidebar.",
"description": "An image of your character, to be shown in the sidebar. Go to [[Special:Upload]] first to add the image to the wiki",
"example": "Misfit.png",
"type": "wiki-file-name"
"type": "wiki-file-name",
"suggested": true
},
},
"caption": {
"caption": {
"label": "Faceclaim caption",
"label": "Image caption",
"description": "Text to go below the image, for example to describe it.",
"description": "Used to add text below the image, for adding context as required",
"example": "Phalanx and his Droids in a fighting pose",
"type": "string"
"type": "string",
"suggested": true
},
"rep_morality": {
"label": "Morality",
"description": "See [[WormRP:Reputation]]",
"example": "0",
"type": "line",
"autovalue": "",
"suggested": true
},
"rep_notoriety": {
"label": "Notoriety",
"description": "See [[WormRP:Reputation]]",
"example": "E",
"type": "line",
"suggested": true
},
"rep_criminal": {
"label": "Criminal Status",
"description": "See [[WormRP:Reputation]]",
"example": "?",
"type": "line",
"suggested": true
},
},
"author": {
"author": {
"label": "Author",
"label": "Author",
"description": "Your reddit name, including the /u/. This is case-sensitive",
"description": "The discord username of the character's author",
"example": "/u/Magos_Nashoid",
"example": "wildbow",
"type": "line",
"type": "string",
"required": true
"required": true
},
"pronouns": {
"label": "Pronouns",
"description": "What pronouns are used by your character",
"example": "she/her",
"type": "string"
},
},
"civ_name": {
"civ_name": {
"label": "Civilian Name",
"label": "Civilian Name",
"description": "Your cape's civ name, if known",
"description": "The name used by the character outside of parahuman-related contexts. \"Secret Identity\".",
"example": "Elizabeth Sophie Delaney",
"example": "Taylor Hebert",
"type": "line",
"type": "string",
"autovalue": "",
"suggested": true
"suggested": true
},
},
"alignment": {
"alignment": {
"label": "Alignment",
"label": "Alignment",
"description": "One of: Hero, Villain, Rogue, Mercenary, Vigilante, Unknown",
"description": "Alignment of the character within the Hero/Villain system",
"example": "Vigilante",
"example": "Villain",
"type": "line",
"type": "string",
"suggestedvalues": [
"Hero",
"Villain",
"Rogue",
"Other"
],
"required": true
"required": true
},
},
"affiliation": {
"affiliation": {
"label": "Affiliation",
"label": "Affiliation",
"description": "The group your cape is in. For example: Protectorate, Wards, Furies, etc. Ask a staff member if you're having trouble.",
"description": "What group the character is affiliated with.",
"example": "Be Gay Do Crime",
"example": "Undersiders",
"type": "line",
"type": "wiki-page-name",
"default": "None",
"default": "None",
"required": true
"required": true
Line 200: Line 121:
"location": {
"location": {
"label": "Location",
"label": "Location",
"description": "The city the cape is located in",
"description": "What city or locality the character lives in. Leave as-is unless directed otherwise.",
"example": "Devilfish",
"example": "Brockton Bay",
"type": "line",
"type": "wiki-page-name",
"default": "{{subst:WormRP:Active_location}}",
"default": "Devilfish",
"required": true
"required": true
},
},
"class": {
"class": {
"label": "PRT Classification",
"label": "PRT Classification",
"description": "PRT threat classification. Numbers are optional. Please use the format as given in the example so that scripts can read it.",
"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": "{{cape/class|Tinker}} ({{cape/class|Blaster|5}}, {{cape/class|Mover|4}})",
"example": "Master, Thinker",
"type": "line",
"type": "string",
"suggested": true
"suggested": true
},
},
"birth_date": {
"birth_date": {
"label": "Date of Birth",
"label": "Date of birth",
"description": "Character's date of birth, if applicable",
"description": "When was your character born",
"example": "1993-12-08",
"example": "1994-07-23",
"type": "date",
"type": "date"
"suggested": true
},
},
"birth_place": {
"death_date": {
"label": "Place of Birth",
"label": "Date of death",
"description": "Where the character was born, if applicable",
"description": "When your character died, if applicable",
"example": "[[Pineland Colony]], Minnesota",
"example": "2013-08-11",
"type": "line",
"type": "date"
"suggested": true
},
},
"status": {
"status": {
"label": "Status",
"label": "Status",
"description": "One of: Active, NPC, Lore, Deceased",
"description": "Status of the character. Choose one of the given options.",
"example": "Active",
"example": "Deceased",
"type": "line",
"type": "string",
"default": "Active",
"suggestedvalues": [
"Draft",
"Active",
"NPC",
"Lore",
"Deceased"
],
"default": "Draft",
"required": true
"required": true
},
},
"height_cm": {
"noncape": {
"label": "Height (cm)",
"label": "Noncape flag",
"description": "Height. Use either the metric or imperial options, do not mix and match!",
"description": "Check this box if your character is not a parahuman. Otherwise, leave it alone",
"example": "160",
"type": "boolean"
"type": "number",
"suggested": true
},
"height_ft": {
"label": "Height (ft)",
"description": "Height. Use either the metric or imperial options, do not mix and match!",
"example": "5",
"type": "number",
"suggested": true
},
"height_in": {
"label": "Height (in)",
"description": "Height. Use either the metric or imperial options, do not mix and match!",
"example": "3",
"type": "number",
"suggested": true
},
},
"redditlink": {
"leader": {
"label": "Reddit Link",
"label": "Leader flag",
"description": "A link to the reddit page of the approved cape.",
"description": "Check this box if your character is the leader of their team. Otherwise, leave it alone.",
"example": "https://www.reddit.com/r/wormrp/comments/kbvho6/tarrasque/",
"type": "boolean"
"type": "url",
"autovalue": "",
"suggested": true
},
"flair tag": {
"label": "Flair tag",
"description": "If you want your reddit flair to say something else, put it here. This is used, for example, to shorten a long cape name so it fits inside the flair (eg \"Persephone\" => \"Perse\")",
"example": "Perse",
"type": "line"
}
}
},
},
"description": "This template contains most of the cape metadata, and presents itself as the sidebar on the right of the page. In addition, it provides a lot of the provided information as machine-readable metadata for stuff like the [[Main Page]] and roles on the Discord.\n\nThere are additional options not shown in the wizard, if you are interested please ask on #wiki_support or look at the source of other characters' pages that have what you're looking for.",
"paramOrder": [
"paramOrder": [
"name",
"name",
"civ_name",
"location",
"redditlink",
"flair tag",
"image",
"caption",
"status",
"status",
"rep_morality",
"rep_notoriety",
"rep_criminal",
"author",
"author",
"alignment",
"alignment",
"affiliation",
"affiliation",
"location",
"civ_name",
"class",
"class",
"image",
"caption",
"pronouns",
"birth_date",
"birth_date",
"birth_place",
"death_date",
"height_ft",
"noncape",
"height_in",
"leader"
"height_cm"
],
],
"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>
</templatedata></noinclude>
</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