Difference between revisions of "Qtable00"

From arguably.io
Jump to navigation Jump to search
Line 4: Line 4:
* 2023.07.13
* 2023.07.13
* table 00
* table 00
 
{| class=wikitable
\placetable{Caption}
  {{ #if:1|{{!}}-                     <!-- Row one will be shown because the '1' evaulates to TRUE -->
{\bTABLE
            !  row one, column one
\bTR \bTD One \eTD \bTD two \eTD \eTR
          {{!}}row one, column two <!-- {{!}}'s get evaluated to the pipe character '|', i.e. template:! just contains '|' -->
\bTR \bTD One \eTD \bTD two \eTD \eTR
  {{ #if: |{{!}}-                    <!-- Row two NOT shown because the space between the ':' and the '|' evaluates to FALSE  -->
\eTABLE}
            !  row two, column one
 
          {{!}}row two, column two}}
This is our red-coloured table.
   |-                                  <!-- Row three will be shown -->
\setupcolors[state=start]
            ! row three, column one
 
            | row three, column two
\setupTABLE[row][odd][background=color,backgroundcolor=red, width=.2\textwidth]
|}
\bTABLE[split=yes] % allow splitting over page boundaries
  \bTR \bTD[nr=3] 1 \eTD \bTD[nc=2] 2/3    \eTD \bTD[nr=3] 4 \eTD \eTR
  \bTR                  \bTD 2 \eTD \bTD 3 \eTD                  \eTR
   \bTR                  \bTD 2 \eTD \bTD 3 \eTD                  \eTR
  \bTR \bTD[nc=3] 1/2/3                    \eTD \bTD 4 \eTD      \eTR
  \bTR \bTD 1      \eTD \bTD 2 \eTD \bTD 3 \eTD \bTD 4 \eTD      \eTR
\eTABLE

Revision as of 03:37, 14 July 2023

ScratchPad Page.

Table definitions.

  • 2023.07.13
  • table 00
{{ #if:1||-
row one, column one row one, column two
 {{ #if: ||-                     
row two, column one row two, column two}}
row three, column one row three, column two