Difference between revisions of "Template:Character Infobox"
m (model picture no longer limited to 100px height) |
(made combat stats hidden by default) |
||
Line 46: | Line 46: | ||
|- | |- | ||
− | | colspan="2" style="background-color:#2E2D42; border:#AE5700 2px solid; border-radius:4px; text-align:center; font-weight:bold; color:white;" | {{#switch: {{{type|}}} | + | | colspan="2" style="background-color:#2E2D42; border:#AE5700 2px solid; border-radius:4px; text-align:center; font-weight:bold; font-family:monospace; color:white;" | {{#switch: {{{type|}}} |
− | | generic | creature | robot = Description | + | | generic | creature | critter | robot = Description |
| important | #default = Biography}}<nowiki> | | important | #default = Biography}}<nowiki> | ||
Line 95: | Line 95: | ||
{{{loot|Ammunition<br>Scraps<br>Firearm Barrels (rarely)}}} | {{{loot|Ammunition<br>Scraps<br>Firearm Barrels (rarely)}}} | ||
|}}<nowiki> | |}}<nowiki> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
Line 117: | Line 107: | ||
{{{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> | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | </nowiki><!-- checks if ANY statistics have been entered all at. omits the whole statistics section if not. --> | ||
+ | {{#if:<noinclude>string</noinclude>{{{abilities|}}}{{{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 --> | ||
+ | {{(}}{{!}} class="mw-collapsible mw-collapsed" cellspacing="0px" style="width:100%;" data-expandtext="Show" data-collapsetext="Hide" | ||
+ | {{!}} colspan="2" style="background-color:#2E2D42; border:#AE5700 2px solid; border-radius:4px; text-align:center; font-weight:bold; font-family:monospace; color:white;" {{!}} Combat stats<nowiki> | ||
Line 198: | Line 199: | ||
|}}{{#if:<noinclude>string</noinclude>{{{energy|}}}|{{color|aqua|Energy: {{{energy|n% / n}}}}}<br> | |}}{{#if:<noinclude>string</noinclude>{{{energy|}}}|{{color|aqua|Energy: {{{energy|n% / n}}}}}<br> | ||
|}}{{#if:<noinclude>string</noinclude>{{{bio|}}}|{{color|lightgreen|Bio: {{{bio|n% / n}}}}}<br> | |}}{{#if:<noinclude>string</noinclude>{{{bio|}}}|{{color|lightgreen|Bio: {{{bio|n% / n}}}}}<br> | ||
− | |}}|}}|}}<nowiki> | + | |}}|}} |
+ | {{!}}{{)}}<!-- combat stats table end -->|}}<nowiki> | ||
Line 208: | Line 210: | ||
{{!}} colspan="2" {{!}}<!-- start collapsible table for technical details --> | {{!}} colspan="2" {{!}}<!-- start collapsible table for technical details --> | ||
{{(}}{{!}} 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" style="background-color:#2E2D42; border:#AE5700 2px solid; border-radius:4px; text-align:center; font-weight:bold; color:white;" {{!}} Technical<nowiki> | + | {{!}} colspan="2" style="background-color:#2E2D42; border:#AE5700 2px solid; border-radius:4px; text-align:center; font-weight:bold; font-family:monospace; color:white;" {{!}} Technical<nowiki> |
Revision as of 15:49, 22 June 2014
Character or creature name | |||||||||||
| |||||||||||
Biography | |||||||||||
Faction |
faction, examples: | ||||||||||
Role |
roles, examples: | ||||||||||
Location |
location, examples: | ||||||||||
Quests |
quest1 | ||||||||||
Loot |
Ammunition | ||||||||||
Abilities |
misc. combat stuff, examples: | ||||||||||
| |||||||||||
|
Important notice!
Any (or even all) of the statistics can be left out, the template won't be this huge in its usual uses.
Though, it can also be adapted for player character builds this way.
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 | |||||||||
| |||||||||
Biography | |||||||||
Role |
Example with bunch of stats | ||||||||
Location |
template documentation page | ||||||||
Quests |
quest1 | ||||||||
Abilities |
True-sight | ||||||||
| |||||||||
|
Minimal infobox example | |||
| |||
Description | |||
Role |
Styg's old forum avatar | ||
Location |
some upcoming release |
See the source.