Difference between revisions of "Template:Character Infobox"

From Underrail Wiki
Jump to navigation Jump to search
(remove level number from portrait)
(put level back to combat stats, {{{type}}} switching)
Line 26: Line 26:
  
 
health bar
 
health bar
--><div style="font-family:monospace; text-align:center; line-height:11px; font-weight:bold; margin-left:auto; margin-right:auto; margin-top:3px; color:white; background-color:DarkRed; width:106px; height:10px; border:#AE5700 3px solid; border-radius:3px;" title="Health">{{{health|}}}<noinclude>{{{health}}}</noinclude></div><!--
+
--><div style="font-family:monospace; cursor:help; text-align:center; line-height:11px; font-weight:bold; margin-left:auto; margin-right:auto; margin-top:3px; color:white; background-color:DarkRed; width:106px; height:10px; border:#AE5700 3px solid; border-radius:3px;" title="Health">{{{health|}}}<noinclude>{{{health}}}</noinclude></div><!--
  
  
 
shield bar
 
shield bar
-->{{#if:<noinclude>string</noinclude>{{{shield|}}}|<div style="font-family:monospace; text-align:center; line-height:11px; font-weight:bold; margin-left:auto; margin-right:auto; margin-top:3px; color:white; background-color:DarkBlue; width:106px; height:10px; border:#AE5700 3px solid; border-radius:3px;" title="Energy shield (Capacity usually varies. Shields emitters are random-generated.)">{{{shield}}}</div>|}}<!--
+
-->{{#if:<noinclude>string</noinclude>{{{shield|}}}|<div style="font-family:monospace; cursor:help; text-align:center; line-height:11px; font-weight:bold; margin-left:auto; margin-right:auto; margin-top:3px; color:white; background-color:DarkBlue; width:106px; height:10px; border:#AE5700 3px solid; border-radius:3px;" title="Energy shield (Capacity usually varies. Shields emitters are random-generated.)">{{{shield}}}</div>|}}<!--
  
  
 
psi bar
 
psi bar
-->{{#if:<noinclude>string</noinclude>{{{psipool|}}}|<div style="font-family:monospace; text-align:center; line-height:11px; font-weight:bold; margin-left:auto; margin-right:auto; margin-top:3px; color:white; background-color:DarkMagenta; width:106px; height:10px; border:#AE5700 3px solid; border-radius:3px;" title="Psi points (regen per turn)">{{{psipool}}}</div><!--
+
-->{{#if:<noinclude>string</noinclude>{{{psipool|}}}|<div style="font-family:monospace; cursor:help; text-align:center; line-height:11px; font-weight:bold; margin-left:auto; margin-right:auto; margin-top:3px; color:white; background-color:DarkMagenta; width:106px; height:10px; border:#AE5700 3px solid; border-radius:3px;" title="Psi points (regen per turn)">{{{psipool}}}</div><!--
  
 
also adds psionics to category
 
also adds psionics to category
Line 55: Line 55:
 
|-
 
|-
 
| colspan="2" style="background-color:#2E2D42; border:#AE5700 2px solid; border-radius:4px; text-align:center; font-family:monospace; font-size:12px;" | <span class="infobox-h2">{{#switch: {{{type|}}}
 
| colspan="2" style="background-color:#2E2D42; border:#AE5700 2px solid; border-radius:4px; text-align:center; font-family:monospace; font-size:12px;" | <span class="infobox-h2">{{#switch: {{{type|}}}
| generic | creature | critter | robot = Description
+
| important | named = Biography
| important | #default = Biography}}</span><nowiki>
+
| creature | critter = Critter
 +
| robot | automaton = Automaton
 +
| generic | #default = Description}}</span><nowiki>
  
  
Line 121: Line 123:
  
 
</nowiki><!-- checks if ANY statistics have been entered all at. omits the whole statistics section if not. -->
 
</nowiki><!-- checks if ANY statistics have been entered all at. omits the whole statistics section if not. -->
{{#if:<noinclude>string</noinclude>{{{actionpoints|}}}{{{movepoints|}}}{{{damage|}}}{{{range|}}}{{{initiative|}}}{{{detection|}}}{{{strength|}}}{{{dexterity|}}}{{{agility|}}}{{{constitution|}}}{{{perception|}}}{{{will|}}}{{{intelligence|}}}{{{guns|}}}{{{throwing|}}}{{{crossbows|}}}{{{melee|}}}{{{dodge|}}}{{{evasion|}}}{{{stealth|}}}{{{hacking|}}}{{{lockpicking|}}}{{{pickpocketing|}}}{{{traps|}}}{{{mechanics|}}}{{{electronics|}}}{{{chemistry|}}}{{{biology|}}}{{{tailoring|}}}{{{thoughtctrl|}}}{{{psychokinesis|}}}{{{metathermics|}}}{{{persuasion|}}}{{{intimidation|}}}{{{mercantile|}}}{{{mechanical|}}}{{{heat|}}}{{{cold|}}}{{{acid|}}}{{{bio|}}}{{{electricity|}}}{{{energy|}}}
+
{{#if:<noinclude>string</noinclude>{{{level|}}}{{{actionpoints|}}}{{{movepoints|}}}{{{damage|}}}{{{range|}}}{{{initiative|}}}{{{detection|}}}{{{strength|}}}{{{dexterity|}}}{{{agility|}}}{{{constitution|}}}{{{perception|}}}{{{will|}}}{{{intelligence|}}}{{{guns|}}}{{{throwing|}}}{{{crossbows|}}}{{{melee|}}}{{{dodge|}}}{{{evasion|}}}{{{stealth|}}}{{{hacking|}}}{{{lockpicking|}}}{{{pickpocketing|}}}{{{traps|}}}{{{mechanics|}}}{{{electronics|}}}{{{chemistry|}}}{{{biology|}}}{{{tailoring|}}}{{{thoughtctrl|}}}{{{psychokinesis|}}}{{{metathermics|}}}{{{persuasion|}}}{{{intimidation|}}}{{{mercantile|}}}{{{mechanical|}}}{{{heat|}}}{{{cold|}}}{{{acid|}}}{{{bio|}}}{{{electricity|}}}{{{energy|}}}
 
|{{!}}-
 
|{{!}}-
 
{{!}} colspan="2" {{!}}<!-- start collapsible table for combat stats -->
 
{{!}} colspan="2" {{!}}<!-- start collapsible table for combat stats -->
Line 131: Line 133:
  
 
</nowiki><!-- checks if any derived stats have been entered. omits the subsection if not. -->
 
</nowiki><!-- checks if any derived stats have been entered. omits the subsection if not. -->
{{#if:<noinclude>string</noinclude>{{{actionpoints|}}}{{{movepoints|}}}{{{damage|}}}{{{range|}}}{{{initiative|}}}{{{detection|}}}
+
{{#if:<noinclude>string</noinclude>{{{level|}}}{{{actionpoints|}}}{{{movepoints|}}}{{{damage|}}}{{{range|}}}{{{initiative|}}}{{{detection|}}}
 
|{{!}}- title="Combat statistics"
 
|{{!}}- title="Combat statistics"
 
{{!}} class="infobox-leftcol" width="40%" {{!}} Combat stats
 
{{!}} class="infobox-leftcol" width="40%" {{!}} Combat stats
 
{{!}} class="infobox-rightcol" {{!}}
 
{{!}} class="infobox-rightcol" {{!}}
{{#if:<noinclude>string</noinclude>{{{damage|}}}|Attack damage: {{{damage|n}}}<br>
+
{{#if:<noinclude>string</noinclude>{{{level|}}}|Level: {{{level|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>
 
|}}{{#if:<noinclude>string</noinclude>{{{actionpoints|}}}|Action Points: {{{actionpoints|n}}}<br>
 
|}}{{#if:<noinclude>string</noinclude>{{{actionpoints|}}}|Action Points: {{{actionpoints|n}}}<br>

Revision as of 03:55, 5 January 2017

Character or creature name

Default.pngDefault l.png
{{{health}}}
{{{shield}}}
{{{psipool}}}

Misc icon.png

Description
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

Level: n
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
Char file

FileName.char

Dialog file(s)

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          = 
| 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

Shacks.pngMutated human1 l.png
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

Level: 30
Action Points: 50
Detection: 9001

Base abilities

Perception: 10

Skills

Traps: 127
Intimidation: 42

Technical
Char file

something.char

Dialog file(s)

something.udlg

Shop file

something.store

Minimal infobox example

SciFi.pngPlasma sentry l.png
123

PlasmaSentry.gif

Automaton
Role

Styg's old forum avatar

Location

some upcoming release

See the source.