From GamingWiki
Line 49: | Line 49: | ||
-->{{#hashprint: datalinehash || %%%% | @@@@ | <!-- | -->{{#hashprint: datalinehash || %%%% | @@@@ | <!-- | ||
-->{{#hashdefine: thedataline | @@@@ | ,css, | ;css; }}<!-- | -->{{#hashdefine: thedataline | @@@@ | ,css, | ;css; }}<!-- | ||
− | |||
− | |||
The width of the data cell depends on the presence of a label | The width of the data cell depends on the presence of a label | ||
and/or an rdata | and/or an rdata | ||
− | -->{{#vardefine: labelcols | {{#ifeq: {{#hashvalue: thedataline | label }} | M_NUL | 0 | 1 }} }}<!-- | + | -->{{#vardefine: labelcols | {{#ifeq: {{#hashvalue: thedataline | label |M_NUL}} | M_NUL | 0 | 1 }} }}<!-- |
− | -->{{#vardefine: rdatacols | {{#ifeq: {{#hashvalue: thedataline | rdata }} || 0 | 1 }} }}<!-- | + | -->{{#vardefine: rdatacols | {{#ifeq: {{#hashvalue: thedataline | rdata |M_NUL}} | M_NUL | 0 | 1 }} }}<!-- |
-->{{#vardefine: datacols | {{#expr:{{#var:columns}}-{{#var:labelcols}}-{{#var:rdatacols}}}} }}<!-- | -->{{#vardefine: datacols | {{#expr:{{#var:columns}}-{{#var:labelcols}}-{{#var:rdatacols}}}} }}<!-- | ||
+ | -->{{#ifeq:{{#hashvalue: thedataline | data }}-{{#var:labelcols}}-{{#var:rdatacols}}|-0-0||<!-- | ||
− | + | --><nowiki /> | |
+ | {{!}}- <!-- | ||
+ | |||
+ | -->{{#ifeq: {{#var: labelcols | 0 ||<nowiki /> | ||
{{!}} class="{{#hashvalue: thedataline | labelclass | shaded}}" {{!}} {{#hashvalue: thedataline | label }} <!-- | {{!}} class="{{#hashvalue: thedataline | labelclass | shaded}}" {{!}} {{#hashvalue: thedataline | label }} <!-- | ||
− | + | -->}}<!-- | |
− | + | --><nowiki /> | |
{{!}} class="{{#hashvalue: thedataline|dataclass|}}" colspan="{{#var:datacols}}" {{!}} {{#hashvalue: thedataline | data }} <!-- | {{!}} class="{{#hashvalue: thedataline|dataclass|}}" colspan="{{#var:datacols}}" {{!}} {{#hashvalue: thedataline | data }} <!-- | ||
− | + | -->{{#ifeq: {{#var: rdatacols | 0 ||<nowiki /> | |
{{!}} class="{{#hashvalue: thedataline|dataclass|}}" {{!}} {{#hashvalue: thedataline | rdata }} <!-- | {{!}} class="{{#hashvalue: thedataline|dataclass|}}" {{!}} {{#hashvalue: thedataline | rdata }} <!-- | ||
+ | -->}}<!-- | ||
-->}}<!-- | -->}}<!-- | ||
− | |||
-->{{#hashreset: thedataline }}<!-- | -->{{#hashreset: thedataline }}<!-- | ||
-->| datalinekeys }}<!-- | -->| datalinekeys }}<!-- |