Difference between revisions of "Template:Character Infobox"

From Underrail Wiki
Jump to navigation Jump to search
m (lol oops)
(css styling)
Line 1: Line 1:
−
{| cellspacing="0px" style={{Infobox common style}} width="320px"
+
{| class="infobox" cellspacing="0px" width="320px" style="color:#626262;"
 
|-
 
|-
 
| 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 69: Line 69:
 
|​
 
|​
 
{{!}}-
 
{{!}}-
−
{{!}} width="30%" style="padding-right:0.4em;" valign="top" align="right" {{!}} Faction
+
{{!}} class="infobox-leftcol" {{!}} Faction
−
{{!}} width="70%" style="font-size:90%; border-left:#AE5700 1px solid; padding-left:1em;" {{!}}
+
{{!}} class="infobox-rightcol" {{!}}
 
{{{faction|faction, examples:<br>[[South Gaters]]<br>Wildlife}}}
 
{{{faction|faction, examples:<br>[[South Gaters]]<br>Wildlife}}}
 
|}}<nowiki>
 
|}}<nowiki>
Line 78: Line 78:
 
{{#if:<noinclude>string</noinclude>{{{roles|}}}
 
{{#if:<noinclude>string</noinclude>{{{roles|}}}
 
|{{!}}-
 
|{{!}}-
−
{{!}} width="30%" style="padding-right:0.4em;" valign="top" align="right" {{!}} Role
+
{{!}} class="infobox-leftcol" {{!}} Role
−
{{!}} width="70%" style="font-size:90%; border-left:#AE5700 1px solid; padding-left:1em;" {{!}}
+
{{!}} class="infobox-rightcol" {{!}}
 
{{{roles|roles, examples:<br>[[Trader]]<br>[[Psi trainer]]<br>Quest NPC}}}
 
{{{roles|roles, examples:<br>[[Trader]]<br>[[Psi trainer]]<br>Quest NPC}}}
 
|}}<nowiki>
 
|}}<nowiki>
Line 87: Line 87:
 
{{#if:<noinclude>string</noinclude>{{{location|}}}
 
{{#if:<noinclude>string</noinclude>{{{location|}}}
 
|{{!}}-
 
|{{!}}-
−
{{!}} width="30%" style="padding-right:0.4em;" valign="top" align="right" {{!}} Location
+
{{!}} class="infobox-leftcol" {{!}} Location
−
{{!}} width="70%" style="font-size:90%; border-left:#AE5700 1px solid; padding-left:1em;" {{!}}
+
{{!}} class="infobox-rightcol" {{!}}
 
{{{location|location, examples:<br>[[South Gate Outposts]]<br>[[Lower Underrail]]}}}
 
{{{location|location, examples:<br>[[South Gate Outposts]]<br>[[Lower Underrail]]}}}
 
|}}<nowiki>
 
|}}<nowiki>
Line 96: Line 96:
 
{{#if:<noinclude>string</noinclude>{{{quests|}}}
 
{{#if:<noinclude>string</noinclude>{{{quests|}}}
 
|{{!}}-
 
|{{!}}-
−
{{!}} width="30%" style="padding-right:0.4em;" valign="top" align="right" {{!}} Quests
+
{{!}} class="infobox-leftcol" {{!}} Quests
−
{{!}} width="70%" style="font-size:90%; border-left:#AE5700 1px solid; padding-left:1em;" {{!}}
+
{{!}} class="infobox-rightcol" {{!}}
 
{{{quests|quest1<br>quest2<br>quest3<br>etc}}}
 
{{{quests|quest1<br>quest2<br>quest3<br>etc}}}
 
|}}<nowiki>
 
|}}<nowiki>
Line 105: Line 105:
 
{{#if:<noinclude>string</noinclude>{{{loot|}}}
 
{{#if:<noinclude>string</noinclude>{{{loot|}}}
 
|{{!}}-
 
|{{!}}-
−
{{!}} width="30%" style="padding-right:0.4em;" valign="top" align="right" {{!}} Loot
+
{{!}} class="infobox-leftcol" {{!}} Loot
−
{{!}} width="70%" style="font-size:90%; border-left:#AE5700 1px solid; padding-left:1em;" {{!}}
+
{{!}} class="infobox-rightcol" {{!}}
 
{{{loot|Ammunition<br>Scraps<br>Firearm Barrels (rarely)}}}
 
{{{loot|Ammunition<br>Scraps<br>Firearm Barrels (rarely)}}}
 
|}}<nowiki>
 
|}}<nowiki>
Line 117: Line 117:
 
|&#8203;
 
|&#8203;
 
