Template:Character Card: Difference between revisions
m (Add commented‑out <image> tag) |
m (Approximate <image> tag behaviour) |
||
Line 19: | Line 19: | ||
HACK: Workaround for the <image> tag bugs on Gamepedia: | HACK: Workaround for the <image> tag bugs on Gamepedia: | ||
--><navigation><!-- | --><navigation><!-- | ||
-->< | --><center class="pi-font" style="margin: -5px -10px; font-weight: normal; color: #DDD;"><!-- | ||
-->[[{{#if: {{{image|}}} | |||
| {{#if: {{#pos:{{{image}}}|:}} | |||
| {{{image}}} | |||
| File:{{{image}}} | |||
}} | |||
| File:{{#var:characterName}}-portrait.png | |||
}}|270px]]<!-- | |||
-->{{#if: {{{caption|}}}{{{description|}}} | |||
| <div class="pi-item-spacing pi-caption"><!-- | |||
-->{{#if: {{{caption|}}} | |||
--></ | | {{{caption}}} | ||
| {{{description}}} | |||
}}<!-- | |||
--></div> | |||
}}<!-- | |||
--></center><!-- | |||
--></navigation> | --></navigation> | ||
<data source="username"> | <data source="username"> | ||
<label>Username</label> | <label>Username</label> |
Revision as of 07:27, 3 May 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 | 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
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 |
Image Caption | caption description | Caption for the image | Content | suggested |
Image size | imagesize | no description
| String | optional |
Username | username | no description | Content | optional |
Character Class | class | One of: "Spheromancer", "Triblader", "Quadroguard", "Pentafist", "Hexacast" | Page name | optional |
Development name | devname | no description | Content | optional |