Template:Character Card: Difference between revisions
(Move description after image) |
m (Remove now unnecessary <div style="‑‑theme‑infobox‑background‑color: #000;">) |
||
(11 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<onlyinclude><includeonly><!-- | <onlyinclude><includeonly><!-- | ||
--><div style="- | --><infobox theme="crosscode" type="character" theme-source="class"> | ||
-->< | <title> | ||
<default><div style="text-align: center;"><!-- | |||
-->{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}<!-- | |||
-->{{#if: {{{icon|}}} |<nowiki/> [[File:{{{icon}}}|link=]] }}<!-- | |||
--></div></default> | |||
</title> | </title> | ||
< | <image source="image"> | ||
< | <default>{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}-portrait.png</default> | ||
<caption source="caption"> | |||
<default>{{{description|}}}</default> | |||
</caption> | |||
</image> | |||
<data source="username"> | <data source="username"> | ||
<label>Username | <label>Username</label> | ||
</data> | |||
<data source="class"> | |||
<label>Class</label> | |||
<format>[[{{{class}}}]]</format> | |||
</data> | </data> | ||
<data source="devname"> | <data source="devname"> | ||
<label>Development Name | <label>Development Name</label> | ||
</data> | </data> | ||
</infobox><!-- | </infobox><!-- | ||
-->< | -->{{#if:{{NAMESPACE}}||<!-- | ||
Categories: | |||
--><!-- [[Category:Characters]] --><!-- TODO: This shouldn't include non-canon fan characters (Category:Fan Materials) | |||
-->}}<!-- | |||
--></includeonly></onlyinclude> | --></includeonly></onlyinclude> | ||
{{Doc}} | {{Doc}} |
Latest revision as of 22:56, 1 June 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 |