Difference between revisions of "Template:Character Infobox"
m (Protected "Template:Character Infobox" ([edit=autoconfirmed] (indefinite) [move=autoconfirmed] (indefinite))) |
(moved level to portrait; portrait now always included) |
||
Line 3: | Line 3: | ||
| colspan="2" style="text-align:center; font-weight:bold; font-size:140%; color:#AE5700; padding-bottom:10px; border-bottom:#AE5700 2px solid" | {{{name|Character or creature name}}} | | colspan="2" style="text-align:center; font-weight:bold; font-size:140%; color:#AE5700; padding-bottom:10px; border-bottom:#AE5700 2px solid" | {{{name|Character or creature name}}} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
{{!}}- | {{!}}- | ||
{{!}} colspan="2" {{!}} | {{!}} colspan="2" {{!}} | ||
Line 25: | Line 13: | ||
|[[File:defaultportrait.png{{!}}100x100px]] | |[[File:defaultportrait.png{{!}}100x100px]] | ||
}} | }} | ||
− | }} | + | }}<span style="position:relative;"><span style="position:absolute; top:40px; left:-104px; width:100px; text-align:right; font-weight:bold; color:white; font-family:monospace;" title="Level">{{#if:{{{level|}}}|{{{level}}}|?}}</span></span> |
{{!}} width="50%" style="text-align:center;" title="In-game model" {{!}} | {{!}} width="50%" style="text-align:center;" title="In-game model" {{!}} | ||
{{#if:{{{image|}}} | {{#if:{{{image|}}} | ||
Line 35: | Line 23: | ||
}} | }} | ||
{{!}}} <!-- images table end --> | {{!}}} <!-- images table end --> | ||
− | |||
|- | |- | ||
| 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; color:white;" | {{#switch: {{{type|}}} | ||
− | | creature = Description| important | + | | generic | creature | robot = Description |
+ | | important | #default = Biography}}<nowiki> | ||
Line 93: | Line 81: | ||
</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>{{{abilities | + | {{#if:<noinclude>string</noinclude>{{{abilities|}}}{{{health|}}}{{{shield|}}}{{{psipool|}}}{{{psipool|}}}{{{actionpoints|}}}{{{movepoints|}}}{{{damage|}}}{{{range|}}}{{{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" style="background-color:#2E2D42; border:#AE5700 2px solid; border-radius:4px; text-align:center; font-weight:bold; color:white;" {{!}} Statistics<nowiki> | {{!}} colspan="2" style="background-color:#2E2D42; border:#AE5700 2px solid; border-radius:4px; text-align:center; font-weight:bold; color:white;" {{!}} Statistics<nowiki> | ||
Line 113: | Line 101: | ||
</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> | + | {{#if:<noinclude>string</noinclude>{{{health|}}}{{{shield|}}}{{{psipool|}}}{{{actionpoints|}}}{{{movepoints|}}}{{{damage|}}}{{{range|}}}{{{detection|}}} |
|{{!}}- title="Combat statistics" | |{{!}}- title="Combat statistics" | ||
{{!}} style="padding-right:0.4em;" valign="top" align="right" {{!}} Combat stats | {{!}} style="padding-right:0.4em;" valign="top" align="right" {{!}} Combat stats | ||
{{!}} style="font-size:90%; border-left:#AE5700 1px solid; padding-left:1em;" {{!}} | {{!}} style="font-size:90%; border-left:#AE5700 1px solid; padding-left:1em;" {{!}} | ||
− | + | {{#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>{{{health|}}}|Health: {{{health|n}}}<br> | |}}{{#if:<noinclude>string</noinclude>{{{health|}}}|Health: {{{health|n}}}<br> |
Revision as of 19:10, 26 January 2014
Character or creature name | |||||||||||
| |||||||||||
Biography | |||||||||||
Faction |
faction, examples: | ||||||||||
Role |
roles, examples: | ||||||||||
Location |
location, examples: | ||||||||||
Quests |
quest1 | ||||||||||
Loot |
Ammunition | ||||||||||
Statistics | |||||||||||
Abilities |
misc. combat stuff, examples: | ||||||||||
Combat stats |
Attack damage: n | ||||||||||
Base abilities |
Strength: n | ||||||||||
Skills |
Guns: n | ||||||||||
Resistances |
Mechanical: n% / n | ||||||||||
|
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 | ||||||||
Statistics | |||||||||
Abilities |
True-sight | ||||||||
Combat stats |
Health: 127 | ||||||||
Base abilities |
Perception: 10 | ||||||||
Skills |
Traps: 127 | ||||||||
|
Minimal infobox example | |||
| |||
Description | |||
Role |
Styg's old forum avatar | ||
Location |
some upcoming release | ||
Statistics | |||
Combat stats |
Health: 123 |
See the source.