Difference between revisions of "Template:Character Infobox"
m |
m |
||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
{| style={{Infobox common style}} width="320px" | {| style={{Infobox common style}} width="320px" | ||
− | |- | + | |- |
| colspan="2" style="text-align:center; font-weight:bold; font-size:127%; color:#AE5700;" | {{{name|Character or creature name}}} | | colspan="2" style="text-align:center; font-weight:bold; font-size:127%; color:#AE5700;" | {{{name|Character or creature name}}} | ||
Line 8: | Line 8: | ||
{{#switch: {{{type|}}} | {{#switch: {{{type|}}} | ||
− | | creature | + | | creature | generic = |
− | | generic = | ||
{{!}}- | {{!}}- | ||
{{!}} colspan="2" style="text-align:center;" title="In-game model" {{!}} | {{!}} colspan="2" style="text-align:center;" title="In-game model" {{!}} | ||
− | {{#if:{{{model|}}}|[[File:{{{model|}}}{{!}}x100px]]|{{#ifexist:File:{{PAGENAME}} model.png|[[File:{{PAGENAME}} model.png{{!}}x100px]]|[[File:misc_icon.png{{!}}100x100px]]}}}} | + | {{#if:{{{model|}}} |
− | | important | + | |[[File:{{{model|}}}{{!}}x100px]] |
− | | #default = | + | |{{#ifexist:File:{{PAGENAME}} model.png |
+ | |[[File:{{PAGENAME}} model.png{{!}}x100px]] | ||
+ | |[[File: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;" title="Portrait" {{!}} | ||
− | {{#if:{{{portrait|}}}|[[File:{{{portrait|}}}{{!}}x100px]]|{{#ifexist:File:{{PAGENAME}} portrait.png|[[File:{{PAGENAME}} portrait.png{{!}}x100px]]|[[File:defaultportrait.png{{!}}100x100px]]}}}} | + | {{#if:{{{portrait|}}} |
+ | |[[File:{{{portrait|}}}{{!}}x100px]] | ||
+ | |{{#ifexist:File:{{PAGENAME}} portrait.png | ||
+ | |[[File:{{PAGENAME}} portrait.png{{!}}x100px]] | ||
+ | |[[File:defaultportrait.png{{!}}100x100px]] | ||
+ | }} | ||
+ | }} | ||
{{!}} width="50%" style="text-align:center;" title="In-game model" {{!}} | {{!}} width="50%" style="text-align:center;" title="In-game model" {{!}} | ||
− | {{#if:{{{model|}}}|[[File:{{{model|}}}{{!}}x100px]]|{{#ifexist:File:{{PAGENAME}} model.png|[[File:{{PAGENAME}} model.png{{!}}x100px]]|[[File:misc_icon.png{{!}}100x100px]]}}}} | + | {{#if:{{{model|}}} |
− | {{!}}} | + | |[[File:{{{model|}}}{{!}}x100px]] |
+ | |{{#ifexist:File:{{PAGENAME}} model.png | ||
+ | |[[File:{{PAGENAME}} model.png{{!}}x100px]] | ||
+ | |[[File:misc_icon.png{{!}}100x100px]] | ||
+ | }} | ||
+ | }} | ||
+ | {{!}}} <!-- images table end --> | ||
}} | }} | ||
|- | |- | ||
− | | colspan="2" | <hr style="background-color:#AE5700; height:2px;" | + | | colspan="2" | <hr style="background-color:#AE5700; height:2px;"> |
− | + | |- | |
− | + | | colspan="2" style="text-align:center; font-size:100%; font-weight:bold; color:#AE5700;" | {{#switch: {{{type|}}} | |
− | + | | creature | generic = Description | important | #default = Biography }} | |
− | |||
− | | | ||
− | |||
− | |||
− | |||
− | + | |- | |
− | + | | colspan="2" | <hr style="background-color:#AE5700; height:1px;"><nowiki> | |
− | |||
</nowiki><!-- if no faction listed, omit section --> | </nowiki><!-- if no faction listed, omit section --> | ||
{{#if:<noinclude>string</noinclude>{{{faction|}}} | {{#if:<noinclude>string</noinclude>{{{faction|}}} | ||
− | |{{!}}- | + | |{{!}}- |
{{!}} width="30%" valign="top" align="right" {{!}} Faction | {{!}} width="30%" valign="top" align="right" {{!}} Faction | ||
{{!}} width="70%" style="font-size:90%; border-left:#AE5700 1px solid; padding-left:1em;" {{!}} | {{!}} width="70%" style="font-size:90%; border-left:#AE5700 1px solid; padding-left:1em;" {{!}} | ||
Line 53: | Line 63: | ||
</nowiki><!-- if no roles listed, omit section --> | </nowiki><!-- if no roles listed, omit section --> | ||
{{#if:<noinclude>string</noinclude>{{{roles|}}} | {{#if:<noinclude>string</noinclude>{{{roles|}}} | ||
− | |{{!}}- | + | |{{!}}- |
{{!}} width="30%" valign="top" align="right" {{!}} Roles | {{!}} width="30%" valign="top" align="right" {{!}} Roles | ||
{{!}} width="70%" style="font-size:90%; border-left:#AE5700 1px solid; padding-left:1em;" {{!}} | {{!}} width="70%" style="font-size:90%; border-left:#AE5700 1px solid; padding-left:1em;" {{!}} | ||
Line 62: | Line 72: | ||
</nowiki><!-- if no locations listed, omit section --> | </nowiki><!-- if no locations listed, omit section --> | ||
{{#if:<noinclude>string</noinclude>{{{location|}}} | {{#if:<noinclude>string</noinclude>{{{location|}}} | ||
− | |{{!}}- | + | |{{!}}- |
{{!}} width="30%" valign="top" align="right" {{!}} Location | {{!}} width="30%" valign="top" align="right" {{!}} Location | ||
{{!}} width="70%" style="font-size:90%; border-left:#AE5700 1px solid; padding-left:1em;" {{!}} | {{!}} width="70%" style="font-size:90%; border-left:#AE5700 1px solid; padding-left:1em;" {{!}} | ||
Line 71: | Line 81: | ||
</nowiki><!-- if no quests listed, omit section --> | </nowiki><!-- if no quests listed, omit section --> | ||
{{#if:<noinclude>string</noinclude>{{{quests|}}} | {{#if:<noinclude>string</noinclude>{{{quests|}}} | ||
− | |{{!}}- | + | |{{!}}- |
{{!}} width="30%" valign="top" align="right" {{!}} Quests | {{!}} width="30%" valign="top" align="right" {{!}} Quests | ||
{{!}} width="70%" style="font-size:90%; border-left:#AE5700 1px solid; padding-left:1em;" {{!}} | {{!}} width="70%" style="font-size:90%; border-left:#AE5700 1px solid; padding-left:1em;" {{!}} | ||
Line 83: | Line 93: | ||
</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|}}}{{{level|}}}{{{health|}}}{{{shield|}}}{{{psipool|}}}{{{ | + | {{#if:<noinclude>string</noinclude>{{{abilities|}}}{{{level|}}}{{{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" {{!}} <hr style="background-color:#AE5700; height:2px;"> | {{!}} colspan="2" {{!}} <hr style="background-color:#AE5700; height:2px;"> | ||
− | {{!}}- | + | {{!}}- |
{{!}} colspan="2" style="text-align:center; font-size:100%; font-weight:bold; color:#AE5700;" {{!}} Statistics<nowiki> | {{!}} colspan="2" style="text-align:center; font-size:100%; font-weight:bold; color:#AE5700;" {{!}} Statistics<nowiki> | ||
Line 108: | Line 118: | ||
</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>{{{level|}}}{{{health|}}}{{{shield|}}}{{{ | + | {{#if:<noinclude>string</noinclude>{{{level|}}}{{{health|}}}{{{shield|}}}{{{psipool|}}}{{{actionpoints|}}}{{{movepoints|}}}{{{damage|}}}{{{range|}}}{{{detection|}}} |
|{{!}}- | |{{!}}- | ||
{{!}} colspan="2" {{!}} <hr style="background-color:#AE5700; height:1px;"> | {{!}} colspan="2" {{!}} <hr style="background-color:#AE5700; height:1px;"> | ||
Line 116: | Line 126: | ||
{{!}} 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>{{{level|}}}|Level: {{{level|n}}}<br> | {{#if:<noinclude>string</noinclude>{{{level|}}}|Level: {{{level|n}}}<br> | ||
+ | |}}{{#if:<noinclude>string</noinclude>{{{damage|}}}|Attack damage: {{{damage|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> | ||
|}}{{#if:<noinclude>string</noinclude>{{{shield|}}}|Shield: {{{shield|n}}}<br> | |}}{{#if:<noinclude>string</noinclude>{{{shield|}}}|Shield: {{{shield|n}}}<br> | ||
Line 121: | Line 133: | ||
|}}{{#if:<noinclude>string</noinclude>{{{actionpoints|}}}|Action Points: {{{actionpoints|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>{{{movepoints|}}}|Movement Points: {{{movepoints|n}}}<br> | ||
− | |||
− | |||
− | |||
|}}{{#if:<noinclude>string</noinclude>{{{detection|}}}|Detection: {{{detection|n}}}<br> | |}}{{#if:<noinclude>string</noinclude>{{{detection|}}}|Detection: {{{detection|n}}}<br> | ||
|}}|}}<nowiki> | |}}|}}<nowiki> |
Revision as of 13:11, 4 August 2013
Character or creature name | |||
| |||
Biography | |||
Faction |
faction, examples: | ||
Roles |
roles, examples: | ||
Location |
location, examples: | ||
Quests |
quest1 | ||
Statistics | |||
Abilities |
misc. combat stuff, examples: | ||
Combat stats |
Level: 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 | |||
| |||
Roles |
Example with bunch of stats | ||
Location |
template documentation page | ||
Quests |
quest1 | ||
Statistics | |||
Abilities |
True-sight | ||
Combat stats |
Level: 30 | ||
Base abilities |
Perception: 10 | ||
Skills |
Traps: 127 |
Minimal infobox example | |||
| |||
Biography | |||
| |||
Roles |
Styg's old forum avatar | ||
Location |
some upcoming release | ||
Statistics
| |||
Combat stats |
Health: 123 |
See the source.