Difference between revisions of "Template:Character Infobox"

From Underrail Wiki
Jump to navigation Jump to search
(css styling)
(resists now use Template:Damagetype)
Line 206: Line 206:
 
{{!}} class="infobox-leftcol" width="40%" {{!}} Resistances
 
{{!}} class="infobox-leftcol" width="40%" {{!}} Resistances
 
{{!}} class="infobox-rightcol" {{!}}
 
{{!}} class="infobox-rightcol" {{!}}
−
{{#if:<noinclude>string</noinclude>{{{mechanical|}}}|{{color|white|Mechanical:  {{{mechanical|n% / n}}}}}<br>
+
{{#if:<noinclude>string</noinclude>{{{mechanical|}}}|{{Damagetype|Mechanical|{{{mechanical|n% / n}}}}}<br>
−
|}}{{#if:<noinclude>string</noinclude>{{{heat|}}}|{{color|orangered|Heat: {{{heat|n% / n}}}}}<br>
+
|}}{{#if:<noinclude>string</noinclude>{{{heat|}}}|{{Damagetype|Heat|{{{heat|n% / n}}}}}<br>
−
|}}{{#if:<noinclude>string</noinclude>{{{cold|}}}|{{color|lightblue|Cold: {{{cold|n% / n}}}}}<br>
+
|}}{{#if:<noinclude>string</noinclude>{{{cold|}}}|{{Damagetype|Cold|{{{cold|n% / n}}}}}<br>
−
|}}{{#if:<noinclude>string</noinclude>{{{electricity|}}}|{{color|yellow|Electricity: {{{electricity|n% / n}}}}}<br>
+
|}}{{#if:<noinclude>string</noinclude>{{{electricity|}}}|{{Damagetype|Electricity|{{{electricity|n% / n}}}}}<br>
−
|}}{{#if:<noinclude>string</noinclude>{{{acid|}}}|{{color|green|Acid: {{{acid|n% / n}}}}}<br>
+
|}}{{#if:<noinclude>string</noinclude>{{{acid|}}}|{{Damagetype|Acid|{{{acid|n% / n}}}}}<br>
−
|}}{{#if:<noinclude>string</noinclude>{{{energy|}}}|{{color|aqua|Energy: {{{energy|n% / n}}}}}<br>
+
|}}{{#if:<noinclude>string</noinclude>{{{energy|}}}|{{Damagetype|Energy|{{{energy|n% / n}}}}}<br>
−
|}}{{#if:<noinclude>string</noinclude>{{{bio|}}}|{{color|lightgreen|Bio: {{{bio|n% / n}}}}}<br>
+
|}}{{#if:<noinclude>string</noinclude>{{{bio|}}}|{{Damagetype|Bio|{{{bio|n% / n}}}}}<br>
 
|}}|}}
 
|}}|}}
 
{{!}}{{)}}<!-- combat stats table end -->|}}<nowiki>
 
{{!}}{{)}}<!-- combat stats table end -->|}}<nowiki>

Revision as of 17:51, 3 November 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.