Benjamin/Template001: Difference between revisions

From Tripwire Interactive Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
{| class="wikitable" border="1"
{| class="wikitable" border="1"
<!--
 
  Row one will be shown because the '1' evaluates
  to TRUE.
-->
  {{ #if:{{{P1|}}}|{{!}}-
  {{ #if:{{{P1|}}}|{{!}}-
   ! scope="row" {{!}} row one, column one
   ! scope="row" {{!}} row one, column one
  <!--
 
  Any {{!}}'s will get evaluated to the pipe
  character '|' since the template '!' just
  contains '|'.
  -->
   {{!}}row one, column two}}
   {{!}}row one, column two}}
<!--
  Row two will NOT be shown because the space
  between the ':' and the '|' evaluates to FALSE.
-->
{{ #if: |{{!}}-
  ! scope="row" {{!}}  row two, column one
  {{!}}row two, column two}}
<!--
  Row three will be shown.
-->
|-
  ! scope="row" {{!}} row three, column one
  | row three, column two
|}
|}

Revision as of 23:37, 6 October 2012