Jump to content

Template:Infobox character: Difference between revisions

No edit summary
Tags: Mobile edit Mobile web edit
Olivinism (talk | contribs)
Undid revision 542 by Olivinism (talk)
Tag: Undo
 
(17 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly><templatestyles src="Template:Infobox/styles.css" />{| class="wikitable infobox" style="width:20%;"
<includeonly><templatestyles src="Template:Infobox/styles.css" />
{| class="wikitable infobox" style="width:20%;"
! colspan="4" | {{{name|{{PAGENAME}}}}}
! colspan="4" | {{{name|{{PAGENAME}}}}}
{{#if:{{{image|}}}|
{{#if:{{{image|}}}|
Line 56: Line 57:
{{#if:{{{str|}}}{{{dex|}}}{{{con|}}}{{{int|}}}{{{wis|}}}{{{cha|}}}|
{{#if:{{{str|}}}{{{dex|}}}{{{con|}}}{{{int|}}}{{{wis|}}}{{{cha|}}}|
{{!}}-
{{!}}-
{{!}} colspan="4" class="infobox-stats" {{!}}
{{!}} colspan="4" {{!}}
<div style="width: 100%;">
<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">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">DEX</span><span class="infobox-stat-value">{{{dex|—}}}</span></div>
Line 98: Line 99:


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.
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>