{{!}}- title="Special abilities"
 
{{!}}- title="Special abilities"
−
{{!}} style="padding-right:0.4em;" valign="top" align="right" {{!}} Abilities
+
{{!}} class="infobox-leftcol" {{!}} Abilities
−
{{!}} style="font-size:90%; border-left:#AE5700 1px solid; padding-left:1em;" {{!}}
+
{{!}} class="infobox-rightcol" {{!}}
 
{{{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>
 
|}}<nowiki>
 
|}}<nowiki>
Line 139: Line 139:
 
{{#if:<noinclude>string</noinclude>{{{actionpoints|}}}{{{movepoints|}}}{{{damage|}}}{{{range|}}}{{{initiative|}}}{{{detection|}}}
 
{{#if:<noinclude>string</noinclude>{{{actionpoints|}}}{{{movepoints|}}}{{{damage|}}}{{{range|}}}{{{initiative|}}}{{{detection|}}}
 
|{{!}}- title="Combat statistics"
 
|{{!}}- title="Combat statistics"
−
{{!}} style="padding-right:0.4em;" valign="top" align="right" {{!}} Combat stats
+
{{!}} class="infobox-leftcol" width="40%" {{!}} Combat stats
−
{{!}} style="font-size:90%; border-left:#AE5700 1px solid; padding-left:1em;" {{!}}
+
{{!}} class="infobox-rightcol" {{!}}
 
{{#if:<noinclude>string</noinclude>{{{damage|}}}|Attack damage: {{{damage|n}}}<br>
 
{{#if:<noinclude>string</noinclude>{{{damage|}}}|Attack damage: {{{damage|n}}}<br>
 
|}}{{#if:<noinclude>string</noinclude>{{{range|}}}|Attack range: {{{range|n}}}<br>
 
|}}{{#if:<noinclude>string</noinclude>{{{range|}}}|Attack range: {{{range|n}}}<br>
Line 155: Line 155:
 
{{#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 scores"
 
|{{!}}- title="Base ability scores"
−
{{!}} style="padding-right:0.4em;" valign="top" align="right" {{!}} Base abilities
+
{{!}} class="infobox-leftcol" width="40%" {{!}} Base abilities
−
{{!}} style="font-size:90%; border-left:#AE5700 1px solid; padding-left:1em;" {{!}}
+
{{!}} class="infobox-rightcol" {{!}}
 
{{#if:<noinclude>string</noinclude>{{{strength|}}}|Strength: {{{strength|n}}}<br>
 
{{#if:<noinclude>string</noinclude>{{{strength|}}}|Strength: {{{strength|n}}}<br>
 
|}}{{#if:<noinclude>string</noinclude>{{{dexterity|}}}|Dexterity: {{{dexterity|n}}}<br>
 
|}}{{#if:<noinclude>string</noinclude>{{{dexterity|}}}|Dexterity: {{{dexterity|n}}}<br>
Line 172: Line 172:
 
{{#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"
−
{{!}} style="padding-right:0.4em;" valign="top" align="right" {{!}} Skills
+
{{!}} class="infobox-leftcol" width="40%" {{!}} Skills
−
{{!}} style="font-size:90%; border-left:#AE5700 1px solid; padding-left:1em;" {{!}}
+
{{!}} class="infobox-rightcol" {{!}}
 
{{#if:<noinclude>string</noinclude>{{{guns|}}}|Guns: {{{guns|n}}}<br>
 
{{#if:<noinclude>string</noinclude>{{{guns|}}}|Guns: {{{guns|n}}}<br>
 
|}}{{#if:<noinclude>string</noinclude>{{{throwing|}}}|Throwing: {{{throwing|n}}}<br>
 
|}}{{#if:<noinclude>string</noinclude>{{{throwing|}}}|Throwing: {{{throwing|n}}}<br>
Line 204: Line 204:
 
{{#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"
−
{{!}} style="padding-right:0.4em;" valign="top" align="right" {{!}} Resistances
+
{{!}} class="infobox-leftcol" width="40%" {{!}} Resistances
−
{{!}} style="font-size:90%; border-left:#AE5700 1px solid; padding-left:1em;" {{!}}
+
{{!}} class="infobox-rightcol" {{!}}
 
{{#if:<noinclude>string</noinclude>{{{mechanical|}}}|{{color|white|Mechanical:  {{{mechanical|n% / n}}}}}<br>
 
{{#if:<noinclude>string</noinclude>{{{mechanical|}}}|{{color|white|Mechanical:  {{{mechanical|n% / n}}}}}<br>
 
|}}{{#if:<noinclude>string</noinclude>{{{heat|}}}|{{color|orangered|Heat: {{{heat|n% / n}}}}}<br>
 
|}}{{#if:<noinclude>string</noinclude>{{{heat|}}}|{{color|orangered|Heat: {{{heat|n% / n}}}}}<br>
Line 231: Line 231:
 
|&#8203;
 
|&#8203;
 
{{!}}- title="Found in \Data\Rules\Characters"
 
{{!}}- title="Found in \Data\Rules\Characters"
−
{{!}} width="30%" style="padding-right:0.4em;" valign="top" align="right" {{!}} Character file
+
{{!}} class="infobox-leftcol" {{!}} Character file
−
{{!}} width="70%" style="font-size:90%; border-left:#AE5700 1px solid; padding-left:1em;" {{!}}
+
{{!}} class="infobox-rightcol" {{!}}
 
<code>{{{charfile|FileName.char}}}</code>
 
<code>{{{charfile|FileName.char}}}</code>
 
|}}<nowiki>
 
|}}<nowiki>
Line 242: Line 242:
 
|&#8203;
 
|&#8203;
 
{{!}}- title="Found in \Data\Dialogs\ or its subfolders"
 
{{!}}- title="Found in \Data\Dialogs\ or its subfolders"
−
{{!}} width="30%" style="padding-right:0.4em;" valign="top" align="right" {{!}} Dialog file
+
{{!}} class="infobox-leftcol" {{!}} Dialog file
−
{{!}} width="70%" style="font-size:90%; border-left:#AE5700 1px solid; padding-left:1em;" {{!}}
+
{{!}} class="infobox-rightcol" {{!}}
 
<code>{{{dialogfile|FileName.udlg}}}</code>
 
<code>{{{dialogfile|FileName.udlg}}}</code>
 
|}}<nowiki>
 
|}}<nowiki>
Line 252: Line 252:
 
{{#if:<noinclude>string</noinclude>{{{shopfile|}}}
 
{{#if:<noinclude>string</noinclude>{{{shopfile|}}}
 
|{{!}}- title="Found in \Data\Rules\Stores"
 
|{{!}}- title="Found in \Data\Rules\Stores"
−
{{!}} width="30%" style="padding-right:0.4em;" valign="top" align="right" {{!}} Shop file
+
{{!}} class="infobox-leftcol" {{!}} Shop file
−
{{!}} width="70%" style="font-size:90%; border-left:#AE5700 1px solid; padding-left:1em;" {{!}}
+
{{!}} class="infobox-rightcol" {{!}}
 
<code>{{{shopfile|FileName.store}}}</code>
 
<code>{{{shopfile|FileName.store}}}</code>
 
|}}<nowiki>
 
|}}<nowiki>
Line 262: Line 262:
 
{{#if:<noinclude>string</noinclude>{{{animfiles|}}}
 
{{#if:<noinclude>string</noinclude>{{{animfiles|}}}
 
|{{!}}- title="Found in \Data\Locale\Creatures\"
 
|{{!}}- title="Found in \Data\Locale\Creatures\"
−
{{!}} width="30%" style="padding-right:0.4em;" valign="top" align="right" {{!}} Animation sprites
+
{{!}} class="infobox-leftcol" {{!}} Animation sprites
−
{{!}} width="70%" style="font-size:90%; border-left:#AE5700 1px solid; padding-left:1em;" {{!}}
+
{{!}} class="infobox-rightcol" {{!}}
 
<code>{{{animfiles|\folder\}}}</code>
 
<code>{{{animfiles|\folder\}}}</code>
 
|}}
 
|}}

Revision as of 10:55, 30 October 2014

Character or creature name
Defaultportrait.png?
{{{health}}}
{{{shield}}}
{{{psipool}}}

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

Abilities

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

Combat stats
Combat stats

Attack damage: n
Attack range: n
Action Points: n
Movement Points: n
Initiative: 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

Shop file

FileName.store

Animation sprites

\folder\


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          = 
| heavyguns     = 
| 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.png30
127
100 (+10)

Mutant model.png

Biography
Role

Example with bunch of stats

Location

template documentation page

Quests

quest1
quest2 ​

Abilities

True-sight

Combat stats
Combat stats

Action Points: 50
Detection: 9001

Base abilities

Perception: 10

Skills

Traps: 127
Intimidation: 42

Technical ​
Character file

something.char ​

Dialog file

something.udlg

Shop file

something.store

Minimal infobox example
Plasma sentry l.png?
123

PlasmaSentry.gif

Description
Role

Styg's old forum avatar

Location

some upcoming release

See the source.