Difference between revisions of "Template:Character Infobox"

From Underrail Wiki
Jump to navigation Jump to search
(added heavy guns)
 
(5 intermediate revisions by one other user not shown)
Line 6: Line 6:
 
{{!}} colspan="2" {{!}}
 
{{!}} colspan="2" {{!}}
 
{{(}}{{!}} width="100%" <!-- images table start -->
 
{{(}}{{!}} width="100%" <!-- images table start -->
{{!}} width="50%" style="text-align:center;" title="Portrait" {{!}}
+
{{!}} width="50%" style="text-align:center; vertical-align:middle;" title="Portrait" {{!}}
 
<div class="infobox-portrait"><!--
 
<div class="infobox-portrait"><!--
  
Line 91: Line 91:
  
 
|- <!-- checks if ANY statistics have been entered all at. omits the whole statistics section if not. -->
 
|- <!-- checks if ANY statistics have been entered all at. omits the whole statistics section if not. -->
{{#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|}}}
+
{{#if:<noinclude>string</noinclude>{{{level|}}}{{{actionpoints|}}}{{{movepoints|}}}{{{damage|}}}{{{range|}}}{{{initiative|}}}{{{detection|}}}{{{strength|}}}{{{dexterity|}}}{{{agility|}}}{{{constitution|}}}{{{perception|}}}{{{will|}}}{{{intelligence|}}}{{{guns|}}}{{{heavyguns|}}}{{{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" {{!}}
 
|{{!}} colspan="2" {{!}}
 
{{(}}{{!}} class="mw-collapsible mw-collapsed" cellspacing="0px" style="width:100%;" data-expandtext="Show" data-collapsetext="Hide"
 
{{(}}{{!}} class="mw-collapsible mw-collapsed" cellspacing="0px" style="width:100%;" data-expandtext="Show" data-collapsetext="Hide"
 
{{!}}-
 
{{!}}-
! colspan="2" class="infobox-th" {{!}} <span class="infobox-h2">Combat stats</span>
+
! colspan="2" class="infobox-th" {{!}} <span class="infobox-h2">Combat Stats</span>
  
 
{{!}}- title="Combat statistics" <!-- checks if any derived stats have been entered. omits the subsection if not. -->
 
{{!}}- title="Combat statistics" <!-- checks if any derived stats have been entered. omits the subsection if not. -->
 
{{#if:<noinclude>string</noinclude>{{{level|}}}{{{actionpoints|}}}{{{movepoints|}}}{{{damage|}}}{{{range|}}}{{{initiative|}}}{{{detection|}}}
 
{{#if:<noinclude>string</noinclude>{{{level|}}}{{{actionpoints|}}}{{{movepoints|}}}{{{damage|}}}{{{range|}}}{{{initiative|}}}{{{detection|}}}
|{{!}} class="infobox-leftcol" {{!}} Combat stats
+
|{{!}} class="infobox-leftcol" {{!}} Combat Stats
 
{{!}} class="infobox-rightcol" {{!}} {{
 
{{!}} class="infobox-rightcol" {{!}} {{
 
     #if:<noinclude>string</noinclude>{{{level|}}}|Level: {{{level|n}}}<br>
 
     #if:<noinclude>string</noinclude>{{{level|}}}|Level: {{{level|n}}}<br>
Line 108: Line 108:
 
|}}{{#if:<noinclude>string</noinclude>{{{initiative|}}}|Initiative: {{{initiative|n}}}<br>
 
|}}{{#if:<noinclude>string</noinclude>{{{initiative|}}}|Initiative: {{{initiative|n}}}<br>
 
|}}{{#if:<noinclude>string</noinclude>{{{detection|}}}|Detection: {{{detection|n}}}<br>
 
|}}{{#if:<noinclude>string</noinclude>{{{detection|}}}|Detection: {{{detection|n}}}<br>
 +
|}}{{#if:<noinclude>string</noinclude>{{{resolve|}}}|Resolve: {{{resolve|n}}}<br>
 +
|}}{{#if:<noinclude>string</noinclude>{{{fortitude|}}}|Fortitude: {{{fortitude|n}}}<br>
 
|}}|}}
 
|}}|}}
  
 
{{!}}- title="Base ability scores" <!-- checks if any base ability values have been entered. omits the subsection if not. -->
 
{{!}}- title="Base ability scores" <!-- checks if any base ability values have been entered. omits the subsection if not. -->
 
{{#if:<noinclude>string</noinclude>{{{strength|}}}{{{dexterity|}}}{{{agility|}}}{{{constitution|}}}{{{perception|}}}{{{will|}}}{{{intelligence|}}}
 
{{#if:<noinclude>string</noinclude>{{{strength|}}}{{{dexterity|}}}{{{agility|}}}{{{constitution|}}}{{{perception|}}}{{{will|}}}{{{intelligence|}}}
|{{!}} class="infobox-leftcol" {{!}} Base abilities
+
|{{!}} class="infobox-leftcol" {{!}} Base Abilities
 
{{!}} class="infobox-rightcol" {{!}} {{
 
{{!}} class="infobox-rightcol" {{!}} {{
 
     #if:<noinclude>string</noinclude>{{{strength|}}}|Strength: {{{strength|n}}}<br>
 
     #if:<noinclude>string</noinclude>{{{strength|}}}|Strength: {{{strength|n}}}<br>
Line 124: Line 126:
  
 
{{!}}- title="Skill levels" <!-- checks if any skill values have been entered. omits the subsection if not. -->
 
{{!}}- title="Skill levels" <!-- checks if any skill values have been entered. omits the subsection if not. -->
{{#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|}}}{{{heavyguns|}}}{{{throwing|}}}{{{crossbows|}}}{{{melee|}}}{{{dodge|}}}{{{evasion|}}}{{{stealth|}}}{{{hacking|}}}{{{lockpicking|}}}{{{pickpocketing|}}}{{{traps|}}}{{{mechanics|}}}{{{electronics|}}}{{{chemistry|}}}{{{biology|}}}{{{tailoring|}}}{{{thoughtctrl|}}}{{{psychokinesis|}}}{{{metathermics|}}}{{{persuasion|}}}{{{intimidation|}}}{{{mercantile|}}}
 
|{{!}} class="infobox-leftcol" {{!}} Skills
 
|{{!}} class="infobox-leftcol" {{!}} Skills
 
{{!}} class="infobox-rightcol" {{!}} {{
 
{{!}} 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>{{{heavyguns|}}}|Heavy Guns: {{{heavyguns|n}}}<br>
 
|}}{{#if:<noinclude>string</noinclude>{{{throwing|}}}|Throwing: {{{throwing|n}}}<br>
 
|}}{{#if:<noinclude>string</noinclude>{{{throwing|}}}|Throwing: {{{throwing|n}}}<br>
 
|}}{{#if:<noinclude>string</noinclude>{{{crossbows|}}}|Crossbows: {{{crossbows|n}}}<br>
 
|}}{{#if:<noinclude>string</noinclude>{{{crossbows|}}}|Crossbows: {{{crossbows|n}}}<br>
Line 174: Line 177:
 
! colspan="2" class="infobox-th" {{!}} <span class="infobox-h2">Technical</span>
 
! colspan="2" class="infobox-th" {{!}} <span class="infobox-h2">Technical</span>
  
{{!}}- title="Found in \Data\Rules\Characters" <!-- checks if character file has been entered. omits the subsection if not. -->
+
{{!}}- title="Character (.char) files located in \Data\Rules\Characters" style="cursor:help;"
{{#if:<noinclude>string</noinclude>{{{charfile|}}}
+
{{#if:<noinclude>string</noinclude>{{{charfile|}}} <!-- checks if character file has been entered. omits the subsection if not. -->
 
|{{!}} class="infobox-leftcol" {{!}} Char file
 
|{{!}} class="infobox-leftcol" {{!}} Char file
 
{{!}} class="infobox-rightcol" {{!}} <code>{{{charfile|FileName.char}}}</code>
 
{{!}} class="infobox-rightcol" {{!}} <code>{{{charfile|FileName.char}}}</code>
 
|}}
 
|}}
  
{{!}}- title="Found in \Data\Dialogs\ or its subfolders" <!-- checks if dialog file has been entered. omits the subsection if not. -->
+
{{!}}- title="Underrail dialog (.udlg) files located in \Data\Dialogs\ or its subfolders" style="cursor:help;"
{{#if:<noinclude>string</noinclude>{{{dialogfile|}}}
+
{{#if:<noinclude>string</noinclude>{{{dialogfile|}}} <!-- checks if dialog file has been entered. omits the subsection if not. -->
 
|{{!}} class="infobox-leftcol" {{!}} Dialog file(s)
 
|{{!}} class="infobox-leftcol" {{!}} Dialog file(s)
 
{{!}} class="infobox-rightcol" {{!}} <code>{{{dialogfile|FileName.udlg}}}</code>
 
{{!}} class="infobox-rightcol" {{!}} <code>{{{dialogfile|FileName.udlg}}}</code>
 
|}}
 
|}}
  
{{!}}- title="Found in \Data\Rules\Stores" <!-- checks if shop file has been entered. omits the subsection if not. -->
+
{{!}}- title="Store (.store) files located in \Data\Rules\Stores" style="cursor:help;"
{{#if:<noinclude>string</noinclude>{{{shopfile|}}}
+
{{#if:<noinclude>string</noinclude>{{{shopfile|}}} <!-- checks if shop file has been entered. omits the subsection if not. -->
 
|{{!}} class="infobox-leftcol" {{!}} Shop file
 
|{{!}} class="infobox-leftcol" {{!}} Shop file
 
{{!}} class="infobox-rightcol" {{!}} <code>{{{shopfile|FileName.store}}}</code>
 
{{!}} class="infobox-rightcol" {{!}} <code>{{{shopfile|FileName.store}}}</code>
 
|}}
 
|}}
  
{{!}}- title="Found in \Data\Locale\Creatures\" <!-- checks if animation files have been entered. omits the subsection if not. -->
+
{{!}}- title="Folders of XNA binaries (.XNB) located in \Data\Locale\Creatures\" style="cursor:help;"
{{#if:<noinclude>string</noinclude>{{{animfiles|}}}
+
{{#if:<noinclude>string</noinclude>{{{animfiles|}}} <!-- checks if animation files have been entered. omits the subsection if not. -->
 
|{{!}} class="infobox-leftcol" {{!}} Spritesheets
 
|{{!}} class="infobox-leftcol" {{!}} Spritesheets
 
{{!}} class="infobox-rightcol" {{!}} <code>{{{animfiles|\folder\}}}</code>
 
{{!}} class="infobox-rightcol" {{!}} <code>{{{animfiles|\folder\}}}</code>
Line 202: Line 205:
  
 
AUTOMATIC CATEGORIES:
 
AUTOMATIC CATEGORIES:
only if namespace is empty string, aka main namespace
+
-->{{#if:{{NAMESPACE}}|<!-- non-empty namespace -->{{#ifeq:{{NAMESPACE}}|Template|{{Infobox tab}}|}}|<!--
-->{{#if:{{NAMESPACE}}||<!--
+
 
 +
only if namespace is empty string, aka main namespace:
  
 
check if level parameter is missing
 
check if level parameter is missing

Latest revision as of 14:18, 13 June 2024

Character or creature name

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

Unknown character.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
Damage: n
Range: n
Action Points: n
Movement Points: n
Initiative: n
Detection: n
Resolve: n
Fortitude: n
Base Abilities Strength: n
Dexterity: n
Agility: n
Constitution: n
Perception: n
Will: n
Intelligence: n
Skills Guns: n
Heavy 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
Temporal Manipulation: 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
Spritesheets \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

Shacks.png Mutated 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.png Plasma sentry l.png
123

PlasmaSentry.gif

Automaton
Role Styg's old forum avatar
Location some upcoming release

See the source.