Template:Character Card/doc: Difference between revisions
(Update `imagesize` default) |
(Update TemplateData) |
||
Line 1: | Line 1: | ||
{{Doc/start}} | {{Doc/start}} | ||
{{ | {{Character Card | ||
|name=Type the name here | | name = Type the name here | ||
|image=File:Lea.png | | icon = Lea-icon.png | ||
| | | image = File:Lea.png | ||
| caption = Type basic description here. | |||
|username=Lea | | username = Lea | ||
|devname=Bot-Chan, Protagonist | | devname = Bot-Chan, Protagonist | ||
}} | }} | ||
This template is for use on every page that is a [[Character]]. Here's how you can use it: | This template is for use on every page that is a [[Character]]. Here's how you can use it: | ||
<pre>{{ | <pre> | ||
|name=Type the name here | {{Character Card | ||
|image=File:Lea.png | | name = Type the name here | ||
| | | icon = Lea-icon.png | ||
| image = File:Lea.png | |||
|username=Lea | | caption = Type basic description here. | ||
|devname=Bot-Chan, Protagonist | | username = Lea | ||
}}</pre> | | devname = Bot-Chan, Protagonist | ||
}} | |||
</pre> | |||
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. | 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 | (imagesize is optional - the default size is 250px) | ||
<templatedata> | <templatedata> | ||
Line 32: | Line 34: | ||
"label": "Name", | "label": "Name", | ||
"description": "The character's name", | "description": "The character's name", | ||
"default": "{{PAGENAME}}", | |||
"required": true, | "required": true, | ||
"type": "content" | "type": "content" | ||
}, | |||
"icon": { | |||
"label": "Icon", | |||
"description": "Small icon of the character's face", | |||
"type": "wiki-file-name" | |||
}, | }, | ||
"image": { | "image": { | ||
"label": "Image", | "label": "Image", | ||
"description": "Image or portrait of the character", | "description": "Image or portrait of the character", | ||
"default": " | "default": "{{{name}}}-portrait.png", | ||
"suggested": true, | |||
"type": "wiki-file-name" | |||
}, | |||
"caption": { | |||
"label": "Caption", | |||
"aliases": [ | |||
"description" | |||
], | |||
"suggested": true, | "suggested": true, | ||
"type": " | "type": "content" | ||
}, | }, | ||
"imagesize": { | "imagesize": { | ||
Line 53: | Line 69: | ||
"devname": { | "devname": { | ||
"label": "Development name", | "label": "Development name", | ||
"type": "content" | "type": "content" | ||
} | } |
Revision as of 21:05, 22 April 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 | icon = Lea-icon.png | image = File:Lea.png | caption = 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 250px)
Parameter | Description | Type | Status | |
---|---|---|---|---|
Name | name | The character's name
| Content | required |
Icon | icon | Small icon of the character's face | File | optional |
Image | image | Image or portrait of the character
| File | suggested |
Caption | caption description | no description | Content | suggested |
Image size | imagesize | no description
| String | optional |
Username | username | no description | Content | optional |
Development name | devname | no description | Content | optional |