Template:CharacterBox/entry: Difference between revisions
Jump to navigation
Jump to search
(Add `width` CSS properties and make `nickname` optional) |
m (Always use the `characterbox` classes and format template source) |
||
Line 1: | Line 1: | ||
<onlyinclude><includeonly> | <onlyinclude><includeonly><!-- | ||
-->{{#vardefine: characterbox-attrs<!-- | |||
| style="border-top: 2px solid #1fb7be; width: 15%;" rowspan="2" | {{#if:{{{image|}}}|[[File:{{{image}}} | -->| class="<!-- | ||
| style="border-top: 2px solid #1fb7be; width: {{#if: {{{nickname|}}} | 60% | 85% }}; font-size: 200%;" {{#if: {{{nickname|}}} || colspan="2" }} | {{Anchor|{{{name}}}}}{{#if:{{{nolink|}}}|{{{name}}}|[[{{#if:{{{link|}}}|{{{link}}}{{!}} | -->characterbox<!-- | ||
-->{{#if: {{{class|}}}<!-- | |||
-->|<nowiki/> characterbox-{{lcfirst: {{{class}}} }}<!-- | |||
-->}}<!-- | |||
-->" <!-- | |||
-->{{#if: {{{color|}}}<!-- | |||
-->| style="background-color: {{#ifeq: {{#sub: {{{color}}} || 1 }} |#| {{{color}}} | #{{{color}}} }};"<!-- | |||
-->}}<!-- | |||
-->}} | |||
|- {{#var: characterbox-attrs }} | |||
| style="border-top: 2px solid #1fb7be; width: 15%;" rowspan="2" | <!-- | |||
-->{{#if: {{{image|}}} |<!-- | |||
-->[[File:{{{image}}}<!-- | |||
-->{{#if: {{{nolink|}}} || {{!}}link={{#if: {{{link|}}} | {{{link}}} | {{{name}}} }} }}<!-- | |||
-->|center<!-- | |||
-->|{{{name}}}<!-- | |||
-->]]<!-- | |||
-->}} | |||
| style="border-top: 2px solid #1fb7be; width: {{#if: {{{nickname|}}} | 60% | 85% }}; font-size: 200%;" {{#if: {{{nickname|}}} || colspan="2" }} |<!-- | |||
-->{{Anchor| {{{name}}} }}<!-- | |||
-->{{#if: {{{nolink|}}}<!-- | |||
-->| {{{name}}}<!-- | |||
-->| [[{{#if: {{{link|}}} | {{{link}}}{{!}} }}{{{name}}}]]<!-- | |||
-->}}<!-- | |||
-->{{#if: {{{nickname|}}} |<nowiki/> | -->{{#if: {{{nickname|}}} |<nowiki/> | ||
{{!}} style="border-top: 2px solid #1fb7be; width: 25%; font-style: italic; font-size: 200%;" {{!}} {{{nickname}}} | {{!}} style="border-top: 2px solid #1fb7be; width: 25%; font-style: italic; font-size: 200%;" {{!}} {{{nickname}}} | ||
}} | }} | ||
|- {{# | |- {{#var: characterbox-attrs }} | ||
| style="width: 85%;" colspan="2" |{{{desc}}} | | style="width: 85%;" colspan="2" | {{{desc}}} | ||
|- | |- | ||
</includeonly></onlyinclude> | {{#vardefine: characterbox-attrs }}<!-- | ||
--></includeonly></onlyinclude> | |||
{{Doc}} | {{Doc}} |
Revision as of 14:23, 5 May 2021
This template has no documentation. If you know how to use this template, please add some.
![]() |
Emilie-Sophie de Belmond | Emilienator |
A competitive Pentafist who befriends Lea during the tutorial and later joins her party. | ||
![]() |
Carla Salvatore | |
An employee on the M.S. Solar, tasked with introducing Lea to CrossWorlds. | ||
![]() |
ShortGirl96 | |
A female Quadroguard who is greatly disappointed with the challenges of using a short avatar. |
TemplateData
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Name | name | no description | String | required |
Nickname | nickname | no description | String | suggested |
Description | desc | no description | Content | required |
Image | image | no description | File | suggested |
Character Class | class | One of: "Spheromancer", "Triblader", "Quadroguard", "Pentafist", "Hexacast" | String | optional |
Page link | link | no description | Page name | optional |
No link | nolink | no description | Boolean | optional |
Background Color | color | no description | String | deprecated |