Difference between revisions of "Template:Infobox character"

From Dwaia Wiki
Jump to navigation Jump to search
m (Removed the extra Alias row)
 
(6 intermediate revisions by one other user not shown)
Line 1: Line 1:
<table class="wikitable infobox">
+
<table class="infobox">
<tr>
+
{{ Infobox default title      | {{{name|{{PAGENAME}}}}} }}
<th colspan="2" style="font-size:20px">{{{name|{{PAGENAME}}}}}</th>
+
 
</tr>{{#if:{{{image|}}}|<tr>
+
{{ Infobox conditional image  | {{{image|}}}       }}
<td colspan="2" style="font-size:20px">[[File:{{{image}}}|frameless]]</td>
+
{{ Infobox conditional caption | {{{imagecaption|}}}     }}
</tr>|}}{{#if:{{{imagecaption|}}}|<tr>
+
 
<td colspan="2" class="caption">{{{imagecaption}}}</td>
+
 
</tr>|}}{{#if:{{{aliases|}}}|<tr>
+
{{ Infobox conditional data    | Aliases    | {{{aliases|}}}       }}
<td>Aliases</td><td>{{{aliases}}}</td>
+
{{ Infobox conditional data    | Relatives  | {{{relatives|}}}       }}
</tr>|}}{{#if:{{{relatives|}}}|<tr>
+
{{ Infobox conditional data    | Affiliation| {{{affiliation|}}}       }}
<td>Relatives</td><td>{{{relatives}}}</td>
+
 
</tr>|}}{{#if:{{{affiliation|}}}|<tr>
+
{{ Infobox conditional section
<td>Affiliation</td><td>{{{affiliation}}}</td>
+
| cond = {{{element|}}}{{{level|}}}{{{skills|}}}{{{str|}}}{{{dex|}}}{{{con|}}}{{{int|}}}{{{wis|}}}{{{cha|}}} <!-- This checks if any of the stats are defined by concatenating them and seeing if the string is empty -->
</tr>|}}{{#if:{{{str|}}}{{{dex|}}}{{{con|}}}{{{int|}}}{{{wis|}}}{{{cha|}}}|<tr>
+
| title = Stats
<th colspan="2" style="font-size:16px">Stats</td>
+
|
</tr><tr>
+
{{ Infobox conditional data    | Elements   | {{{element|}}}       }}
<td>Elements</td><td>{{{element|-}}}</td>
+
{{ Infobox conditional data    | Level     | {{{level|}}}       }}
</tr><tr>
+
{{ Infobox conditional data    | Skills     | {{{skills|}}}       }}
<td>Level</td><td>{{{level|-}}}</td>
+
{{ Infobox conditional data    | STR       | {{{str|}}}       }}
</tr><tr>
+
{{ Infobox conditional data    | DEX       | {{{dex|}}}       }}
<td>Skills</td><td>{{{skills|-}}}</td>
+
{{ Infobox conditional data    | CON       | {{{con|}}}       }}
</tr><tr>
+
{{ Infobox conditional data    | INT       | {{{int|}}}       }}
<td>STR</td><td>{{{str|-}}}</td>
+
{{ Infobox conditional data    | WIS       | {{{wis|}}}       }}
</tr><tr>
+
{{ Infobox conditional data    | CHA       | {{{cha|}}}       }}
<td>DEX</td><td>{{{dex|-}}}</td>
+
{{ Infobox conditional caption | [[Stats Explained|What are these stats?]]       }}
</tr><tr>
+
}}
<td>CON</td><td>{{{con|-}}}</td>
+
 
</tr><tr>
+
{{ Infobox conditional section
<td>INT</td><td>{{{int|-}}}</td>
+
| cond = {{{country|}}}{{{marital|}}}{{{birthDate|}}}{{{birthPlace|}}}{{{deathDate|}}}{{{deathPlace|}}}
</tr><tr>
+
| title = Biographical information
<td>WIS</td><td>{{{wis|-}}}</td>
+
|
</tr><tr>
+
{{ Infobox conditional data    | Country        | {{{country|}}}       }}
<td>CHA</td><td>{{{cha|-}}}</td>
+
{{ Infobox conditional data    | Marital status | {{{marital|}}}       }}
</tr><tr>
+
{{ Infobox conditional data    | Date of birth | {{{birthDate|}}}       }}
<td class="caption">[[Stats Explained|What are these stats?]]</td>
+
{{ Infobox conditional data    | Place of birth | {{{birthPlace|}}}       }}
</tr>|}}<tr>
+
{{ Infobox conditional data    | Date of death | {{{deathDate|}}}       }}
{{#if:{{{country|}}}{{{marital|}}}{{{birthDate|}}}{{{birthPlace|}}}{{{deathDate|}}}{{{deathPlace|}}}|
+
{{ Infobox conditional data    | Place of death | {{{deathPlace|}}}       }}
<th colspan="2" style="font-size:16px">Biographical information</td>
+
}}
</tr>{{#if:{{{country|}}}|<tr>
+
 
<td>Country</td><td>{{{country}}}</td>
+
{{ Infobox conditional section
</tr>|}}{{#if:{{{marital|}}}|<tr>
+
| cond = {{{species|}}}{{{gender|}}}{{{height|}}}{{{weight|}}}
<td>Marital status</td><td>{{{marital}}}</td>
+
| title = Biographical information
</tr>|}}{{#if:{{{birthDate|}}}|<tr>
+
|
<td>Date of birth</td><td>{{{birthDate}}}</td>
+
{{ Infobox conditional data    | Species    | {{{species|}}}       }}
</tr>|}}{{#if:{{{birthPlace|}}}|<tr>
+
{{ Infobox conditional data    | Gender    | {{{gender|}}}       }}
<td>Place of birth</td><td>{{{birthPlace}}}</td>
+
{{ Infobox conditional data    | Height    | {{{height|}}}       }}
</tr>|}}{{#if:{{{deathDate|}}}|<tr>
+
{{ Infobox conditional data    | Weight    | {{{weight|}}}       }}
<td>Date of death</td><td>{{{deathDate}}}</td>
+
{{ Infobox conditional data    | Eye color  | {{{eyes|}}}       }}
</tr>|}}{{#if:{{{deathPlace|}}}|<tr>
+
}}
<td>Place of death</td><td>{{{deathPlace}}}</td>
+
 
</tr>|}}|}}
 
