Template:Infobox character: Difference between revisions
Appearance
Erfxploded (talk | contribs) Undid revision 466 by Erfxploded (talk) Tags: Undo Mobile edit Mobile web edit |
Erfxploded (talk | contribs) No edit summary Tags: Mobile edit Mobile web edit |
||
| Line 1: | Line 1: | ||
<includeonly>{{ | <includeonly<templatestyles src="Template:Infobox/styles.css" />{{#if:{{{nocat|}}}||{{#if:{{{player|}}}|[[Category:Player Characters]]|[[Category:NPCs]]}} | ||
| class | {| class="wikitable infobox" style="width:20%;" | ||
| | ! 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|}}}| | |||
}}</includeonly><noinclude> | !colspan=2{{!}}Background | ||
Character 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.