Template:Ddbeyond/small: Difference between revisions
mNo edit summary Tag: Reverted |
mNo edit summary |
||
(7 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
<templatestyles src="ddbeyond/style.css" /> | <templatestyles src="ddbeyond/style.css" /> | ||
<div class="column | <div class="column {{#if:{{{float}}}|float-{{{float}}}}} shadow main-body"><!-- character block --> | ||
<div class="row"><!-- avatar/name/classes/level row --> | <div class="row"><!-- avatar/name/classes/level row --> | ||
<div class="rounded-square bg-box" style="padding:4px;margin-right:24px">[[File:{{#if:{{{avatar}}}|{{{avatar}}}|default-avatar.jpg}}|100px]]</div> | <div class="rounded-square bg-box" style="padding:4px;margin-right:24px">[[File:{{#if:{{{avatar}}}|{{{avatar}}}|default-avatar.jpg}}|100px]]</div> | ||
{{ddbeyond/small/ | {{ddbeyond/small/nameraceclassblock | ||
|name={{{name|}}} | |name={{{name|}}} | ||
|race={{{race|}}} | |race={{{race|}}} | ||
Line 17: | Line 17: | ||
|class5={{{class5|}}} | |class5={{{class5|}}} | ||
|class5lv={{{class5lv|}}}}} | |class5lv={{{class5lv|}}}}} | ||
{{ddbeyond/small/lvblock|{{#expr:{{#if:{{{class1lv | {{ddbeyond/small/lvblock|{{#expr:{{#if:{{{class1lv}}}|{{{class1lv}}}|err}}+{{#if:{{{class2lv}}}|{{{class2lv}}}|0}}+{{#if:{{{class3lv}}}|{{{class3lv}}}|0}}+{{#if:{{{class4lv}}}|{{{class4lv}}}|0}}+{{#if:{{{class5lv}}}|{{{class5lv}}}|0}}}}}} | ||
</div><!-- end avatar/name/classes/level row --> | </div><!-- end avatar/name/classes/level row --> | ||
Latest revision as of 10:56, 24 November 2021
A more compact form of a character display
Parameter | Description | Type | Status | |
---|---|---|---|---|
character name | name | The name of the character on the character sheet.
| String | required |
character race | race | The character's race on the character sheet.
| String | required |
base class | class1 | The character's initial class. If the campaign started at level 1, this should be the class at the beginning of the campaign.
| String | required |
base class level | class1lv | The number of levels of the initial class taken.
| Number | required |
strength | str | The character's full Strength ability score.
| Number | required |
dexterity | dex | The character's full Dexterity ability score.
| Number | required |
constitution | con | The character's full Constitution ability score.
| Number | required |
intelligence | int | The character's full Intelligence ability score.
| Number | required |
wisdom | wis | The character's full Wisdom ability score.
| Number | required |
charisma | cha | The character's full Charisma ability score.
| Number | required |
armor class | ac | The character's Armor Class, including all bonuses.
| Number | required |
hit points | hp | The character's maximum hit points.
| Number | required |
initiative | init | The character's initiative bonus, including all bonuses. Do not include "+" in positive values.
| Number | required |
float direction | float | Direction to float the display. Values should be "left", "right", or omitted
| String | optional |
avatar image | avatar | Filename for an image to display as the character's avatar.
| String | optional |
first multiclass | class2 | If the character takes levels of additional classes, set one to this value. Required if class2lv is set.
| String | optional |
first multiclass level | class2lv | If the character takes levels of additional classes, set the level of the first one to this value. Required if class2 is set.
| Number | optional |
seconds multiclass | class3 | If the character takes levels of additional classes, set one to this value. Required if class3lv is set.
| String | optional |
second multiclass level | class3lv | If the character takes levels of additional classes, set the level of the second one to this value. Required if class3 is set.
| Number | optional |
third multiclass | class4 | If the character takes levels of additional classes, set one to this value. Required if class4lv is set.
| String | optional |
third multiclass level | class4lv | If the character takes levels of additional classes, set the level of the third one to this value. Required if class4 is set.
| Number | optional |
fourth multiclass | class5 | If the character takes levels of additional classes, set one to this value. Required if class5lv is set.
| String | optional |
fourth multiclass level | class5lv | If the character takes levels of additional classes, set the level of the fourth one to this value. Required if class5 is set.
| Number | optional |
Example
This template should not be called directly. Instead, you should call Template:ddbeyond and pass small=true
as a parameter. The rest of the parameters above are named identically.
{{ddbeyond|small=true|float=right |avatar=tabaxi-demo.jpg |name=Example character |race=Tabaxi |class1=Barbarian |class1lv=5 |class2=Monk |class2lv=5 |str=10 |dex=20 |con=10 |int=10 |wis=15 |cha=12 |ac=19 |hp=65 |init=5}}