Jump to content

Template:Infobox character: Difference between revisions

From Elysium D&D
Undid revision 466 by Erfxploded (talk)
Tags: Undo Mobile edit Mobile web edit
No edit summary
Tags: Mobile edit Mobile web edit
Line 1: Line 1:
<includeonly>{{Infobox
<includeonly<templatestyles src="Template:Infobox/styles.css" />{{#if:{{{nocat|}}}||{{#if:{{{player|}}}|[[Category:Player Characters]]|[[Category:NPCs]]}}
| class     = infobox-character
{| class="wikitable infobox" style="width:20%;"
| title    = {{{name|{{PAGENAME}}}}}
! colspan=4 | {{{name|{{PAGENAME}}}}}
| image    = {{{image|}}}
{{#if:{{{image|}}}|{{!}}- style="text-align:center"
| caption  = {{{image_caption|}}}
{{!}}colspan=4 style="text-align:center"{{!}}[[File:{{{image|}}}{{!}}frameless]]<br/><span style="font-size:87%">{{{image_caption|}}}</span>}}
| subtitle  = {{{title|}}}
|-{{#if:{{{race|}}}
| label1  = Race       | data1  = {{{race|}}}
!colspan=2{{!}}Race
| label2  = Class       | data2  = {{{class|}}}
{{!}}{{{race}}}
| label3  = Subclass    | data3  = {{{subclass|}}}
{{!}}-|}}{{#if:{{{class|}}}|
| label4  = Level       | data4  = {{{level|}}}
!colspan=2{{!}}Class
| label5  = Alignment   | data5  = {{{alignment|}}}
{{!}}{{{class}}}
| label6  = Background | data6  = {{{background|}}}
{{!}}-|}}{{#if:{{{subclass|}}}|
| label7  = Deity      | data7  = {{{deity|}}}
!colspan=2{{!}}Sublass
| header8 = {{#if:{{{hp|}}}{{{ac|}}}{{{str|}}}{{{dex|}}}{{{con|}}}{{{int|}}}{{{wis|}}}{{{cha|}}}|Combat}}
{{!}}{{{subclass}}}
| label9  = Hit Points | data9  = {{{hp|}}}
{{!}}-|}}{{#if:{{{level|}}}|
| label10 = Armor Class | data10 = {{{ac|}}}
!colspan=2{{!}}Level
| data11 = {{#if:{{{str|}}}{{{dex|}}}{{{con|}}}{{{int|}}}{{{wis|}}}{{{cha|}}}|<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>}}
{{!}}{{{level}}}
| header12 = {{#if:{{{player|}}}{{{campaign|}}}{{{status|}}}|Meta}}
{{!}}-|}}{{#if:{{{alignment|}}}|
| label13 = Player     | data13 = {{{player|}}}
!colspan=2{{!}}Alignment
| label14 = Campaign   | data14 = {{{campaign|}}}
{{!}}{{{alignment}}}
| label15 = Status     | data15 = {{{status|}}}
{{!}}-|}}{{#if:{{{background|}}}|
}}</includeonly><noinclude>
!colspan=2{{!}}Background
Character infobox. Built on [[Template:Infobox]].
{{!}}{{{background}}}{{#if:{{{faction|}}}|
!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|}}}|
!colspan=2{{!}}Player
{{!}}{{{player}}}
{{!}}-|}}{{#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:20, 10 August 2026

<includeonly{{#if:||

Infobox character

</includeonly>

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.