Difference between revisions of "Template:Character Infobox"

From Underrail Wiki
Jump to navigation Jump to search
(complete redo)
(added heavy guns)
 
(76 intermediate revisions by 4 users not shown)
Line 1: Line 1:
__NOTOC__
+
{| class="infobox" cellspacing="0px" width="320px" style="color:#626262;"
{| style={{Infobox common style}} width="320px"
 
|- title="Name"
 
| colspan="2" style="text-align:center; font-weight:bold; font-size:127%; color:#AE5700;" | {{{name|Character or creature name}}}
 
 
 
 
|-
 
|-
| colspan="2" | <hr style="background-color:#AE5700; height:2px;">
+
| class="infobox-h1" colspan="2" | {{{name|Character or creature name}}}<br/><hr style="background-color:#AE5700; height:2px; margin:10px -8px 0 -8px;"/>
  
{{#switch: {{{type|}}}
 
| generic =
 
{{!}}-
 
{{!}} colspan="2" style="text-align:center;" title="In-game model" {{!}}
 
[[File:{{#if:{{{model|}}}|{{{model|}}}|{{#ifexist:{{{File:{{PAGENAME}}_model.png}}}|{{PAGENAME}}_model.png|misc_icon.png}}}}|100x100px]]
 
| important
 
| #default =
 
 
{{!}}-
 
{{!}}-
 
{{!}} colspan="2" {{!}}
 
{{!}} colspan="2" {{!}}
{{{!}} width="100%"
+
{{(}}{{!}} width="100%" <!-- images table start -->
{{!}} width="50%" style="text-align:center;" title="Portrait" {{!}}
+
{{!}} width="50%" style="text-align:center; vertical-align:middle;" title="Portrait" {{!}}
[[File:{{#if:{{{portrait|}}}|{{{portrait|}}}|{{#ifexist:{{{File:{{PAGENAME}}_portrait.png}}}|{{PAGENAME}}_portrait.png|defaultportrait.png}}}}|100x100px]]
+
<div class="infobox-portrait"><!--
 +
 
 +
 
 +
portrait background. defaults to Default.png. see Category:Portrait_backgrounds for more.
 +
-->{{#if:{{{background|}}}
 +
    | [[File:{{{background}}}|100x100px|link=]]
 +
    | [[File:default.png|100x100px|link=]]
 +
  }}<!--
 +
 
 +
portrait image.
 +
--><span style="position:absolute; bottom:3px; right:3px;">
 +
{{#if:{{{portrait|}}}
 +
  | [[File:{{{portrait|}}}{{!}}100x100px]]
 +
  | [[File:default_l.png{{!}}100x100px|]]
 +
}}</span></div><!--
 +
 
 +
health bar
 +
-->{{#if:<noinclude>string</noinclude>{{{health|}}}|<div class="infobox-bar" style="background-color:DarkRed;" title="Health">{{{health}}}</div>|}}<!--
 +
shield bar
 +
-->{{#if:<noinclude>string</noinclude>{{{shield|}}}|<div class="infobox-bar" style="background-color:DarkBlue;" title="Energy shield. Capacity usually varies. Shields emitters are random-generated.">{{{shield}}}</div>|}}<!--
 +
psi bar
 +
-->{{#if:<noinclude>string</noinclude>{{{psipool|}}}|<div class="infobox-bar" style="background-color:DarkMagenta;" title="Psi points (regen per turn)">{{{psipool}}}</div><!--
 +
(psi bar also adds psionics to category)
 +
--><includeonly>[[Category:Psionics]]</includeonly>|}}<!--
 +
 
 +
 
 +
 
 +
sprite or in-game model. tries {{PAGENAME}}_model.png if image is not specified. -->
 
{{!}} width="50%" style="text-align:center;" title="In-game model" {{!}}
 
{{!}} width="50%" style="text-align:center;" title="In-game model" {{!}}
[[File:{{#if:{{{model|}}}|{{{model|}}}|{{#ifexist:{{{File:{{PAGENAME}}_model.png}}}|{{PAGENAME}}_model.png|misc_icon.png}}}}|100x100px]]
+
{{#if:{{{image|}}}
{{!}}}
+
  |[[File:{{{image|}}}]]
 +
  |{{#ifexist:File:{{PAGENAME}} model.png
 +
    |[[File:{{PAGENAME}} model.png]]
 +
    |[[File:Unknown character.png{{!}}100x100px]]
 +
  }}
 
}}
 
}}
 +
{{!}}{{)}} <!-- images table end -->
  
 
|-
 
|-
| colspan="2" | <hr style="background-color:#AE5700; height:2px;">
+
! colspan="2" class="infobox-th" | <span class="infobox-h2">{{
 +
#switch: {{{type|}}}
 +
  | important | named = Biography
 +
  | creature | critter = Critter
 +
  | robot | automaton = Automaton
 +
  | generic | #default = Description
 +
}}</span>
  
|- title="Biographic information"
+
|- <!-- faction row -->
| colspan="2" style="text-align:center; font-size:100%; font-weight:bold; color:#AE5700;" | Biography
+
{{#if:<noinclude>string</noinclude>{{{faction|}}}
 +
|{{!}} class="infobox-leftcol" {{!}} Faction
 +
{{!}} class="infobox-rightcol" {{!}} {{{faction|faction, examples:<br>[[South Gaters]]<br>Wildlife}}}
 +
|}}
  
|-
+
|- <!-- roles row -->
| colspan="2" | <hr style="background-color:#AE5700; height:1px;">
+
{{#if:<noinclude>string</noinclude>{{{roles|}}}
 +
|{{!}} class="infobox-leftcol" {{!}} Role
 +
{{!}} class="infobox-rightcol" {{!}} {{{roles|roles, examples:<br>[[Trader]]<br>[[Psi trainer]]<br>Quest NPC}}}
 +
|}}
  
|- title="Factions"
+
|- <!-- locations row -->
| width="30%" valign="top" align="right" | Faction
+
{{#if:<noinclude>string</noinclude>{{{location|}}}
| width="70%" style="font-size:90%; border-left:#AE5700 1px solid; padding-left:1em;" |
+
|{{!}} class="infobox-leftcol" {{!}} Location
{{{factions|faction, examples:<br>[[South Gaters]]<br>Wildlife}}}
+
{{!}} class="infobox-rightcol" {{!}} {{{location|location, examples:<br>[[South Gate Outposts]]<br>[[Lower Underrail]]}}}
 +
|}}
  
|- title="Roles"
+
|- <!-- quests row -->
| width="30%" valign="top" align="right" | Roles
+
{{#if:<noinclude>string</noinclude>{{{quests|}}}
| width="70%" style="font-size:90%; border-left:#AE5700 1px solid; padding-left:1em;" |
+
|{{!}} class="infobox-leftcol" {{!}} Quests
{{{role|roles, examples:<br>[[Trader]]<br>[[Psi trainer]]<br>Quest NPC}}}
+
{{!}} class="infobox-rightcol" {{!}} {{{quests|quest1<br>quest2<br>quest3<br>etc}}}
 +
|}}
  
|- title="Locations"
+
|- <!-- loot row -->
| width="30%" valign="top" align="right" | Location
+
{{#if:<noinclude>string</noinclude>{{{loot|}}}
| width="70%" style="font-size:90%; border-left:#AE5700 1px solid; padding-left:1em;" |
+
|{{!}} class="infobox-leftcol" {{!}} Loot
{{{location|location, examples:<br>[[South Gate Outposts]]<br>[[Lower Underrail]]}}}
+
{{!}} class="infobox-rightcol" {{!}} {{{loot|Ammunition<br>Scraps<br>Firearm Barrels (rarely)}}}
 +
|}}
  
<!-- checks if ANY statistics have been entered all at. omits the whole statistics section if not. -->
+
|- <!-- abilities row -->
{{#if:<noinclude>string</noinclude>{{{abilities|}}}{{{health|}}}{{{shield|}}}{{{psi|}}}{{{ap|}}}{{{mp|}}}{{{fortitude|}}}{{{resolve|}}}{{{critchance|}}}{{{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|}}}{{{energy|}}}
+
{{#if:<noinclude>string</noinclude>{{{abilities|}}}
|{{!}}-
+
|{{!}} class="infobox-leftcol" {{!}} Abilities
{{!}} colspan="2" {{!}} <hr style="background-color:#AE5700; height:2px;">
+
{{!}} class="infobox-rightcol" {{!}} {{{abilities|misc. combat stuff, examples:<br>Throws [[Flashbang]]s<br>Can use [[Neural Overload]]<br>Has [[Acid Spray]] special attack}}}<br>
 +
|}}
  
{{!}}- title="Statistics"
+
|- <!-- checks if ANY statistics have been entered all at. omits the whole statistics section if not. -->
{{!}} colspan="2" style="text-align:center; font-size:100%; font-weight:bold; color:#AE5700;" {{!}} Statistics
+
{{#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" {{!}}
 +
{{(}}{{!}} 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>
  
<!-- checks if any abilities 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>{{{abilities|}}}
+
{{#if:<noinclude>string</noinclude>{{{level|}}}{{{actionpoints|}}}{{{movepoints|}}}{{{damage|}}}{{{range|}}}{{{initiative|}}}{{{detection|}}}
|{{!}}-
+
|{{!}} class="infobox-leftcol" {{!}} Combat Stats
{{!}} colspan="2" {{!}} <hr style="background-color:#AE5700; height:1px;">
+
{{!}} class="infobox-rightcol" {{!}} {{
 +
    #if:<noinclude>string</noinclude>{{{level|}}}|Level: {{{level|n}}}<br>
 +
|}}{{#if:<noinclude>string</noinclude>{{{damage|}}}|Damage: {{{damage|n}}}<br>
 +
|}}{{#if:<noinclude>string</noinclude>{{{range|}}}|Range: {{{range|n}}}<br>
 +
|}}{{#if:<noinclude>string</noinclude>{{{actionpoints|}}}|Action Points: {{{actionpoints|n}}}<br>
 +
|}}{{#if:<noinclude>string</noinclude>{{{movepoints|}}}|Movement Points: {{{movepoints|n}}}<br>
 +
|}}{{#if:<noinclude>string</noinclude>{{{initiative|}}}|Initiative: {{{initiative|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="Special abilities"
+
{{!}}- title="Base ability scores" <!-- checks if any base ability values have been entered. omits the subsection if not. -->
{{!}} valign="top" align="right" {{!}} Abilities
+
{{#if:<noinclude>string</noinclude>{{{strength|}}}{{{dexterity|}}}{{{agility|}}}{{{constitution|}}}{{{perception|}}}{{{will|}}}{{{intelligence|}}}
{{!}} style="font-size:90%; border-left:#AE5700 1px solid; padding-left:1em;" {{!}}
+
|{{!}} class="infobox-leftcol" {{!}} Base Abilities
{{#if:<noinclude>string</noinclude>{{{abilities|}}}|{{{abilities|misc. combat stuff, examples:<br>Throws [[Flashbang]]s<br>Can use [[Neural Overload]]<br>Has [[Acid Spray]] special attack}}}<br>|}}
+
{{!}} class="infobox-rightcol" {{!}} {{
|}}
+
    #if:<noinclude>string</noinclude>{{{strength|}}}|Strength: {{{strength|n}}}<br>
 +
|}}{{#if:<noinclude>string</noinclude>{{{dexterity|}}}|Dexterity: {{{dexterity|n}}}<br>
 +
|}}{{#if:<noinclude>string</noinclude>{{{agility|}}}|Agility: {{{agility|n}}}<br>
 +
|}}{{#if:<noinclude>string</noinclude>{{{constitution|}}}|Constitution: {{{constitution|n}}}<br>
 +
|}}{{#if:<noinclude>string</noinclude>{{{perception|}}}|Perception: {{{perception|n}}}<br>
 +
|}}{{#if:<noinclude>string</noinclude>{{{will|}}}|Will: {{{will|n}}}<br>
 +
|}}{{#if:<noinclude>string</noinclude>{{{intelligence|}}}|Intelligence: {{{intelligence|n}}}<br>
 +
|}}|}}
  
<!-- checks if any derived stats 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>{{{health|}}}{{{shield|}}}{{{psi|}}}{{{ap|}}}{{{mp|}}}{{{fortitude|}}}{{{resolve|}}}{{{critchance|}}}{{{detection|}}}
+
{{#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
{{!}} colspan="2" {{!}} <hr style="background-color:#AE5700; height:1px;">
+
{{!}} class="infobox-rightcol" {{!}} {{
 +
    #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>{{{crossbows|}}}|Crossbows: {{{crossbows|n}}}<br>
 +
|}}{{#if:<noinclude>string</noinclude>{{{melee|}}}|Melee: {{{melee|n}}}<br>
 +
|}}{{#if:<noinclude>string</noinclude>{{{dodge|}}}|Dodge: {{{dodge|n}}}<br>
 +
|}}{{#if:<noinclude>string</noinclude>{{{evasion|}}}|Evasion: {{{evasion|n}}}<br>
 +
|}}{{#if:<noinclude>string</noinclude>{{{stealth|}}}|Stealth: {{{stealth|n}}}<br>
 +
|}}{{#if:<noinclude>string</noinclude>{{{hacking|}}}|Hacking: {{{hacking|n}}}<br>
 +
|}}{{#if:<noinclude>string</noinclude>{{{lockpicking|}}}|Lockpicking: {{{lockpicking|n}}}<br>
 +
|}}{{#if:<noinclude>string</noinclude>{{{pickpocketing|}}}|Pickpocketing: {{{pickpocketing|n}}}<br>
 +
|}}{{#if:<noinclude>string</noinclude>{{{traps|}}}|Traps: {{{traps|n}}}<br>
 +
|}}{{#if:<noinclude>string</noinclude>{{{mechanics|}}}|Mechanics: {{{mechanics|n}}}<br>
 +
|}}{{#if:<noinclude>string</noinclude>{{{electronics|}}}|Electronics: {{{electronics|n}}}<br>
 +
|}}{{#if:<noinclude>string</noinclude>{{{chemistry|}}}|Chemistry: {{{chemistry|n}}}<br>
 +
|}}{{#if:<noinclude>string</noinclude>{{{biology|}}}|Biology: {{{biology|n}}}<br>
 +
|}}{{#if:<noinclude>string</noinclude>{{{tailoring|}}}|Tailoring: {{{tailoring|n}}}<br>
 +
|}}{{#if:<noinclude>string</noinclude>{{{thoughtctrl|}}}|Thought Control: {{{thoughtctrl|n}}}<br>
 +
|}}{{#if:<noinclude>string</noinclude>{{{psychokinesis|}}}|Psychokinesis: {{{psychokinesis|n}}}<br>
 +
|}}{{#if:<noinclude>string</noinclude>{{{metathermics|}}}|Metathermics: {{{metathermics|n}}}<br>
 +
|}}{{#if:<noinclude>string</noinclude>{{{temporal|}}}|Temporal Manipulation: {{{temporal|n}}}<br>
 +
|}}{{#if:<noinclude>string</noinclude>{{{persuasion|}}}|Persuasion: {{{persuasion|n}}}<br>
 +
|}}{{#if:<noinclude>string</noinclude>{{{intimidation|}}}|Intimidation: {{{intimidation|n}}}<br>
 +
|}}{{#if:<noinclude>string</noinclude>{{{mercantile|}}}|Mercantile: {{{mercantile|n}}}<br>
 +
|}}|}}
  
{{!}}- title="Derived combat statistics"
+
{{!}}- title="Damage resistances and tresholds" <!-- checks if any resistance values have been entered. omits the subsection if not. -->
{{!}} valign="top" align="right" {{!}} Combat stats
+
{{#if:<noinclude>string</noinclude>{{{mechanical|}}}{{{heat|}}}{{{cold|}}}{{{acid|}}}{{{bio|}}}{{{electricity|}}}{{{energy|}}}
{{!}} style="font-size:90%; border-left:#AE5700 1px solid; padding-left:1em;" {{!}}
+
|{{!}} class="infobox-leftcol" {{!}} Resistances
{{#if:<noinclude>string</noinclude>{{{health|}}}|Health: {{{health|n}}}<br>|}}
+
{{!}} class="infobox-rightcol" {{!}} {{
{{#if:<noinclude>string</noinclude>{{{shield|}}}|Shield: {{{shield|n}}}<br>|}}
+
    #if:<noinclude>string</noinclude>{{{mechanical|}}}|{{Damagetype|Mechanical|{{{mechanical|n% / n}}}}}<br>
{{#if:<noinclude>string</noinclude>{{{psi|}}}|Psi: {{{psi|n}}}<br>|}}
+
|}}{{#if:<noinclude>string</noinclude>{{{heat|}}}|{{Damagetype|Heat|{{{heat|n% / n}}}}}<br>
{{#if:<noinclude>string</noinclude>{{{ap|}}}|Action Points: {{{ap|n}}}<br>|}}
+
|}}{{#if:<noinclude>string</noinclude>{{{cold|}}}|{{Damagetype|Cold|{{{cold|n% / n}}}}}<br>
{{#if:<noinclude>string</noinclude>{{{mp|}}}|Movement Points: {{{mp|n}}}<br>|}}
+
|}}{{#if:<noinclude>string</noinclude>{{{electricity|}}}|{{Damagetype|Electricity|{{{electricity|n% / n}}}}}<br>
{{#if:<noinclude>string</noinclude>{{{fortitude|}}}|Fortitude: {{{fortitude|n}}}<br>|}}
+
|}}{{#if:<noinclude>string</noinclude>{{{acid|}}}|{{Damagetype|Acid|{{{acid|n% / n}}}}}<br>
{{#if:<noinclude>string</noinclude>{{{resolve|}}}|Resolve: {{{resolve|n}}}<br>|}}
+
|}}{{#if:<noinclude>string</noinclude>{{{energy|}}}|{{Damagetype|Energy|{{{energy|n% / n}}}}}<br>
{{#if:<noinclude>string</noinclude>{{{critchance|}}}|Crit. chance: {{{critchance|n%}}}<br>|}}
+
|}}{{#if:<noinclude>string</noinclude>{{{bio|}}}|{{Damagetype|Bio|{{{bio|n% / n}}}}}<br>
{{#if:<noinclude>string</noinclude>{{{detection|}}}|Detection: {{{detection|n}}}<br>|}}
+
|}}|}}
 +
{{!}}{{)}}
 
|}}
 
|}}
  
<!-- checks if any base ability values have been entered. omits the subsection if not. -->
+
|- <!-- checks if technical details have been entered. omits the whole table if not. -->
{{#if:<noinclude>string</noinclude>{{{strength|}}}{{{dexterity|}}}{{{agility|}}}{{{constitution|}}}{{{perception|}}}{{{will|}}}{{{intelligence|}}}
+
{{#if:<noinclude>string</noinclude>{{{charfile|}}}{{{dialogfile|}}}{{{shopfile|}}}{{{animfiles|}}}
|{{!}}-
+
|{{!}} colspan="2" {{!}}
{{!}} colspan="2" {{!}} <hr style="background-color:#AE5700; height:1px;">
+
{{(}}{{!}} 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">Technical</span>
  
{{!}}- title="Base ability levels"
+
{{!}}- title="Character (.char) files located in \Data\Rules\Characters" style="cursor:help;"
{{!}} valign="top" align="right" {{!}} Base abilities
+
{{#if:<noinclude>string</noinclude>{{{charfile|}}} <!-- checks if character file has been entered. omits the subsection if not. -->
{{!}} style="font-size:90%; border-left:#AE5700 1px solid; padding-left:1em;" {{!}}
+
|{{!}} class="infobox-leftcol" {{!}} Char file
{{#if:<noinclude>string</noinclude>{{{strength|}}}|Strength: {{{strength|n}}}<br>|}}
+
{{!}} class="infobox-rightcol" {{!}} <code>{{{charfile|FileName.char}}}</code>
{{#if:<noinclude>string</noinclude>{{{dexterity|}}}|Dexterity: {{{dexterity|n}}}<br>|}}
 
{{#if:<noinclude>string</noinclude>{{{agility|}}}|Agility: {{{agility|n}}}<br>|}}
 
{{#if:<noinclude>string</noinclude>{{{constitution|}}}|Constitution: {{{constitution|n}}}<br>|}}
 
{{#if:<noinclude>string</noinclude>{{{perception|}}}|Perception: {{{perception|n}}}<br>|}}
 
{{#if:<noinclude>string</noinclude>{{{will|}}}|Will: {{{will|n}}}<br>|}}
 
{{#if:<noinclude>string</noinclude>{{{intelligence|}}}|Intelligence: {{{intelligence|n}}}<br>|}}
 
 
|}}
 
|}}
  
<!-- checks if any skill values have 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>{{{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>{{{dialogfile|}}} <!-- checks if dialog file has been entered. omits the subsection if not. -->
|{{!}}-
+
|{{!}} class="infobox-leftcol" {{!}} Dialog file(s)
{{!}} colspan="2" style="" title="" {{!}} <hr style="background-color:#AE5700; height:1px;">
+
{{!}} class="infobox-rightcol" {{!}} <code>{{{dialogfile|FileName.udlg}}}</code>
 +
|}}
  
{{!}}- title="Skill levels"
+
{{!}}- title="Store (.store) files located in \Data\Rules\Stores" style="cursor:help;"
{{!}} valign="top" align="right" {{!}} Skills
+
{{#if:<noinclude>string</noinclude>{{{shopfile|}}} <!-- checks if shop file has been entered. omits the subsection if not. -->
{{!}} style="font-size:90%; border-left:#AE5700 1px solid; padding-left:1em;" {{!}}
+
|{{!}} class="infobox-leftcol" {{!}} Shop file
{{#if:<noinclude>string</noinclude>{{{guns|}}}|Guns: {{{guns|n}}}<br>|}}
+
{{!}} class="infobox-rightcol" {{!}} <code>{{{shopfile|FileName.store}}}</code>
{{#if:<noinclude>string</noinclude>{{{throwing|}}}|Throwing: {{{throwing|n}}}<br>|}}
 
{{#if:<noinclude>string</noinclude>{{{crossbows|}}}|Crossbows: {{{crossbows|n}}}<br>|}}
 
{{#if:<noinclude>string</noinclude>{{{melee|}}}|Melee: {{{melee|n}}}<br>|}}
 
{{#if:<noinclude>string</noinclude>{{{dodge|}}}|Dodge: {{{dodge|n}}}<br>|}}
 
{{#if:<noinclude>string</noinclude>{{{evasion|}}}|Evasion: {{{evasion|n}}}<br>|}}
 
{{#if:<noinclude>string</noinclude>{{{stealth|}}}|Stealth: {{{stealth|n}}}<br>|}}
 
{{#if:<noinclude>string</noinclude>{{{hacking|}}}|Hacking: {{{hacking|n}}}<br>|}}
 
{{#if:<noinclude>string</noinclude>{{{lockpicking|}}}|Lockpicking: {{{lockpicking|n}}}<br>|}}
 
{{#if:<noinclude>string</noinclude>{{{pickpocketing|}}}|Pickpocketing: {{{pickpocketing|n}}}<br>|}}
 
{{#if:<noinclude>string</noinclude>{{{traps|}}}|Traps: {{{traps|n}}}<br>|}}
 
{{#if:<noinclude>string</noinclude>{{{mechanics|}}}|Mechanics: {{{mechanics|n}}}<br>|}}
 
{{#if:<noinclude>string</noinclude>{{{electronics|}}}|Electronics: {{{electronics|n}}}<br>|}}
 
{{#if:<noinclude>string</noinclude>{{{chemistry|}}}|Chemistry: {{{chemistry|n}}}<br>|}}
 
{{#if:<noinclude>string</noinclude>{{{biology|}}}|Biology: {{{biology|n}}}<br>|}}
 
{{#if:<noinclude>string</noinclude>{{{tailoring|}}}|Tailoring: {{{tailoring|n}}}<br>|}}
 
{{#if:<noinclude>string</noinclude>{{{thoughtctrl|}}}|Thought Control: {{{thoughtctrl|n}}}<br>|}}
 
{{#if:<noinclude>string</noinclude>{{{psychokinesis|}}}|Psychokinesis: {{{psychokinesis|n}}}<br>|}}
 
{{#if:<noinclude>string</noinclude>{{{metathermics|}}}|Metathermics: {{{metathermics|n}}}<br>|}}
 
{{#if:<noinclude>string</noinclude>{{{persuasion|}}}|Persuasion: {{{persuasion|n}}}<br>|}}
 
{{#if:<noinclude>string</noinclude>{{{intimidation|}}}|Intimidation: {{{intimidation|n}}}<br>|}}
 
{{#if:<noinclude>string</noinclude>{{{mercantile|}}}|Mercantile: {{{mercantile|n}}}<br>|}}
 
 
|}}
 
|}}
  
<!-- checks if any resistance values 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>{{{mechanical|}}}{{{heat|}}}{{{cold|}}}{{{acid|}}}{{{bio|}}}{{{energy|}}}
+
{{#if:<noinclude>string</noinclude>{{{animfiles|}}} <!-- checks if animation files have been entered. omits the subsection if not. -->
|{{!}}-
+
|{{!}} class="infobox-leftcol" {{!}} Spritesheets
{{!}} colspan="2" {{!}} <hr style="background-color:#AE5700; height:1px;">
+
{{!}} class="infobox-rightcol" {{!}} <code>{{{animfiles|\folder\}}}</code>
 
 
{{!}}- title="Damage resistances and tresholds"
 
{{!}} valign="top" align="right" {{!}} Resistances
 
{{!}} 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>{{{heat|}}}|{{color|darkorange|Heat: {{{heat|n% / n}}}}}<br>|}}
 
{{#if:<noinclude>string</noinclude>{{{cold|}}}|{{color|lightblue|Cold: {{{cold|n% / n}}}}}<br>|}}
 
{{#if:<noinclude>string</noinclude>{{{acid|}}}|{{color|green|Acid: {{{acid|n% / n}}}}}<br>|}}
 
{{#if:<noinclude>string</noinclude>{{{bio|}}}|{{color|lightgreen|Bio: {{{bio|n% / n}}}}}<br>|}}
 
{{#if:<noinclude>string</noinclude>{{{energy|}}}|{{color|aqua|Energy: {{{energy|n% / n}}}}}<br>|}}
 
 
|}}
 
|}}
 +
{{!}}{{)}}
 
|}}
 
|}}
|}<noinclude>
+
<!-- close table -->|}<!--
= Important notice =
+
 
Any (or even all) of the statistics can be left out, the template won't be ''this huge'' in its usual uses.
+
AUTOMATIC CATEGORIES:
 +
-->{{#if:{{NAMESPACE}}|<!-- non-empty namespace -->{{#ifeq:{{NAMESPACE}}|Template|{{Infobox tab}}|}}|<!--
 +
 
 +
only if namespace is empty string, aka main namespace:
 +
 
 +
check if level parameter is missing
 +
-->{{#if:{{{level|}}}||<includeonly>[[Category:Characters without level]]</includeonly>}}<!--
 +
 
 +
check if health parameter is missing
 +
-->{{#if:{{{health|}}}||<includeonly>[[Category:Characters without health]]</includeonly>}}<!--
  
Though, it can also be adapted for player character builds this way.
+
-->}}<!-- close namespace #IF --><noinclude><br style="clear:both;"/>{{documentation}}</noinclude>
<br style="clear:both;"/>{{documentation}}</noinclude>
 

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.