Template:Infobox character: Difference between revisions
Appearance
Created page with "<includeonly>{{Infobox | class = infobox-character | title = {{{name|{{PAGENAME}}}}} | image = {{{image|}}} | caption = {{{image_caption|}}} | subtitle = {{{title|}}} | label1 = Race | data1 = {{{race|}}} | label2 = Class | data2 = {{{class|}}} | label3 = Subclass | data3 = {{{subclass|}}} | label4 = Level | data4 = {{{level|}}} | label5 = Alignment | data5 = {{{alignment|}}} | label6 = Background | data6 = {{{backgroun..." Tag: Recreated |
Erfxploded (talk | contribs) rework template Tags: Mobile edit Mobile web edit |
||
| Line 1: | Line 1: | ||
<includeonly>{ | <includeonly><templatestyles src="Template:Infobox/styles.css" />{| class="wikitable infobox" style="width:20%;" | ||
| class | ! colspan=4 | {{{name|{{PAGENAME}}}}} | ||
| | {{#if:{{{image|}}}|{{!}}- style="text-align:center" | ||
| | {{!}}colspan=4 style="text-align:center"{{!}}[[File:{{{image|}}}{{!}}frameless]]<br/><span style="font-size:87%">{{{image_caption|}}}</span>}} | ||
|-{{#if:{{{race|}}} | |||
| | !colspan=2{{!}}Race | ||
{{!}}{{{race}}} | |||
{{!}}-|}}{{#if:{{{class|}}}| | |||
| | !colspan=2{{!}}Class | ||
{{!}}{{{class}}} | |||
{{!}}-|}}{{#if:{{{subclass|}}}| | |||
!colspan=2{{!}}Sublass | |||
{{!}}{{{subclass}}} | |||
| | {{!}}-|}}{{#if:{{{level|}}}| | ||
!colspan=2{{!}}Level | |||
{{!}}{{{level}}} | |||
| | {{!}}-|}}{{#if:{{{alignment|}}}| | ||
| | !colspan=2{{!}}Alignment | ||
{{!}}{{{alignment}}} | |||
{{!}}-|}}{{#if:{{{background|}}}| | |||
!colspan=2{{!}}Background | |||
}}</includeonly><noinclude> | {{!}}{{{background}}}{{#if:{{{faction|}}}| | ||
Character infobox. | !colspan=2{{!}}Faction | ||
{{!}}{{{faction}}} | |||
{{!}}-|}} | |||
{{!}}-|}}{{#if:{{{hp|}}}{{{ac|}}}{{{str|}}}{{{dex|}}}{{{con|}}}{{{int|}}}{{{wis|}}}{{{cha|}}}| | |||
!colspan=4{{!}}Combat | |||
{{!}}-|}}{{#if:{{{hp|}}}| | |||
!colspan=2{{!}}Hit Points | |||
{{!}}{{{hp}}} | |||
{{!}}-|}}{{#if:{{{ac|}}}| | |||
!colspan=2{{!}}Armor Class | |||
{{!}}{{{ac}}} | |||
{{!}}-|}}{{#if:{{{str|}}}{{{dex|}}}{{{con|}}}{{{int|}}}{{{wis|}}}{{{cha|}}}| | |||
!colspan=4 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> | |||
{{!}}-|}}{{#if:{{{player|}}}{{{campaign|}}}{{{status|}}}| | |||
!colspan=4{{!}}Meta | |||
{{!}}-|}}{{#if:{{{player|}}}|{{#if:{{{nocat|}}}||[[Category:Player Characters]]}} | |||
!colspan=2{{!}}Player | |||
{{!}}{{{player}}} | |||
{{!}}-|{{#if:{{{nocat|}}}||[[Category:NPCs]]}}}}{{#if:{{{campaign|}}}| | |||
!colspan=2{{!}}Campaign | |||
{{!}}{{{hp}}} | |||
{{!}}-|}}{{#if:{{{status|}}}| | |||
!colspan=2{{!}}Status | |||
{{!}}{{{status}}} | |||
{{!}}-|}} | |||
|}</includeonly><noinclude> | |||
Character infobox. | |||
Base variables are ''name'', ''image'', ''image_caption'', ''race'', ''class'', ''subclass'', ''level'', ''alignment'', ''background'', ''faction''.<br> | |||
Combat stats are ''hp'' (health points), ''ac'' (armor class), ''str'', ''dex'', ''con'', ''int'', ''wis'', ''cha''.<br> | |||
Meta variables are ''player'', ''campaign'', ''status''.<br> | |||
Function variables are ''nocat''.<br> | |||
If ''player'' is set to anything, the Player Characters category is added, otherwise the NPCs category is added. If ''nocat'' is set to anything (e.g. |nocat=1), no category is added by the template. | |||
</noinclude> | </noinclude> | ||
Revision as of 21:13, 10 August 2026
Character infobox.
Base variables are name, image, image_caption, race, class, subclass, level, alignment, background, faction.
Combat stats are hp (health points), ac (armor class), str, dex, con, int, wis, cha.
Meta variables are player, campaign, status.
Function variables are nocat.
If player is set to anything, the Player Characters category is added, otherwise the NPCs category is added. If nocat is set to anything (e.g. |nocat=1), no category is added by the template.