Template:Character Card/doc: Difference between revisions

From CrossCode Wiki
Jump to navigation Jump to search
(Update TemplateData)
(Add `class` parameter)
 
Line 6: Line 6:
| caption  = Type basic description here.
| caption  = Type basic description here.
| username = Lea
| username = Lea
| class    = Spheromancer
| devname  = Bot-Chan, Protagonist
| devname  = Bot-Chan, Protagonist
}}
}}
Line 18: Line 19:
| caption  = Type basic description here.
| caption  = Type basic description here.
| username = Lea
| username = Lea
| class    = Spheromancer
| devname  = Bot-Chan, Protagonist
| devname  = Bot-Chan, Protagonist
}}
}}
Line 26: Line 28:
(imagesize is optional - the default size is 250px)
(imagesize is optional - the default size is 250px)


== TemplateData ==
<templatedata>
<templatedata>
{
{
Line 51: Line 54:
},
},
"caption": {
"caption": {
"label": "Caption",
"label": "Image Caption",
"aliases": [
"aliases": [
"description"
"description"
],
],
"description": "Caption for the image",
"suggested": true,
"suggested": true,
"type": "content"
"type": "content"
Line 66: Line 70:
"label": "Username",
"label": "Username",
"type": "content"
"type": "content"
},
"class": {
"label": "Character Class",
"description": "One of: \"Spheromancer\", \"Triblader\", \"Quadroguard\", \"Pentafist\", \"Hexacast\"",
"type": "wiki-page-name"
},
},
"devname": {
"devname": {

Latest revision as of 03:50, 3 May 2021

File:Template-info.svg Template Documentation

This template is for use on every page that is a Character. Here's how you can use it:

{{Character Card
| name     = Type the name here
| icon     = Lea-icon.png
| image    = File:Lea.png
| caption  = Type basic description here.
| username = Lea
| class    = Spheromancer
| devname  = Bot-Chan, Protagonist
}}

The above produces the character card you see to the right. Note that the real code behind this template is hidden from view until it is included. Also note that if you leave off any of the parameters, then they will be filled with a question mark, except for 'devname' and 'username' which are optional. Feel free to change this yourself, or leave a message on the talk page and I will take a look.

(imagesize is optional - the default size is 250px)

TemplateData

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Namename

The character's name

Default
{{PAGENAME}}
Contentrequired
Iconicon

Small icon of the character's face

Fileoptional
Imageimage

Image or portrait of the character

Default
{{{name}}}-portrait.png
Filesuggested
Image Captioncaption description

Caption for the image

Contentsuggested
Image sizeimagesize

no description

Default
250px
Stringoptional
Usernameusername

no description

Contentoptional
Character Classclass

One of: "Spheromancer", "Triblader", "Quadroguard", "Pentafist", "Hexacast"

Page nameoptional
Development namedevname

no description

Contentoptional