Template:Character Card/doc: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
(Add TemplateData) |
||
Line 1: | Line 1: | ||
{{ | {{Doc/start}} | ||
{{Character_Card | {{Character_Card | ||
|name=Type the name here | |name=Type the name here | ||
Line 23: | Line 23: | ||
(imagesize is optional - the default size is 300px) | (imagesize is optional - the default size is 300px) | ||
{{ | |||
<templatedata> | |||
{ | |||
"format": "block", | |||
"params": { | |||
"name": { | |||
"label": "Name", | |||
"description": "The character's name", | |||
"required": true, | |||
"type": "content" | |||
}, | |||
"image": { | |||
"label": "Image", | |||
"description": "Image or portrait of the character", | |||
"required": true, | |||
"type": "wiki-page-name" | |||
}, | |||
"imagesize": { | |||
"label": "Image size", | |||
"default": "300px", | |||
"type": "string" | |||
}, | |||
"username": { | |||
"label": "Username", | |||
"type": "content" | |||
}, | |||
"devname": { | |||
"label": "Development name", | |||
"type": "content" | |||
}, | |||
"description": { | |||
"label": "Description", | |||
"suggested": true, | |||
"type": "content" | |||
} | |||
} | |||
} | |||
</templatedata> | |||
{{Doc/end}} |
Revision as of 15:06, 17 March 2021
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=300px |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)
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Name | name | The character's name | Content | required |
Image | image | Image or portrait of the character | Page name | required |
Image size | imagesize | no description
| String | optional |
Username | username | no description | Content | optional |
Development name | devname | no description | Content | optional |
Description | description | no description | Content | suggested |