Difference between revisions of "Template:Character Infobox"
m |
(complete redo) |
||
Line 1: | Line 1: | ||
− | {| | + | __NOTOC__ |
+ | {| 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;"> | ||
+ | |||
+ | {{#switch: {{{type|}}} | ||
+ | | generic = | ||
{{!}}- | {{!}}- | ||
− | ! style=" | + | {{!}} 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" {{!}} | |
− | + | {{{!}} width="100%" | |
− | + | {{!}} width="50%" style="text-align:center;" title="Portrait" {{!}} | |
− | + | [[File:{{#if:{{{portrait|}}}|{{{portrait|}}}|{{#ifexist:{{{File:{{PAGENAME}}_portrait.png}}}|{{PAGENAME}}_portrait.png|defaultportrait.png}}}}|100x100px]] | |
− | {{#if:{{{ | + | {{!}} 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]] | |
− | {{ | + | {{!}}} |
− | {{ | + | }} |
− | {{ | + | |
− | + | |- | |
− | + | | colspan="2" | <hr style="background-color:#AE5700; height:2px;"> | |
− | + | ||
− | + | |- title="Biographic information" | |
− | + | | colspan="2" style="text-align:center; font-size:100%; font-weight:bold; color:#AE5700;" | Biography | |
− | + | ||
− | + | |- | |
− | + | | colspan="2" | <hr style="background-color:#AE5700; height:1px;"> | |
− | {{{ | + | |
− | + | |- title="Factions" | |
− | + | | width="30%" valign="top" align="right" | Faction | |
− | {{ | + | | width="70%" style="font-size:90%; border-left:#AE5700 1px solid; padding-left:1em;" | |
− | + | {{{factions|faction, examples:<br>[[South Gaters]]<br>Wildlife}}} | |
− | {{ | + | |
− | {{{ | + | |- title="Roles" |
− | {{ | + | | width="30%" valign="top" align="right" | Roles |
− | + | | width="70%" style="font-size:90%; border-left:#AE5700 1px solid; padding-left:1em;" | | |
− | + | {{{role|roles, examples:<br>[[Trader]]<br>[[Psi trainer]]<br>Quest NPC}}} | |
− | {{ | + | |
− | {{ | + | |- title="Locations" |
− | {{ | + | | width="30%" valign="top" align="right" | Location |
− | + | | width="70%" style="font-size:90%; border-left:#AE5700 1px solid; padding-left:1em;" | | |
− | {{ | + | {{{location|location, examples:<br>[[South Gate Outposts]]<br>[[Lower Underrail]]}}} |
− | {{{ | + | |
− | {{ | + | <!-- checks if ANY statistics have been entered all at. omits the whole statistics section if not. --> |
− | + | {{#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|}}} | |
− | {{ | + | |{{!}}- |
− | + | {{!}} colspan="2" {{!}} <hr style="background-color:#AE5700; height:2px;"> | |
− | {{!}} | + | |
− | + | {{!}}- title="Statistics" | |
− | {{!}}- | + | {{!}} colspan="2" style="text-align:center; font-size:100%; font-weight:bold; color:#AE5700;" {{!}} Statistics |
− | {{ | + | |
− | + | <!-- checks if any abilities have been entered. omits the subsection if not. --> | |
− | + | {{#if:<noinclude>string</noinclude>{{{abilities|}}} | |
− | {{#if:{ | + | |{{!}}- |
− | {{!}} style=" | + | {{!}} colspan="2" {{!}} <hr style="background-color:#AE5700; height:1px;"> |
− | + | ||
− | {{ | + | {{!}}- title="Special abilities" |
− | {{{ | + | {{!}} valign="top" align="right" {{!}} Abilities |
− | {{ | + | {{!}} style="font-size:90%; border-left:#AE5700 1px solid; padding-left:1em;" {{!}} |
− | + | {{#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>|}} | |
− | {{ | + | |}} |
− | + | ||
− | {{!}} | + | <!-- checks if any derived stats have been entered. omits the subsection if not. --> |
− | {{ | + | {{#if:<noinclude>string</noinclude>{{{health|}}}{{{shield|}}}{{{psi|}}}{{{ap|}}}{{{mp|}}}{{{fortitude|}}}{{{resolve|}}}{{{critchance|}}}{{{detection|}}} |
− | {{!}} | + | |{{!}}- |
− | + | {{!}} colspan="2" {{!}} <hr style="background-color:#AE5700; height:1px;"> | |
− | + | ||
− | {{ | + | {{!}}- title="Derived combat statistics" |
− | < | + | {{!}} valign="top" align="right" {{!}} Combat stats |
− | + | {{!}} style="font-size:90%; border-left:#AE5700 1px solid; padding-left:1em;" {{!}} | |
− | < | + | {{#if:<noinclude>string</noinclude>{{{health|}}}|Health: {{{health|n}}}<br>|}} |
− | {{ | + | {{#if:<noinclude>string</noinclude>{{{shield|}}}|Shield: {{{shield|n}}}<br>|}} |
− | | | + | {{#if:<noinclude>string</noinclude>{{{psi|}}}|Psi: {{{psi|n}}}<br>|}} |
− | |} | + | {{#if:<noinclude>string</noinclude>{{{ap|}}}|Action Points: {{{ap|n}}}<br>|}} |
+ | {{#if:<noinclude>string</noinclude>{{{mp|}}}|Movement Points: {{{mp|n}}}<br>|}} | ||
+ | {{#if:<noinclude>string</noinclude>{{{fortitude|}}}|Fortitude: {{{fortitude|n}}}<br>|}} | ||
+ | {{#if:<noinclude>string</noinclude>{{{resolve|}}}|Resolve: {{{resolve|n}}}<br>|}} | ||
+ | {{#if:<noinclude>string</noinclude>{{{critchance|}}}|Crit. chance: {{{critchance|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. --> | ||
+ | {{#if:<noinclude>string</noinclude>{{{strength|}}}{{{dexterity|}}}{{{agility|}}}{{{constitution|}}}{{{perception|}}}{{{will|}}}{{{intelligence|}}} | ||
+ | |{{!}}- | ||
+ | {{!}} colspan="2" {{!}} <hr style="background-color:#AE5700; height:1px;"> | ||
+ | |||
+ | {{!}}- title="Base ability levels" | ||
+ | {{!}} valign="top" align="right" {{!}} Base abilities | ||
+ | {{!}} style="font-size:90%; border-left:#AE5700 1px solid; padding-left:1em;" {{!}} | ||
+ | {{#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 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|}}} | ||
+ | |{{!}}- | ||
+ | {{!}} colspan="2" style="" title="" {{!}} <hr style="background-color:#AE5700; height:1px;"> | ||
+ | |||
+ | {{!}}- title="Skill levels" | ||
+ | {{!}} valign="top" align="right" {{!}} Skills | ||
+ | {{!}} style="font-size:90%; border-left:#AE5700 1px solid; padding-left:1em;" {{!}} | ||
+ | {{#if:<noinclude>string</noinclude>{{{guns|}}}|Guns: {{{guns|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>{{{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. --> | ||
+ | {{#if:<noinclude>string</noinclude>{{{mechanical|}}}{{{heat|}}}{{{cold|}}}{{{acid|}}}{{{bio|}}}{{{energy|}}} | ||
+ | |{{!}}- | ||
+ | {{!}} colspan="2" {{!}} <hr style="background-color:#AE5700; height:1px;"> | ||
+ | |||
+ | {{!}}- 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> | ||
+ | = 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. | ||
+ | <br style="clear:both;"/>{{documentation}}</noinclude> |
Revision as of 09:41, 4 August 2013
Character or creature name | |||
| |||
Biography | |||
Faction |
faction, examples: | ||
Roles |
roles, examples: | ||
Location |
location, examples: | ||
Statistics | |||
Abilities |
misc. combat stuff, examples: | ||
Combat stats |
Health: 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 | |||
Faction |
faction, examples: | ||
Roles |
roles, examples: | ||
Location |
template documentation page | ||
Statistics | |||
Abilities |
True-sight | ||
Combat stats |
Health: 127
Detection: 9001 | ||
Base abilities |
| ||
Skills |
Intimidation: 42 |
Minimal infobox example | |||
| |||
Biography | |||
Faction |
faction, examples: | ||
Roles |
roles, examples: | ||
Location |
some upcoming release | ||
Statistics
| |||
Combat stats |
Health: 123 |
See the source.