Template:Cape: Difference between revisions
(fix this) |
No edit summary |
||
(26 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 9: | Line 9: | ||
| abovestyle = {{{abovestyle|}}} | | 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|}}}|size={{{image size|{{{image_size|{{{imagesize|}}}}}}}}}|sizedefault=frameless|upright={{{image_upright|1}}}|alt={{{alt|}}}|suppressplaceholder=yes}}{{#if:{{{image|}}}|{{#set:Image={{{image|}}}}}{{Opengraph image|{{{image|}}}}}}} | ||
| caption = {{{image caption|{{{caption|{{{image_caption|}}}}}}}}} | | caption = {{{image caption|{{{caption|{{{image_caption|}}}}}}}}} | ||
| label1 = [[WormRP:Reputation|Reputation]] | | label1 = [[WormRP:Reputation|Reputation]] | ||
| rowcellstyle1 = vertical-align: middle; | | rowcellstyle1 = vertical-align: middle; | ||
| data1 = {{#if:{{{ | | data1 = {{#if: {{{noncape|}}} | | {{Cape/rep|{{{rep_morality|}}}|{{{rep_notoriety|}}}|{{{rep_criminal|}}}}} }} | ||
| label3 = Author{{#if:{{{c70|}}}|s|}} | |||
| 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 name | | label5 = Civilian 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 | ||
| data6 = {{Cape/alignment|{{{alignment|Unknown}}}}} | | data6 = {{#if: {{{noncape|}}} | | {{Cape/alignment|{{{alignment|Unknown}}}}}}} | ||
| 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 = {{{class|}}} | | data8 = {{#if: {{{noncape|}}} | | {{Cape/get classifications|{{{class|}}}}}{{{class|}}} }} | ||
| label10 = Born | | label10 = Born | ||
Line 37: | 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 49: | Line 55: | ||
| label19 = Residence | | label19 = Residence | ||
| data19 = [[Residence::{{{residence|}}}]] | | data19 = {{#if:{{{residence|}}} |[[Residence::{{{residence|}}}]]}} | ||
| class19 = {{#if:{{{death_date|}}}{{{death_place|}}}||label}} | | class19 = {{#if:{{{death_date|}}}{{{death_place|}}}||label}} | ||
| label20 = Nationality | | label20 = Nationality | ||
| data20 = [[Nationality::{{{nationality|}}}]] | | data20 = {{#if:{{{nationality|}}} |[[Nationality::{{{nationality|}}}]]}} | ||
| class20 = category | | class20 = category | ||
Line 99: | Line 105: | ||
| header73 = {{#if:{{{footnotes|}}}|Notes}} | | header73 = {{#if:{{{footnotes|}}}|Notes}} | ||
| data74 = {{#if:{{{footnotes|}}}|<div style="text-align: left;"> | | data74 = {{#if:{{{footnotes|}}}|<div style="text-align: left;"> | ||
{{{footnotes}}}</div>}} | {{{footnotes}}}</div>}} | ||
| data75 = [[Reddit link::{{#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]] }} | |||
</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.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Cape Name | name | 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
| Line | required |
Civilian Name | civ_name | Your cape's civ name, if known
| Line | suggested |
Reddit Link | redditlink | A link to the reddit page of the approved cape.
| URL | suggested |
Flair tag | flair 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")
| Line | optional |
Faceclaim | image | Your uploaded faceclaim, to be displayed in the sidebar.
| File | suggested |
Faceclaim caption | caption | Text to go below the image, for example to describe it.
| String | suggested |
Status | status | One of: Active, NPC, Lore, Deceased
| Line | required |
Morality | rep_morality | See [[WormRP:Reputation]]
| Line | suggested |
Notoriety | rep_notoriety | See [[WormRP:Reputation]]
| Line | suggested |
Criminal Status | rep_criminal | See [[WormRP:Reputation]]
| Line | suggested |
Author | author | Your reddit name, including the /u/. This is case-sensitive
| Line | required |
Alignment | alignment | One of: Hero, Villain, Rogue, Mercenary, Vigilante, Unknown
| Line | required |
Affiliation | affiliation | The group your cape is in. For example: Protectorate, Wards, Furies, etc. Ask a staff member if you're having trouble.
| Line | required |
Location | location | The city the cape is located in
| Line | required |
PRT Classification | class | PRT threat classification. Numbers are optional. Please use the format as given in the example so that scripts can read it.
| Line | suggested |
Date of Birth | birth_date | Character's date of birth, if applicable
| Date | suggested |
Place of Birth | birth_place | Where the character was born, if applicable
| Line | suggested |
Height (ft) | height_ft | Height. Use either the metric or imperial options, do not mix and match!
| Number | suggested |
Height (in) | height_in | Height. Use either the metric or imperial options, do not mix and match!
| Number | suggested |
Height (cm) | height_cm | Height. Use either the metric or imperial options, do not mix and match!
| Number | suggested |