Template:Character Card: Difference between revisions

From CrossCode Wiki
Jump to navigation Jump to search
(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="--theme-infobox-background-color: #000;"><!--
--><infobox theme="crosscode" type="character" theme-source="class">
--><infobox type="character">
<title>
<title source="name">
<default><div style="text-align: center;"><!--
<default>{{PAGENAME}}</default>
-->{{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}<!--
-->{{#if: {{{icon|}}} |<nowiki/> [[File:{{{icon}}}|link=]] }}<!--
--></div></default>
</title>
</title>
<navigation>[[{{#if:{{{image|}}}|{{{image}}}|File:{{{name|{{PAGENAME}}}}}-portrait.png}}|{{#if:{{{imagesize|}}}|{{{imagesize}}}|250px}}]]</navigation>
<image source="image">
<data source="description" />
<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>
<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>
<label>Development Name</label>
</data>
</data>
</infobox><!--
</infobox><!--
--></div><!--
-->{{#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

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
| 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

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Namename

The character's name

Default
{{PAGENAME}}
Contentrequired
Iconicon

Small icon of the character's face

Fileoptional
Imageimage

Image or portrait of the character

Default
{{{name}}}-portrait.png
Filesuggested
Image Captioncaption description

Caption for the image

Contentsuggested
Image sizeimagesize

no description

Default
250px
Stringoptional
Usernameusername

no description

Contentoptional
Character Classclass

One of: "Spheromancer", "Triblader", "Quadroguard", "Pentafist", "Hexacast"

Page nameoptional
Development namedevname

no description

Contentoptional