Benjamin/Template001: Difference between revisions

From Tripwire Interactive Wiki
Jump to navigation Jump to search
(Created page with "{| style="width:300px; text-align:center; border:1px solid black;background-color:#E5EECC;" | Greetings {{ #if:{{{P1|}}}|{{!}}- {{{P1}}} }} |- | B |- | B |}")
 
mNo edit summary
Line 1: Line 1:
{| style="width:300px; text-align:center; border:1px solid black;background-color:#E5EECC;"
{| class="wikitable" border="1"
| Greetings
<!--
{{ #if:{{{P1|}}}|{{!}}-
  Row one will be shown because the '1' evaluates
   {{{P1}}}
  to TRUE.
}}
-->
|-
{{ #if:1|{{!}}-
| B
  ! scope="row" {{!}} row one, column one
|-
  <!--
| B
  Any {{!}}'s will get evaluated to the pipe
  character '|' since the template '!' just
  contains '|'.
  -->
  {{!}}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:34, 6 October 2012

row one, column one row one, column two
row three, column one row three, column two