From GamingWiki
Jump to: navigation, search
Line 29: Line 29:
  
 
   DATA
 
   DATA
 
If there is no label, the data takes up the whole line.
 
  
 
-->{{#hashdefine: datalinehash }}<!--
 
-->{{#hashdefine: datalinehash }}<!--
Line 53: Line 51:
 
   --><nowiki />
 
   --><nowiki />
 
{{!}}- <!--
 
{{!}}- <!--
   -->{{#ifeq: {{#hashvalue: thedataline | label }} | M_NUL |<nowiki />
+
 
{{!}} class="{{#hashvalue: thedataline | dataclass |}}" colspan="{{#var:columns}}"    {{!}} <!--
+
  The width of the data cell depends on the presence of a label
   -->|<nowiki />
+
  and/or an rdata
{{!}} class="{{#hashvalue: thedataline | labelclass | shaded}}" {{!}} {{#hashvalue: thedataline | label }}
+
   -->{{#vardefine: labelcols | {{#ifeq: {{#hashvalue: thedataline | label }} | M_NUL | 0 | 1 }}<!--
{{!}} class="{{#hashvalue: thedataline | dataclass |}}" colspan="{{#expr:{{#var:columns}}-1}}"   {{!}} <!--
+
  -->{{#vardefine: rdatacols | {{#ifeq: {{#hashvalue: thedataline | rdata }} | M_NUL | 0 | 1 }}<!--
 +
  -->{{#vardefine: datacols  | {{#expr:{{#var:columns}}-{{#var:labelcols}}-{{#var:rdatacols}}}} }}<!--
 +
 
 +
   -->{{#ifeq: {{#var: labelcols | 0 ||<nowiki />
 +
{{!}} class="{{#hashvalue: thedataline | labelclass | shaded}}" {{!}} {{#hashvalue: thedataline | label }} <!--
 +
  -->}}<!--
 +
 
 +
  --><nowiki />
 +
{{!}} class="{{#hashvalue: thedataline|dataclass|}}" colspan="{{#var:datacols}}" {{!}} {{#hashvalue: thedataline | data }} <!--
 +
 
 +
  -->{{#ifeq: {{#var: rdatacols | 0 ||<nowiki />
 +
{{!}} class="{{#hashvalue: thedataline|dataclass|}}" {{!}} {{#hashvalue: thedataline | rdata }} <!--
 
   -->}}<!--
 
   -->}}<!--
  -->{{#hashvalue: thedataline | data  }} <!--
+
 
 
   -->{{#hashreset: thedataline }}<!--
 
   -->{{#hashreset: thedataline }}<!--
 
-->| datalinekeys }}<!--
 
-->| datalinekeys }}<!--

Revision as of 22:05, 28 February 2011