Difference between revisions of "Template:Character Infobox"
(FnaXnnRJvZ) |
m (Reverted edits by 31.184.238.9 (talk) to last revision by Epeli) |
||
Line 1: | Line 1: | ||
− | , | + | {| cellspacing="0px" style={{Infobox common style}} width="320px" |
+ | |- | ||
+ | | 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}}} | ||
+ | |||
+ | {{#switch: {{{type|}}} | ||
+ | | creature | generic = | ||
+ | {{!}}- | ||
+ | {{!}} colspan="2" style="text-align:center;" title="In-game model" {{!}} | ||
+ | {{#if:{{{image|}}} | ||
+ | |[[File:{{{image|}}}{{!}}x100px]] | ||
+ | |{{#ifexist:File:{{PAGENAME}} model.png | ||
+ | |[[File:{{PAGENAME}} model.png{{!}}x100px]] | ||
+ | |[[File:misc_icon.png{{!}}100x100px]] | ||
+ | }} | ||
+ | }} | ||
+ | | important | #default = | ||
+ | {{!}}- | ||
+ | {{!}} colspan="2" {{!}} | ||
+ | {{{!}} width="100%" <!-- images table start --> | ||
+ | {{!}} 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]] | ||
+ | }} | ||
+ | }} | ||
+ | {{!}} width="50%" style="text-align:center;" title="In-game model" {{!}} | ||
+ | {{#if:{{{image|}}} | ||
+ | |[[File:{{{image|}}}{{!}}x100px]] | ||
+ | |{{#ifexist:File:{{PAGENAME}} model.png | ||
+ | |[[File:{{PAGENAME}} model.png{{!}}x100px]] | ||
+ | |[[File:misc_icon.png{{!}}100x100px]] | ||
+ | }} | ||
+ | }} | ||
+ | {{!}}} <!-- 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|}}} | ||
+ | | creature = Description| important | generic | #default = Biography}}<nowiki> | ||
+ | |||
+ | |||
+ | </nowiki><!-- if no faction listed, omit section --><nowiki> | ||
+ | </nowiki>{{#if:<noinclude>string</noinclude>{{{faction|}}} | ||
+ | |​ | ||
+ | {{!}}- | ||
+ | {{!}} width="30%" style="padding-right:0.4em;" valign="top" align="right" {{!}} Faction | ||
+ | {{!}} width="70%" style="font-size:90%; border-left:#AE5700 1px solid; padding-left:1em;" {{!}} | ||
+ | {{{faction|faction, examples:<br>[[South Gaters]]<br>Wildlife}}} | ||
+ | |}}<nowiki> | ||
+ | |||
+ | |||
+ | </nowiki><!-- if no roles listed, omit section --> | ||
+ | {{#if:<noinclude>string</noinclude>{{{roles|}}} | ||
+ | |{{!}}- | ||
+ | {{!}} width="30%" style="padding-right:0.4em;" valign="top" align="right" {{!}} Role | ||
+ | {{!}} width="70%" style="font-size:90%; border-left:#AE5700 1px solid; padding-left:1em;" {{!}} | ||
+ | {{{roles|roles, examples:<br>[[Trader]]<br>[[Psi trainer]]<br>Quest NPC}}} | ||
+ | |}}<nowiki> | ||
+ | |||
+ | |||
+ | </nowiki><!-- if no locations listed, omit section --> | ||
+ | {{#if:<noinclude>string</noinclude>{{{location|}}} | ||
+ | |{{!}}- | ||
+ | {{!}} width="30%" style="padding-right:0.4em;" 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]]}}} | ||
+ | |}}<nowiki> | ||
+ | |||
+ | |||
+ | </nowiki><!-- if no quests listed, omit section --> | ||
+ | {{#if:<noinclude>string</noinclude>{{{quests|}}} | ||
+ | |{{!}}- | ||
+ | {{!}} width="30%" style="padding-right:0.4em;" valign="top" align="right" {{!}} Quests | ||
+ | {{!}} width="70%" style="font-size:90%; border-left:#AE5700 1px solid; padding-left:1em;" {{!}} | ||
+ | {{{quests|quest1<br>quest2<br>quest3<br>etc}}} | ||
+ | |}}<nowiki> | ||
+ | |||
+ | |||
+ | </nowiki><!-- if no loot listed, omit section --> | ||
+ | {{#if:<noinclude>string</noinclude>{{{loot|}}} | ||
+ | |{{!}}- | ||
+ | {{!}} width="30%" style="padding-right:0.4em;" valign="top" align="right" {{!}} Loot | ||
+ | {{!}} width="70%" style="font-size:90%; border-left:#AE5700 1px solid; padding-left:1em;" {{!}} | ||
+ | {{{loot|Ammunition<br>Scraps<br>Firearm Barrels (rarely)}}} | ||
+ | |}}<nowiki> | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | </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|}}}{{{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> | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | </nowiki><!-- checks if any abilities have been entered. omits the subsection if not. --><nowiki> | ||
+ | </nowiki>{{#if:<noinclude>string</noinclude>{{{abilities|}}} | ||
+ | |​ | ||
+ | {{!}}- title="Special abilities" | ||
+ | {{!}} style="padding-right:0.4em;" valign="top" align="right" {{!}} Abilities | ||
+ | {{!}} style="font-size:90%; border-left:#AE5700 1px solid; padding-left:1em;" {{!}} | ||
+ | {{{abilities|misc. combat stuff, examples:<br>Throws [[Flashbang]]s<br>Can use [[Neural Overload]]<br>Has [[Acid Spray]] special attack}}}<br> | ||
+ | |}}<nowiki> | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | </nowiki><!-- checks if any derived stats have been entered. omits the subsection if not. --> | ||
+ | {{#if:<noinclude>string</noinclude>{{{level|}}}{{{health|}}}{{{shield|}}}{{{psipool|}}}{{{actionpoints|}}}{{{movepoints|}}}{{{damage|}}}{{{range|}}}{{{detection|}}} | ||
+ | |{{!}}- title="Combat statistics" | ||
+ | {{!}} style="padding-right:0.4em;" valign="top" align="right" {{!}} Combat stats | ||
+ | {{!}} 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>{{{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>{{{shield|}}}|Shield: {{{shield|n}}}<br> | ||
+ | |}}{{#if:<noinclude>string</noinclude>{{{psipool|}}}|Psi: {{{psipool|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>{{{detection|}}}|Detection: {{{detection|n}}}<br> | ||
+ | |}}|}}<nowiki> | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | </nowiki><!-- 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|}}} | ||
+ | |{{!}}- title="Base ability scores" | ||
+ | {{!}} style="padding-right:0.4em;" 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> | ||
+ | |}}|}}<nowiki> | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | </nowiki><!-- 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|}}} | ||
+ | |{{!}}- title="Skill levels" | ||
+ | {{!}} style="padding-right:0.4em;" 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> | ||
+ | |}}|}}<nowiki> | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | </nowiki><!-- checks if any resistance values have been entered. omits the subsection if not. --> | ||
+ | {{#if:<noinclude>string</noinclude>{{{mechanical|}}}{{{heat|}}}{{{cold|}}}{{{acid|}}}{{{bio|}}}{{{electricity|}}}{{{energy|}}} | ||
+ | |{{!}}- title="Damage resistances and tresholds" | ||
+ | {{!}} style="padding-right:0.4em;" 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|orangered|Heat: {{{heat|n% / n}}}}}<br> | ||
+ | |}}{{#if:<noinclude>string</noinclude>{{{cold|}}}|{{color|lightblue|Cold: {{{cold|n% / n}}}}}<br> | ||
+ | |}}{{#if:<noinclude>string</noinclude>{{{electricity|}}}|{{color|yellow|Electricity: {{{electricity|n% / n}}}}}<br> | ||
+ | |}}{{#if:<noinclude>string</noinclude>{{{acid|}}}|{{color|green|Acid: {{{acid|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> | ||
+ | |}}|}}|}}<nowiki> | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | </nowiki><!-- checks if technical details have been entered. omits the whole section if not. --> | ||
+ | {{#if:<noinclude>string</noinclude>{{{charfile|}}}{{{dialogfile|}}}{{{shopfile|}}}{{{animfiles|}}} | ||
+ | |{{!}}- | ||
+ | {{!}} colspan="2" {{!}}<!-- start collapsible table for technical details --> | ||
+ | {{(}}{{!}} 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> | ||
+ | |||
+ | |||
+ | </nowiki><!-- checks if character file has been entered. omits the subsection if not. --><nowiki> | ||
+ | </nowiki>{{#if:<noinclude>string</noinclude>{{{charfile|}}} | ||
+ | |​ | ||
+ | {{!}}- title="Found in \Data\Rules\Characters" | ||
+ | {{!}} width="30%" style="padding-right:0.4em;" valign="top" align="right" {{!}} Character file | ||
+ | {{!}} width="70%" style="font-size:90%; border-left:#AE5700 1px solid; padding-left:1em;" {{!}} | ||
+ | <code>{{{charfile|FileName.char}}}</code> | ||
+ | |}}<nowiki> | ||
+ | |||
+ | |||
+ | |||
+ | </nowiki><!-- checks if dialog file has been entered. omits the subsection if not. --><nowiki> | ||
+ | </nowiki>{{#if:<noinclude>string</noinclude>{{{dialogfile|}}} | ||
+ | |​ | ||
+ | {{!}}- title="Found in \Data\Dialogs\ or its subfolders" | ||
+ | {{!}} width="30%" style="padding-right:0.4em;" valign="top" align="right" {{!}} Dialog file | ||
+ | {{!}} width="70%" style="font-size:90%; border-left:#AE5700 1px solid; padding-left:1em;" {{!}} | ||
+ | <code>{{{dialogfile|FileName.udlg}}}</code> | ||
+ | |}}<nowiki> | ||
+ | |||
+ | |||
+ | |||
+ | </nowiki><!-- checks if shop file has been entered. omits the subsection if not. --> | ||
+ | {{#if:<noinclude>string</noinclude>{{{shopfile|}}} | ||
+ | |{{!}}- title="Found in \Data\Rules\Stores" | ||
+ | {{!}} width="30%" style="padding-right:0.4em;" valign="top" align="right" {{!}} Shop file | ||
+ | {{!}} width="70%" style="font-size:90%; border-left:#AE5700 1px solid; padding-left:1em;" {{!}} | ||
+ | <code>{{{shopfile|FileName.store}}}</code> | ||
+ | |}}<nowiki> | ||
+ | |||
+ | |||
+ | |||
+ | </nowiki><!-- checks if animation files have been entered. omits the subsection if not. --> | ||
+ | {{#if:<noinclude>string</noinclude>{{{animfiles|}}} | ||
+ | |{{!}}- title="Found in \Data\Locale\Creatures\" | ||
+ | {{!}} width="30%" style="padding-right:0.4em;" valign="top" align="right" {{!}} Animation sprites | ||
+ | {{!}} width="70%" style="font-size:90%; border-left:#AE5700 1px solid; padding-left:1em;" {{!}} | ||
+ | <code>{{{animfiles|\folder\}}}</code> | ||
+ | |}} | ||
+ | {{!}}{{)}}<!-- technical details table end -->|}} | ||
+ | |}<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 19:34, 13 November 2013
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 |
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 | |||||||||
Role |
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 | |||
Role |
Styg's old forum avatar | ||
Location |
some upcoming release | ||
Statistics | |||
Combat stats |
Health: 123 |
See the source.