Template:Cape: Difference between revisions

From WormRP
Jump to navigation Jump to search
m (add flair maybe?)
No edit summary
(13 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
Line 16: Line 16:
| data1      = {{#if: {{{noncape|}}} | | {{Cape/rep|{{{rep_morality|}}}|{{{rep_notoriety|}}}|{{{rep_criminal|}}}}} }}
| data1      = {{#if: {{{noncape|}}} | | {{Cape/rep|{{{rep_morality|}}}|{{{rep_notoriety|}}}|{{{rep_criminal|}}}}} }}


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


| label5    = Civilian&nbsp;name
| label5    = Civilian&nbsp;name
| data5      = {{#if:{{{civ_name|}}}|{{#set:Identity={{{civ_name|}}}}}<span class="nickname">[[Civilian Name::{{{civ_name}}}]]</span>}}
| 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>}}


| label6    = Alignment
| label6    = Alignment
Line 26: Line 29:


| label7    = Affiliation
| label7    = Affiliation
| data7      = {{Cape/affiliation|{{{affiliation|Unknown}}}}}
| data7      = {{Cape/affiliation|{{{affiliation|Unknown}}}}} {{#if: {{{location|}}} | ([[Location::{{{location}}}]]) | {{#set:Location=Unknown}} }}


| label8    = PRT Classification
| label8    = PRT Classification
| data8      = {{#if: {{{noncape|}}} | | {{{class|}}} }}
| data8      = {{#if: {{{noncape|}}} | | {{Cape/get classifications|{{{class|}}}}}{{{class|}}} }}


| label10    = Born
| label10    = Born
Line 40: Line 43:


| label13    = Status
| label13    = Status
| data13    = [[Status::{{{status|Unknown}}}]]
| data13    = [[Status::{{Cape/status|{{{status|Unknown}}}}}]][[Category:{{Cape/status|{{{status|Unknown}}}}} capes]]


| label14    = Died
| label14    = Died
Line 105: Line 108:
{{{footnotes}}}</div>}}
{{{footnotes}}}</div>}}


| data75    = [{{#if:{{{redditlink|}}} | {{{redditlink}}} | {{Cape/reddit link|{{#if:{{{name|}}}|{{{name}}}|{{PAGENAMEBASE}}}}}} }} Reddit Sheet]
| data75    = [[Reddit link::{{#if:{{{redditlink|}}} | {{{redditlink}}} | {{Cape/reddit link|{{#if:{{{name|}}}|{{{name}}}|{{PAGENAMEBASE}}}}}} }}|Reddit Sheet]]
 
}}
}}
{{#if: {{{author|}}} | {{Infobox
{{#if: {{{author|}}} | {{Infobox
Line 112: Line 114:
  | data1 = {{flair|{{{author}}}}}
  | data1 = {{flair|{{{author}}}}}
}} |}}
}} |}}
{{#if: {{{noncape|}}} | | <includeonly>[[Category:Capes]]</includeonly> }}
{{#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}}}} }} }}
{{#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]] }}
</includeonly><noinclude>
<templatedata>
{
"params": {
"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",
"example": "Good Samaritan",
"type": "line",
"autovalue": "{{subst:PAGENAME}}",
"required": true
},
"image": {
"label": "Faceclaim",
"description": "Your uploaded faceclaim, to be displayed in the sidebar.",
"example": "Misfit.png",
"type": "wiki-file-name",
"suggested": true
},
"caption": {
"label": "Faceclaim caption",
"description": "Text to go below the image, for example to describe it.",
"example": "Phalanx and his Droids in a fighting pose",
"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": {
"label": "Author",
"description": "Your reddit name, including the /u/. This is case-sensitive",
"example": "/u/Magos_Nashoid",
"type": "line",
"required": true
},
"civ_name": {
"label": "Civilian Name",
"description": "Your cape's civ name, if known",
"example": "Elizabeth Sophie Delaney",
"type": "line",
"autovalue": "",
"suggested": true
},
"alignment": {
"label": "Alignment",
"description": "One of: Hero, Villain, Rogue, Mercenary, Vigilante, Unknown",
"example": "Vigilante",
"type": "line",
"required": true
},
"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.",
"example": "Be Gay Do Crime",
"type": "line",
"default": "None",
"required": true
},
"location": {
"label": "Location",
"description": "The city the cape is located in",
"example": "Devilfish",
"type": "line",
"default": "{{subst:WormRP:Active_location}}",
"required": true
},
"class": {
"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.",
"example": "{{cape/class|Tinker}} ({{cape/class|Blaster|5}}, {{cape/class|Mover|4}})",
"type": "line",
"suggested": true
},
"birth_date": {
"label": "Date of Birth",
"description": "Character's date of birth, if applicable",
"example": "1993-12-08",
"type": "date",
"suggested": true
},
"birth_place": {
"label": "Place of Birth",
"description": "Where the character was born, if applicable",
"example": "[[Pineland Colony]], Minnesota",
"type": "line",
"suggested": true
},
"status": {
"label": "Status",
"description": "One of: Active, NPC, Lore, Deceased",
"example": "Active",
"type": "line",
"default": "Active",
"required": true
},
"height_cm": {
"label": "Height (cm)",
"description": "Height. Use either the metric or imperial options, do not mix and match!",
"example": "160",
"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": {
"label": "Reddit Link",
"description": "A link to the reddit page of the approved cape.",
"example": "https://www.reddit.com/r/wormrp/comments/kbvho6/tarrasque/",
"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": [
"name",
"civ_name",
"redditlink",
"flair tag",
"image",
"caption",
"status",
"rep_morality",
"rep_notoriety",
"rep_criminal",
"author",
"alignment",
"affiliation",
"location",
"class",
"birth_date",
"birth_place",
"height_ft",
"height_in",
"height_cm"
],
"format": "block"
}
</templatedata>
</noinclude>

Revision as of 20:56, 5 June 2022

}}


</includeonly>

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. There 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.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Cape Namename

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

Example
Good Samaritan
Auto value
{{subst:PAGENAME}}
Linerequired
Civilian Nameciv_name

Your cape's civ name, if known

Example
Elizabeth Sophie Delaney
Auto value
Linesuggested
Reddit Linkredditlink

A link to the reddit page of the approved cape.

Example
https://www.reddit.com/r/wormrp/comments/kbvho6/tarrasque/
Auto value
URLsuggested
Flair tagflair tag

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
Lineoptional
Faceclaimimage

Your uploaded faceclaim, to be displayed in the sidebar.

Example
Misfit.png
Filesuggested
Faceclaim captioncaption

Text to go below the image, for example to describe it.

Example
Phalanx and his Droids in a fighting pose
Stringsuggested
Statusstatus

One of: Active, NPC, Lore, Deceased

Default
Active
Example
Active
Linerequired
Moralityrep_morality

See [[WormRP:Reputation]]

Example
0
Auto value
Linesuggested
Notorietyrep_notoriety

See [[WormRP:Reputation]]

Example
E
Linesuggested
Criminal Statusrep_criminal

See [[WormRP:Reputation]]

Example
?
Linesuggested
Authorauthor

Your reddit name, including the /u/. This is case-sensitive

Example
/u/Magos_Nashoid
Linerequired
Alignmentalignment

One of: Hero, Villain, Rogue, Mercenary, Vigilante, Unknown

Example
Vigilante
Linerequired
Affiliationaffiliation

The group your cape is in. For example: Protectorate, Wards, Furies, etc. Ask a staff member if you're having trouble.

Default
None
Example
Be Gay Do Crime
Linerequired
Locationlocation

The city the cape is located in

Default
{{subst:WormRP:Active_location}}
Example
Devilfish
Linerequired
PRT Classificationclass

PRT threat classification. Numbers are optional. Please use the format as given in the example so that scripts can read it.

Example
{{cape/class|Tinker}} ({{cape/class|Blaster|5}}, {{cape/class|Mover|4}})
Linesuggested
Date of Birthbirth_date

Character's date of birth, if applicable

Example
1993-12-08
Datesuggested
Place of Birthbirth_place

Where the character was born, if applicable

Example
[[Pineland Colony]], Minnesota
Linesuggested
Height (ft)height_ft

Height. Use either the metric or imperial options, do not mix and match!

Example
5
Numbersuggested
Height (in)height_in

Height. Use either the metric or imperial options, do not mix and match!

Example
3
Numbersuggested
Height (cm)height_cm

Height. Use either the metric or imperial options, do not mix and match!

Example
160
Numbersuggested