From GamingWiki
(5 intermediate revisions by the same user not shown) | |||
Line 7: | Line 7: | ||
HEADER | HEADER | ||
− | If there is a header, we create a full-width TH tag. | + | If there is a header specified, we create a full-width TH tag. |
− | -->{{#if:{{{header|}}}|<nowiki /> | + | -->{{#if:{{{header<includeonly>|</includeonly>}}}|<nowiki /> |
! colspan="{{#var:columns}}" {{!}} {{{header}}} | ! colspan="{{#var:columns}}" {{!}} {{{header}}} | ||
}}<!-- | }}<!-- | ||
+ | |||
SUBHEAD | SUBHEAD | ||
Line 20: | Line 21: | ||
-->}}<!-- | -->}}<!-- | ||
-->{{#vardefine: subheadcols | <!-- | -->{{#vardefine: subheadcols | <!-- | ||
− | -->{{#ifeq: {{{subhead|M_NUL}}} | M_NUL |0| {{#expr:{{#var:columns}}-{{#var:rheadcols}}}} }}<!-- | + | -->{{#ifeq: {{{subhead|<includeonly>M_NUL</includeonly>}}} | M_NUL |0| {{#expr:{{#var:columns}}-{{#var:rheadcols}}}} }}<!-- |
-->}}<!-- | -->}}<!-- | ||
+ | -->{{#if:{{{header<includeonly>|</includeonly>}}}|{{Character sheet/section subhead|{{{header}}}| columns = {{#var:columns}} }} }}<!-- | ||
-->{{#ifeq: {{#var:subheadcols}} |0| |<nowiki /> | -->{{#ifeq: {{#var:subheadcols}} |0| |<nowiki /> | ||
{{!}}- | {{!}}- | ||
Line 90: | Line 92: | ||
Here we're assuming there are 6 columns total. | Here we're assuming there are 6 columns total. | ||
@todo remove this assumption | @todo remove this assumption | ||
− | -->{{#vardefine:groupcols| | + | -->{{#vardefine:groupcols|<!-- |
− | --> | + | -->{{#switch: {{#var:groupcount}} | 1 = 6 | 2 = 3 | 3 = 2 | 6 }}<!-- |
-->}}<!-- | -->}}<!-- | ||
− | + | ||
-->{{#vardefine: llabelcols | {{#ifeq: {{#hashvalue: thedataline | llabel |M_NUL}} | M_NUL | 0 | 1 }} }}<!-- | -->{{#vardefine: llabelcols | {{#ifeq: {{#hashvalue: thedataline | llabel |M_NUL}} | M_NUL | 0 | 1 }} }}<!-- | ||
-->{{#vardefine: labelcols | {{#ifeq: {{#hashvalue: thedataline | label |M_NUL}} | M_NUL | 0 | 1 }} }}<!-- | -->{{#vardefine: labelcols | {{#ifeq: {{#hashvalue: thedataline | label |M_NUL}} | M_NUL | 0 | 1 }} }}<!-- | ||
Line 116: | Line 118: | ||
-->{{#ifeq: {{#var: llabelcols}} | 0 | |<nowiki /> | -->{{#ifeq: {{#var: llabelcols}} | 0 | |<nowiki /> | ||
− | {{!}} class="{{#hashvalue: thedataline | labelclass | shaded}} {{#hashvalue: thedataline | llabelclass }} llabel" {{!}} {{#hashvalue: thedataline | llabel }} <!-- | + | {{!}} class="{{#hashvalue: thedataline | labelclass | shaded}} {{#hashvalue: thedataline | llabelclass }} llabel" <!-- |
+ | --> {{!}} {{#hashvalue: thedataline | llabel }} <!-- | ||
-->}}<!-- | -->}}<!-- | ||
-->{{#ifeq: {{#var: ldatacols}} | 0 | |<nowiki /> | -->{{#ifeq: {{#var: ldatacols}} | 0 | |<nowiki /> | ||
− | {{!}} class="{{#hashvalue: thedataline|dataclass|}} {{#hashvalue: thedataline | ldataclass }} ldata" {{!}} {{#hashvalue: thedataline | ldata }} <!-- | + | {{!}} class="{{#hashvalue: thedataline|dataclass|}} {{#hashvalue: thedataline | ldataclass }} ldata" <!-- |
+ | --> colspan="{{#var:ldatacols}}" <!-- | ||
+ | --> {{!}} {{#hashvalue: thedataline | ldata }} <!-- | ||
-->}}<!-- | -->}}<!-- | ||
− | -->{{#ifeq: {{#var: labelcols}} | | + | -->{{#ifeq: {{#var: clabelcols}}{{#var: labelcols}} | 00 | |<nowiki /> |
− | {{!}} class="{{#hashvalue: thedataline | labelclass | shaded}} {{#hashvalue: thedataline | clabelclass }} clabel" {{!}} {{#hashvalue: thedataline | label }}{{#hashvalue: thedataline | clabel }} <!-- | + | {{!}} class="{{#hashvalue: thedataline | labelclass | shaded}} {{#hashvalue: thedataline | clabelclass }} clabel" <!-- |
+ | --> {{!}} {{#hashvalue: thedataline | label }}{{#hashvalue: thedataline | clabel }} <!-- | ||
-->}}<!-- | -->}}<!-- | ||
− | --><nowiki /> | + | -->{{#ifeq: {{#var: cdatacols}} | 0 |<!-- |
− | {{!}} class="{{#hashvalue: thedataline|dataclass|}} {{#hashvalue: thedataline | cdataclass }} cdata" colspan="{{#var:datacols}}" {{!}} {{#hashvalue: thedataline | data }}{{#hashvalue: thedataline | cdata }} <!-- | + | -->{{#ifeq: {{#var: datacols}} | 0 | |<nowiki /> |
+ | {{!}} class="{{#hashvalue: thedataline|dataclass|}} {{#hashvalue: thedataline | cdataclass }} cdata" <!-- | ||
+ | --> colspan="{{#var:datacols}}" <!-- | ||
+ | --> {{!}} {{#hashvalue: thedataline | data }}{{#hashvalue: thedataline | cdata }} <!-- | ||
+ | -->}}<!-- | ||
+ | --> |<nowiki /> | ||
+ | {{!}} class="{{#hashvalue: thedataline|dataclass|}} {{#hashvalue: thedataline | cdataclass }} cdata" <!-- | ||
+ | --> colspan="{{#var:cdatacols}}" <!-- | ||
+ | --> {{!}} {{#hashvalue: thedataline | data }}{{#hashvalue: thedataline | cdata }} <!-- | ||
+ | -->}}<!-- | ||
-->{{#ifeq: {{#var: rlabelcols}} | 0 | |<nowiki /> | -->{{#ifeq: {{#var: rlabelcols}} | 0 | |<nowiki /> | ||
− | {{!}} class="{{#hashvalue: thedataline | labelclass | shaded}} {{#hashvalue: thedataline | rlabelclass }} rlabel" {{!}} {{#hashvalue: thedataline | rlabel }} <!-- | + | {{!}} class="{{#hashvalue: thedataline | labelclass | shaded}} {{#hashvalue: thedataline | rlabelclass }} rlabel" <!-- |
+ | --> {{!}} {{#hashvalue: thedataline | rlabel }} <!-- | ||
-->}}<!-- | -->}}<!-- | ||
-->{{#ifeq: {{#var: rdatacols}} | 0 | |<nowiki /> | -->{{#ifeq: {{#var: rdatacols}} | 0 | |<nowiki /> | ||
− | {{!}} class="{{#hashvalue: thedataline|dataclass|}} {{#hashvalue: thedataline | rdataclass }} rdata" {{!}} {{#hashvalue: thedataline | rdata }} <!-- | + | {{!}} class="{{#hashvalue: thedataline|dataclass|}} {{#hashvalue: thedataline | rdataclass }} rdata" <!-- |
+ | --> colspan="{{#var:rdatacols}}" <!-- | ||
+ | --> {{!}} {{#hashvalue: thedataline | rdata }} <!-- | ||
-->}}<!-- | -->}}<!-- | ||
Latest revision as of 01:49, 22 August 2014
{{{header}}} | |||||
---|---|---|---|---|---|
{{{subhead}}} |