{{#if:{{{species|}}}{{{gender|}}}{{{height|}}}{{{weight|}}}|<tr>
 
<th colspan="2" style="font-size:16px">Psysical description</td>
 
</tr>{{#if:{{{species|}}}|<tr>
 
<td>Species</td><td>{{{species}}}</td>
 
</tr>|}}{{#if:{{{gender|}}}|<tr>
 
<td>Gender</td><td>{{{gender}}}</td>
 
</tr>|}}{{#if:{{{height|}}}|<tr>
 
<td>Height</td><td>{{{height}}}</td>
 
</tr>|}}{{#if:{{{weight|}}}|<tr>
 
<td>Weight</td><td>{{{weight}}}</td>
 
</tr>|}}|}}
 
 
</table>
 
</table>
 
<noinclude>
 
<noinclude>
Line 149: Line 137:
 
}}
 
}}
 
</td></tr></table>
 
</td></tr></table>
 +
 +
[[Category:Templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 19:53, 11 May 2019

Infobox character


How to use

Fill in the fields in this empty template with the appropriate values for the character. Fields that are not filled are automatically hidden.

{{infobox character
 | name         =
 | image        =
 | imagecaption =
 | aliases      =
 | affiliation  =
 | element      =
 | level        =
 | skills       =
 | str          =
 | con          =
 | dex          =
 | int          =
 | cha          =
 | wis          =
 | marital      =
 | birthDate    =
 | birthPlace   =
 | deathDate    =
 | deathPlace   =
 | species      =
 | gender       =
 | height       =
 | weight       =
 | eyes         =
}}

Example

This source code...

{{infobox character
 | name = gremscro big hands
 | image = 3d61387525a4b6817f6e4f80395f16bf.png
 | imagecaption = he
 | aliases = gremscro,<br/>big hands
 | relatives = [[Biggie Hands]] (father),<br/>[[Handa Biggs]] (mother),<br/>[[gremscro big hands]] (himself)
 | affiliation = idunno
 | element      = [[Meat (element)|Meat]]
 | level        = ∞
 | skills       = all
 | str          = big hands
 | con          = big hands
 | dex          = big hands
 | int          = big hands
 | cha          = big hands
 | wis          = big hands
 | country = [[Edgeon // The Dark Rift]]
 | marital = big
 | species = gremscro big hands
 | gender = big hands
 | height = 1.80m (body),<br/>1.20m (hands)
 | weight = 105kg (body),<br/>400kg (hands)
}}

...becomes this infobox:

gremscro big hands
3d61387525a4b6817f6e4f80395f16bf.png
he
Aliases gremscro,
big hands
Relatives Biggie Hands (father),
Handa Biggs (mother),
gremscro big hands (himself)
Affiliation idunno
Stats
Elements Meat
Level
Skills all
STR big hands
DEX big hands
CON big hands
INT big hands
WIS big hands
CHA big hands
What are these stats?
Biographical information
Country Edgeon // The Dark Rift
Marital status big
Biographical information
Species gremscro big hands
Gender big hands
Height 1.80m (body),
1.20m (hands)
Weight 105kg (body),
400kg (hands)