Difference between revisions of "Template:Character Infobox"

From Underrail Wiki
Jump to navigation Jump to search
(parser hack)
m
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
{| style={{Infobox common style}} width="320px"
+
{| cellspacing="0px" style={{Infobox common style}} width="320px"
 
|-
 
|-
 
| colspan="2" style="text-align:center; font-weight:bold; font-size:140%; color:#AE5700; padding-bottom:10px; border-bottom:#AE5700 2px solid" | {{{name|Character or creature name}}}
 
| colspan="2" style="text-align:center; font-weight:bold; font-size:140%; color:#AE5700; padding-bottom:10px; border-bottom:#AE5700 2px solid" | {{{name|Character or creature name}}}
Line 47: Line 47:
 
|​
 
|​
 
{{!}}-
 
{{!}}-
{{!}} width="30%" valign="top" align="right" {{!}} Faction
+
{{!}} width="30%" style="padding-right:0.4em;" valign="top" align="right" {{!}} Faction
 
{{!}} width="70%" style="font-size:90%; border-left:#AE5700 1px solid; padding-left:1em;" {{!}}
 
{{!}} width="70%" style="font-size:90%; border-left:#AE5700 1px solid; padding-left:1em;" {{!}}
 
{{{faction|faction, examples:<br>[[South Gaters]]<br>Wildlife}}}
 
{{{faction|faction, examples:<br>[[South Gaters]]<br>Wildlife}}}
Line 56: Line 56:
 
{{#if:<noinclude>string</noinclude>{{{roles|}}}
 
{{#if:<noinclude>string</noinclude>{{{roles|}}}
 
|{{!}}-
 
|{{!}}-
{{!}} width="30%" valign="top" align="right" {{!}} Role
+
{{!}} width="30%" style="padding-right:0.4em;" valign="top" align="right" {{!}} Role
 
{{!}} width="70%" style="font-size:90%; border-left:#AE5700 1px solid; padding-left:1em;" {{!}}
 
{{!}} width="70%" style="font-size:90%; border-left:#AE5700 1px solid; padding-left:1em;" {{!}}
 
{{{roles|roles, examples:<br>[[Trader]]<br>[[Psi trainer]]<br>Quest NPC}}}
 
{{{roles|roles, examples:<br>[[Trader]]<br>[[Psi trainer]]<br>Quest NPC}}}
Line 65: Line 65:
 
{{#if:<noinclude>string</noinclude>{{{location|}}}
 
{{#if:<noinclude>string</noinclude>{{{location|}}}
 
|{{!}}-
 
|{{!}}-
{{!}} width="30%" valign="top" align="right" {{!}} Location
+
{{!}} width="30%" style="padding-right:0.4em;" valign="top" align="right" {{!}} Location
 
{{!}} width="70%" style="font-size:90%; border-left:#AE5700 1px solid; padding-left:1em;" {{!}}
 
{{!}} width="70%" style="font-size:90%; border-left:#AE5700 1px solid; padding-left:1em;" {{!}}
 
{{{location|location, examples:<br>[[South Gate Outposts]]<br>[[Lower Underrail]]}}}
 
{{{location|location, examples:<br>[[South Gate Outposts]]<br>[[Lower Underrail]]}}}
Line 74: Line 74:
 
{{#if:<noinclude>string</noinclude>{{{quests|}}}
 
{{#if:<noinclude>string</noinclude>{{{quests|}}}
 
|{{!}}-
 
|{{!}}-
{{!}} width="30%" valign="top" align="right" {{!}} Quests
+
{{!}} width="30%" style="padding-right:0.4em;" valign="top" align="right" {{!}} Quests
 
{{!}} width="70%" style="font-size:90%; border-left:#AE5700 1px solid; padding-left:1em;" {{!}}
 
{{!}} width="70%" style="font-size:90%; border-left:#AE5700 1px solid; padding-left:1em;" {{!}}
 
{{{quests|quest1<br>quest2<br>quest3<br>etc}}}
 
{{{quests|quest1<br>quest2<br>quest3<br>etc}}}
Line 83: Line 83:
 
{{#if:<noinclude>string</noinclude>{{{loot|}}}
 
{{#if:<noinclude>string</noinclude>{{{loot|}}}
 
|{{!}}-
 
|{{!}}-
{{!}} width="30%" valign="top" align="right" {{!}} Loot
+
{{!}} width="30%" style="padding-right:0.4em;" valign="top" align="right" {{!}} Loot
 
{{!}} width="70%" style="font-size:90%; border-left:#AE5700 1px solid; padding-left:1em;" {{!}}
 
{{!}} width="70%" style="font-size:90%; border-left:#AE5700 1px solid; padding-left:1em;" {{!}}
 
{{{loot|Ammunition<br>Scraps<br>Firearm Barrels (rarely)}}}
 
{{{loot|Ammunition<br>Scraps<br>Firearm Barrels (rarely)}}}
Line 105: Line 105:
 
|&#8203;
 
|&#8203;
 
{{!}}- title="Special abilities"
 
{{!}}- title="Special abilities"
{{!}} valign="top" align="right" {{!}} Abilities
+
{{!}} style="padding-right:0.4em;" valign="top" align="right" {{!}} Abilities
 
{{!}} style="font-size:90%; border-left:#AE5700 1px solid; padding-left:1em;" {{!}}
 
{{!}} style="font-size:90%; border-left:#AE5700 1px solid; padding-left:1em;" {{!}}
 
{{{abilities|misc. combat stuff, examples:<br>Throws [[Flashbang]]s<br>Can use [[Neural Overload]]<br>Has [[Acid Spray]] special attack}}}<br>
 
{{{abilities|misc. combat stuff, examples:<br>Throws [[Flashbang]]s<br>Can use [[Neural Overload]]<br>Has [[Acid Spray]] special attack}}}<br>
Line 116: Line 116:
 
{{#if:<noinclude>string</noinclude>{{{level|}}}{{{health|}}}{{{shield|}}}{{{psipool|}}}{{{actionpoints|}}}{{{movepoints|}}}{{{damage|}}}{{{range|}}}{{{detection|}}}
 
{{#if:<noinclude>string</noinclude>{{{level|}}}{{{health|}}}{{{shield|}}}{{{psipool|}}}{{{actionpoints|}}}{{{movepoints|}}}{{{damage|}}}{{{range|}}}{{{detection|}}}
 
|{{!}}- title="Derived combat statistics"
 
|{{!}}- title="Derived combat statistics"
{{!}} valign="top" align="right" {{!}} Combat stats
+
{{!}} style="padding-right:0.4em;" valign="top" align="right" {{!}} Combat stats
 
{{!}} style="font-size:90%; border-left:#AE5700 1px solid; padding-left:1em;" {{!}}
 
{{!}} style="font-size:90%; border-left:#AE5700 1px solid; padding-left:1em;" {{!}}
 
{{#if:<noinclude>string</noinclude>{{{level|}}}|Level: {{{level|n}}}<br>
 
{{#if:<noinclude>string</noinclude>{{{level|}}}|Level: {{{level|n}}}<br>
Line 135: Line 135:
 
{{#if:<noinclude>string</noinclude>{{{strength|}}}{{{dexterity|}}}{{{agility|}}}{{{constitution|}}}{{{perception|}}}{{{will|}}}{{{intelligence|}}}
 
{{#if:<noinclude>string</noinclude>{{{strength|}}}{{{dexterity|}}}{{{agility|}}}{{{constitution|}}}{{{perception|}}}{{{will|}}}{{{intelligence|}}}
 
|{{!}}- title="Base ability levels"
 
|{{!}}- title="Base ability levels"
{{!}} valign="top" align="right" {{!}} Base abilities
+
{{!}} style="padding-right:0.4em;" valign="top" align="right" {{!}} Base abilities
 
{{!}} style="font-size:90%; border-left:#AE5700 1px solid; padding-left:1em;" {{!}}
 
{{!}} style="font-size:90%; border-left:#AE5700 1px solid; padding-left:1em;" {{!}}
 
{{#if:<noinclude>string</noinclude>{{{strength|}}}|Strength: {{{strength|n}}}<br>
 
{{#if:<noinclude>string</noinclude>{{{strength|}}}|Strength: {{{strength|n}}}<br>
Line 152: Line 152:
 
{{#if:<noinclude>string</noinclude>{{{guns|}}}{{{throwing|}}}{{{crossbows|}}}{{{melee|}}}{{{dodge|}}}{{{evasion|}}}{{{stealth|}}}{{{hacking|}}}{{{lockpicking|}}}{{{pickpocketing|}}}{{{traps|}}}{{{mechanics|}}}{{{electronics|}}}{{{chemistry|}}}{{{biology|}}}{{{tailoring|}}}{{{thoughtctrl|}}}{{{psychokinesis|}}}{{{metathermics|}}}{{{persuasion|}}}{{{intimidation|}}}{{{mercantile|}}}
 
{{#if:<noinclude>string</noinclude>{{{guns|}}}{{{throwing|}}}{{{crossbows|}}}{{{melee|}}}{{{dodge|}}}{{{evasion|}}}{{{stealth|}}}{{{hacking|}}}{{{lockpicking|}}}{{{pickpocketing|}}}{{{traps|}}}{{{mechanics|}}}{{{electronics|}}}{{{chemistry|}}}{{{biology|}}}{{{tailoring|}}}{{{thoughtctrl|}}}{{{psychokinesis|}}}{{{metathermics|}}}{{{persuasion|}}}{{{intimidation|}}}{{{mercantile|}}}
 
|{{!}}- title="Skill levels"
 
|{{!}}- title="Skill levels"
{{!}} valign="top" align="right" {{!}} Skills
+
{{!}} style="padding-right:0.4em;" valign="top" align="right" {{!}} Skills
 
{{!}} style="font-size:90%; border-left:#AE5700 1px solid; padding-left:1em;" {{!}}
 
{{!}} style="font-size:90%; border-left:#AE5700 1px solid; padding-left:1em;" {{!}}
 
{{#if:<noinclude>string</noinclude>{{{guns|}}}|Guns: {{{guns|n}}}<br>
 
{{#if:<noinclude>string</noinclude>{{{guns|}}}|Guns: {{{guns|n}}}<br>
Line 184: Line 184:
 
{{#if:<noinclude>string</noinclude>{{{mechanical|}}}{{{heat|}}}{{{cold|}}}{{{acid|}}}{{{bio|}}}{{{electricity|}}}{{{energy|}}}
 
{{#if:<noinclude>string</noinclude>{{{mechanical|}}}{{{heat|}}}{{{cold|}}}{{{acid|}}}{{{bio|}}}{{{electricity|}}}{{{energy|}}}
 
|{{!}}- title="Damage resistances and tresholds"
 
|{{!}}- title="Damage resistances and tresholds"
{{!}} valign="top" align="right" {{!}} Resistances
+
{{!}} style="padding-right:0.4em;" valign="top" align="right" {{!}} Resistances
 
{{!}} style="font-size:90%; border-left:#AE5700 1px solid; padding-left:1em;" {{!}}
 
{{!}} style="font-size:90%; border-left:#AE5700 1px solid; padding-left:1em;" {{!}}
 
{{#if:<noinclude>string</noinclude>{{{mechanical|}}}|{{color|white|Mechanical:  {{{mechanical|n% / n}}}}}<br>
 
{{#if:<noinclude>string</noinclude>{{{mechanical|}}}|{{color|white|Mechanical:  {{{mechanical|n% / n}}}}}<br>
Line 208: Line 208:
 
|&#8203;
 
|&#8203;
 
{{!}}-
 
{{!}}-
{{!}} width="30%" valign="top" align="right" {{!}} Character file
+
{{!}} width="30%" style="padding-right:0.4em;" valign="top" align="right" {{!}} Character file
 
{{!}} width="70%" style="font-size:90%; border-left:#AE5700 1px solid; padding-left:1em;" {{!}}
 
{{!}} width="70%" style="font-size:90%; border-left:#AE5700 1px solid; padding-left:1em;" {{!}}
 
<code>{{{charfile|FileName.char}}}</code>
 
<code>{{{charfile|FileName.char}}}</code>
Line 218: Line 218:
 
{{#if:<noinclude>string</noinclude>{{{dialogfile|}}}
 
{{#if:<noinclude>string</noinclude>{{{dialogfile|}}}
 
|{{!}}-
 
|{{!}}-
{{!}} width="30%" valign="top" align="right" {{!}} Dialog file
+
{{!}} width="30%" style="padding-right:0.4em;" valign="top" align="right" {{!}} Dialog file
 
{{!}} width="70%" style="font-size:90%; border-left:#AE5700 1px solid; padding-left:1em;" {{!}}
 
{{!}} width="70%" style="font-size:90%; border-left:#AE5700 1px solid; padding-left:1em;" {{!}}
 
<code>{{{dialogfile|FileName.udlg}}}</code>
 
<code>{{{dialogfile|FileName.udlg}}}</code>

Revision as of 13:51, 7 August 2013

Character or creature name

Defaultportrait.png

Misc icon.png

Biography ​
Faction

faction, examples:
South Gaters
Wildlife

Role

roles, examples:
Trader
Psi trainer
Quest NPC

Location

location, examples:
South Gate Outposts
Lower Underrail

Quests

quest1
quest2
quest3
etc

Loot

Ammunition
Scraps
Firearm Barrels (rarely)

Statistics ​
Abilities

misc. combat stuff, examples:
Throws Flashbangs
Can use Neural Overload
Has Acid Spray special attack

Combat stats

Level: n
Attack damage: n
Attack range: n
Health: n
Shield: n
Psi: n
Action Points: n
Movement Points: n
Detection: n

Base abilities

Strength: n
Dexterity: n
Agility: n
Constitution: n
Perception: n
Will: n
Intelligence: n

Skills

Guns: n
Throwing: n
Crossbows: n
Melee: n
Dodge: n
Evasion: n
Stealth: n
Hacking: n
Lockpicking: n
Pickpocketing: n
Traps: n
Mechanics: n
Electronics: n
Chemistry: n
Biology: n
Tailoring: n
Thought Control: n
Psychokinesis: n
Metathermics: n
Persuasion: n
Intimidation: n
Mercantile: n

Resistances

Mechanical: n% / n
Heat: n% / n
Cold: n% / n
Electricity: n% / n
Acid: n% / n
Energy: n% / n
Bio: n% / n

Technical ​
Character file

FileName.char

Dialog file

FileName.udlg

Important notice

Any (or even all) of the statistics can be left out, the template won't be this huge in its usual uses.

Though, it can also be adapted for player character builds this way.


Template documentation follows
Note: the template above may sometimes be partially or fully invisible.
Visit Template:Character_Infobox/doc to view this documentation. (edit) (How does this work?)


Usage

Paste the following code into the top of an article, filling all known fields:

{{Character Infobox
| name       = 
| type       = automaton, critter, generic, important (for bots, animals and generic/named NPCs)
| portrait   = portrait image (see [[Category:Portraits]])
| background = portrait background image (see [[Category:Portrait backgrounds]])
| health     = shown as a bar below portrait
| shield     = 
| psipool    = 
| image      = in-game model image. tries '{{PAGENAME}} model.png' if not specified (see [[Category:In-game models]] or [[Category:Sprites]])
| faction    = 
| roles      = 
| location   = 
| loot       = 
| abilities  = 
|
|Combat stats section:
| level         = 
| damage        = 
| range         = 
| actionpoints  = 50
| movepoints    = 
| detection     = 
| resolve       = 
| fortitude     = 
|
|Base abilities section:
| strength      = 
| dexterity     = 
| agility       = 
| constitution  = 
| perception    = 
| will          = 
| intelligence  = 
|
|Skills section:
| guns          = 
| throwing      = 
| crossbows     = 
| melee         = 
|
| dodge         = 
| evasion       = 
| stealth       = 
| hacking       = 
| lockpicking   = 
| pickpocketing = 
| traps         = 
|
| mechanics     = 
| electronics   = 
| chemistry     = 
| biology       = 
| tailoring     = 
|
| thoughtctrl   = 
| psychokinesis = 
| metathermics  = 
| temporal      = 
|
| persuasion    = 
| intimidation  = 
| mercantile    = 
|
|Resistances section:
| mechanical    = 
| heat          = 
| cold          = 
| electricity   = 
| acid          = 
| energy        = 
| bio           = 
|
|Technical section:
| charfile      = 
| dialogfile    = 
| shopfile      = 
| animfiles     = 
}}

Examples

Large infobox example

Mutated human1 l.png

Mutant model.png

Biography
Role

Example with bunch of stats

Location

template documentation page

Quests

quest1
quest2

Statistics ​
Abilities

True-sight

Combat stats

Level: 30
Health: 127
Psi: 100 (+10)
Action Points: 50
Detection: 9001

Base abilities

Perception: 10

Skills

Traps: 127
Intimidation: 42

Technical ​
Character file

something.char

Dialog file

something.udlg

Minimal infobox example

Plasma sentry l.png

PlasmaSentry.gif

Biography
Role

Styg's old forum avatar

Location

some upcoming release

Statistics
Combat stats

Health: 123

See the source.