Template:Infobox character: Difference between revisions
Appearance
Erfxploded (talk | contribs) mNo edit summary Tags: Mobile edit Mobile web edit |
Tag: Undo |
||
| (29 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
<includeonly><templatestyles src="Template:Infobox/styles.css" /> | <includeonly><templatestyles src="Template:Infobox/styles.css" /> | ||
{| class="wikitable infobox" style="width:20%;" | {| class="wikitable infobox" style="width:20%;" | ||
! colspan=4 | ! colspan="4" | {{{name|{{PAGENAME}}}}} | ||
{{#if:{{{image|}}}|{{!}}- | {{#if:{{{image|}}}| | ||
{{!}}colspan=4 style="text-align:center"{{!}}[[File:{{{image | {{!}}- | ||
{{!}} colspan="4" style="text-align:center" {{!}} [[File:{{{image}}}{{!}}frameless]]<br/><span style="font-size:87%">{{{image_caption|}}}</span> | |||
!colspan=2 | }} | ||
{{!}}colspan=2{{!}}{{{race}}} | {{#if:{{{race|}}}| | ||
{{!}}- | |||
!colspan=2{{!}}Class | ! colspan="2" {{!}} Race | ||
{{!}}{{{class}}} | {{!}} colspan="2" {{!}} {{{race}}} | ||
}} | |||
!colspan=2{{!}} | {{#if:{{{class|}}}| | ||
{{!}}{{{subclass}}} | {{!}}- | ||
! colspan="2" {{!}} Class | |||
!colspan=2{{!}}Level | {{!}} colspan="2" {{!}} {{{class}}} | ||
{{!}}{{{level}}} | }} | ||
{{#if:{{{subclass|}}}| | |||
!colspan=2{{!}}Alignment | {{!}}- | ||
{{!}}{{{alignment}}} | ! colspan="2" {{!}} Subclass | ||
{{!}} colspan="2" {{!}} {{{subclass}}} | |||
!colspan=2{{!}}Background | }} | ||
{{!}}{{{background}}}{{#if:{{{faction|}}}| | {{#if:{{{level|}}}| | ||
!colspan=2{{!}}Faction | {{!}}- | ||
{{!}}{{ | ! colspan="2" {{!}} Level | ||
{{ | {{!}} colspan="2" {{!}} {{{level}}} | ||
}} | |||
!colspan=4{{!}}Combat | {{#if:{{{alignment|}}}| | ||
{{!}}- | |||
!colspan=2{{!}}Hit Points | ! colspan="2" {{!}} Alignment | ||
{{!}}{{{hp}}} | {{!}} colspan="2" {{!}} {{{alignment}}} | ||
}} | |||
!colspan=2{{!}}Armor Class | {{#if:{{{background|}}}| | ||
{{!}}{{{ac}}} | {{!}}- | ||
! colspan="2" {{!}} Background | |||
!colspan=4 class="infobox-stats" | {{!}} colspan="2" {{!}} {{{background}}} | ||
}} | |||
!colspan=4{{!}}Meta | {{#if:{{{faction|}}}| | ||
{{!}}- | |||
!colspan=2{{!}}Player | ! colspan="2" {{!}} Faction | ||
{{!}}{{{player}}} | {{!}} colspan="2" {{!}} {{{faction}}} | ||
}} | |||
!colspan=2{{!}}Campaign | {{#if:{{{hp|}}}{{{ac|}}}{{{str|}}}{{{dex|}}}{{{con|}}}{{{int|}}}{{{wis|}}}{{{cha|}}}| | ||
{{!}}{{ | {{!}}- | ||
{{ | ! colspan="4" {{!}} Combat | ||
!colspan=2{{!}}Status | }} | ||
{{!}}{{{status}}} | {{#if:{{{hp|}}}| | ||
{{ | {{!}}- | ||
|}</includeonly><noinclude> | ! colspan="2" {{!}} Hit Points | ||
Character infobox. | {{!}} colspan="2" {{!}} {{{hp}}} | ||
}} | |||
{{#if:{{{ac|}}}| | |||
{{!}}- | |||
! colspan="2" {{!}} Armor Class | |||
{{!}} colspan="2" {{!}} {{{ac}}} | |||
}} | |||
{{#if:{{{str|}}}{{{dex|}}}{{{con|}}}{{{int|}}}{{{wis|}}}{{{cha|}}}| | |||
{{!}}- | |||
{{!}} colspan="4" {{!}} | |||
<div class="infobox-stats"> | |||
<div><span class="infobox-stat-label">STR</span><span class="infobox-stat-value">{{{str|—}}}</span></div> | |||
<div><span class="infobox-stat-label">DEX</span><span class="infobox-stat-value">{{{dex|—}}}</span></div> | |||
<div><span class="infobox-stat-label">CON</span><span class="infobox-stat-value">{{{con|—}}}</span></div> | |||
<div><span class="infobox-stat-label">INT</span><span class="infobox-stat-value">{{{int|—}}}</span></div> | |||
<div><span class="infobox-stat-label">WIS</span><span class="infobox-stat-value">{{{wis|—}}}</span></div> | |||
<div><span class="infobox-stat-label">CHA</span><span class="infobox-stat-value">{{{cha|—}}}</span></div> | |||
</div> | |||
}} | |||
{{#if:{{{player|}}}{{{campaign|}}}{{{status|}}}| | |||
{{!}}- | |||
! colspan="4" {{!}} Meta | |||
}} | |||
{{#if:{{{player|}}}| | |||
{{!}}- | |||
! colspan="2" {{!}} Player | |||
{{!}} colspan="2" {{!}} {{{player}}} | |||
}} | |||
{{#if:{{{campaign|}}}| | |||
{{!}}- | |||
! colspan="2" {{!}} Campaign | |||
{{!}} colspan="2" {{!}} {{{campaign}}} | |||
}} | |||
{{#if:{{{status|}}}| | |||
{{!}}- | |||
! colspan="2" {{!}} Status | |||
{{!}} colspan="2" {{!}} {{{status}}} | |||
}} | |||
|} | |||
{{#if:{{{nocat|}}}||{{#if:{{{player|}}}|[[Category:Player Characters]]|[[Category:NPCs]]}}}}</includeonly><noinclude> | |||
Character infobox. | |||
Base variables | Base variables: ''name'', ''image'', ''image_caption'', ''race'', ''class'', ''subclass'', ''level'', ''alignment'', ''background'', ''faction''. | ||
Combat stats | |||
Meta variables | Combat stats: ''hp'' (hit points), ''ac'' (armor class), ''str'', ''dex'', ''con'', ''int'', ''wis'', ''cha''. | ||
Function variables | |||
If ''player'' is set to anything, the Player Characters category is added, otherwise | Meta variables: ''player'', ''campaign'', ''status''. | ||
Function variables: ''nocat''. | |||
If ''player'' is set to anything, the Player Characters category is added, otherwise NPCs. If ''nocat'' is set (e.g. <nowiki>|nocat=1</nowiki>), no category is added. | |||
==Example== | |||
{{Infobox_character | |||
| name = Nomad | |||
| image = Nomad.png | |||
| image_caption = Token | |||
| race = Warforged | |||
| class = Monk | |||
| subclass = Warrior of Mercy | |||
| alignment = Lawful Neutral | |||
| background = Soldier | |||
| faction = [[This can be whatever you want baybeee|The One Thousand Strong]] | |||
| level = 6 | |||
| hp = 45 | |||
| ac = 18 | |||
| str = 12 | |||
| dex = 18 | |||
| con = 14 | |||
| int = 10 | |||
| wis = 16 | |||
| cha = 8 | |||
| player = [[User:Olivinism|Ronan]] | |||
| campaign = [[Nightmare]], [[Prime]] | |||
| status = Alive | |||
| nocat = 1 | |||
}} | |||
<pre> | |||
{{Infobox_character | |||
| name = Nomad | |||
| image = Nomad.png | |||
| image_caption = Token | |||
| race = Warforged | |||
| class = Monk | |||
| subclass = Warrior of Mercy | |||
| alignment = Lawful Neutral | |||
| background = Soldier | |||
| faction = [[factionname|The One Thousand Strong]] | |||
| level = 6 | |||
| hp = 45 | |||
| ac = 18 | |||
| str = 12 | |||
| dex = 18 | |||
| con = 14 | |||
| int = 10 | |||
| wis = 16 | |||
| cha = 8 | |||
| player = [[User:Olivinism|Ronan]] | |||
| campaign = [[Nightmare]], [[Prime]] | |||
| status = Alive | |||
| nocat = 1 | |||
}} | |||
</pre> | |||
[[Category:Infobox Templates]] | |||
</noinclude> | </noinclude> | ||
Latest revision as of 09:13, 11 August 2026
Character infobox.
Base variables: name, image, image_caption, race, class, subclass, level, alignment, background, faction.
Combat stats: hp (hit points), ac (armor class), str, dex, con, int, wis, cha.
Meta variables: player, campaign, status.
Function variables: nocat.
If player is set to anything, the Player Characters category is added, otherwise NPCs. If nocat is set (e.g. |nocat=1), no category is added.
Example
| Nomad | |||
|---|---|---|---|
Token | |||
| Race | Warforged | ||
| Class | Monk | ||
| Subclass | Warrior of Mercy | ||
| Level | 6 | ||
| Alignment | Lawful Neutral | ||
| Background | Soldier | ||
| Faction | The One Thousand Strong | ||
| Combat | |||
| Hit Points | 45 | ||
| Armor Class | 18 | ||
|
STR12
DEX18
CON14
INT10
WIS16
CHA8
| |||
| Meta | |||
| Player | Ronan | ||
| Campaign | Nightmare, Prime | ||
| Status | Alive | ||
{{Infobox_character
| name = Nomad
| image = Nomad.png
| image_caption = Token
| race = Warforged
| class = Monk
| subclass = Warrior of Mercy
| alignment = Lawful Neutral
| background = Soldier
| faction = [[factionname|The One Thousand Strong]]
| level = 6
| hp = 45
| ac = 18
| str = 12
| dex = 18
| con = 14
| int = 10
| wis = 16
| cha = 8
| player = [[User:Olivinism|Ronan]]
| campaign = [[Nightmare]], [[Prime]]
| status = Alive
| nocat = 1
}}