Difference between revisions of "Template:BWCharacterSheet/Abilities/AbilityRow"

From West Of Vipers Gate
m (1 revision imported)
m
Line 2: Line 2:
 
{{#if:{{{section_count|}}}|<th rowspan="{{{section_count|}}}">{{{section_label}}}</th>}}
 
{{#if:{{{section_count|}}}|<th rowspan="{{{section_count|}}}">{{{section_label}}}</th>}}
 
<th>{{{1}}}</th>
 
<th>{{{1}}}</th>
<td>{{{2}}}</td>
+
<td class="{{{2}}}">{{{2}}}</td>
 
{{#if:{{{section_count|}}}|<td rowspan="{{{section_count|}}}" style="padding: 2px;" />}}
 
{{#if:{{{section_count|}}}|<td rowspan="{{{section_count|}}}" style="padding: 2px;" />}}
<td>{{{3}}}</td>
+
<td style="color: rgba(0,0,0,{{FractionFade| {{{3}}} }} );">{{{3}}}</td>
<td>{{{4}}}</td>
+
<td style="color: rgba(0,0,0,{{FractionFade| {{{4}}} }} );">{{{4}}}</td>
<td>{{{5}}}</td>
+
<td style="color: rgba(0,0,0,{{FractionFade| {{{5}}} }} );">{{{5}}}</td>
 
{{#if:{{{section_count|}}}|<td rowspan="{{{section_count|}}}" style="padding: 2px;" />}}
 
{{#if:{{{section_count|}}}|<td rowspan="{{{section_count|}}}" style="padding: 2px;" />}}
<td>{{{6}}}</td>
+
<td style="color: rgba(0,0,0,{{FractionFade| {{{6}}} }} );">{{{6}}}</td>
<td>{{{7}}}</td>
+
<td style="color: rgba(0,0,0,{{FractionFade| {{{7}}} }} );">{{{7}}}</td>
<td>{{{8}}}</td>
+
<td style="color: rgba(0,0,0,{{FractionFade| {{{8}}} }} );">{{{8}}}</td>
 
</tr></includeonly><noinclude>
 
</tr></includeonly><noinclude>
 
== Usage ==
 
== Usage ==

Revision as of 20:49, 5 October 2021

Usage

{{BWCharacterSheet/AbilitiyRow|name|dice|routine|difficult|challenging|fate|persona|deeds|section_count=|section_label=}}

The first parameter is the ability name, the second is the dice string (e.g. "B5"). The remaining positional parameters should be numbers. All positional parameters are required.

section_count and section_label are optional - they should be used in the first row of a section to give the number of rows in the section and the section label; omitting section_count from the first row or including it in any other row will cause the table to break.