Template:Character Card/doc: Difference between revisions

From CrossCode Wiki
Jump to navigation Jump to search
m (Move template category declarations to subpage)
(Update `imagesize` default)
Line 3: Line 3:
|name=Type the name here
|name=Type the name here
|image=File:Lea.png
|image=File:Lea.png
|imagesize=300px
|imagesize=250px
|description=Type basic description here.
|description=Type basic description here.
|username=Lea
|username=Lea
Line 14: Line 14:
|name=Type the name here
|name=Type the name here
|image=File:Lea.png
|image=File:Lea.png
|imagesize=300px
|imagesize=250px
|description=Type basic description here.
|description=Type basic description here.
|username=Lea
|username=Lea
Line 44: Line 44:
"imagesize": {
"imagesize": {
"label": "Image size",
"label": "Image size",
"default": "300px",
"default": "250px",
"type": "string"
"type": "string"
},
},

Revision as of 06:55, 15 April 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
|image=File:Lea.png
|imagesize=250px
|description=Type basic description here.
|username=Lea
|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 300px)

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Namename

The character's name

Contentrequired
Imageimage

Image or portrait of the character

Default
File:{{{name}}}-portrait.png
Page namesuggested
Image sizeimagesize

no description

Default
250px
Stringoptional
Usernameusername

no description

Contentoptional
Development namedevname

no description

Contentoptional
Descriptiondescription

no description

Contentsuggested