This site is supported by donations to The OEIS Foundation.

Template:!!

From OeisWiki
Jump to: navigation, search

The {{!!}} workaround template gives || (two vertical pipes). Usually, it is necessary when placing wiki tables within templates or parser functions, where typing || directly would break the table.

Usage

{{!!}}

Examples

The code (using {{!-}})

{{#if: {{{1|defined}}} |
<!--== Wikitable color scheme is: [background: #f2f2f2; for table header] [background: #f9f9f9; for table cells] ==--> 
{{{!}} class="wikitable sortable collapsible" align="center" border="1" cellspacing="0" cellpadding="4" style="margin-left: 2em; border-collapse: collapse; border: 1px solid darkgray; background: #f9f9f9; color: black; empty-cells: show; text-align: center;"
{{!}}+ Table generated within a template or parser function
{{!-}} style="background: #f2f2f2; color: black; text-align: center;"
! width="50" {{!}} 
! scope="col" width="150" {{!}} Column 1
! scope="col" width="100" {{!}} Column 2
! scope="col" width="150" {{!}} Column 3
! scope="col" width="100" {{!}} Column 4
! scope="col" width="150" {{!}} Column 5
{{!-}}
! scope="row" style="background: #f2f2f2; color: black;" {{!}} Row a 
{{!}} a1   {{!!}} a2   {{!!}} a3   {{!!}} a4   {{!!}} a5
{{!-}}
! scope="row" style="background: #f2f2f2; color: black;" {{!}} Row b 
{{!}} b1   {{!!}} b2   {{!!}} b3   {{!!}} b4   {{!!}} b5
{{!-}}
! scope="row" style="background: #f2f2f2; color: black;" {{!}} Row c
{{!}} c1   {{!!}} c2   {{!!}} c3   {{!!}} c4   {{!!}} c5
{{!-}}
! scope="row" style="background: #f2f2f2; color: black;" {{!}} Row d 
{{!}} d1   {{!!}} d2   {{!!}} d3   {{!!}} d4   {{!!}} d5
{{!-}}
{{!}}}
}}

gives

Table generated within a template or parser function
Column 1 Column 2 Column 3 Column 4 Column 5
Row a a1 a2 a3 a4 a5
Row b b1 b2 b3 b4 b5
Row c c1 c2 c3 c4 c5
Row d d1 d2 d3 d4 d5

The code (using {{!}}-)

{{#if: {{{1|defined}}} |
<!--== Wikitable color scheme is: [background: #f2f2f2; for table header] [background: #f9f9f9; for table cells] ==--> 
{{{!}} class="wikitable sortable collapsible" align="center" border="1" cellspacing="0" cellpadding="4" style="margin-left: 2em; border-collapse: collapse; border: 1px solid darkgray; background: #f9f9f9; color: black; empty-cells: show; text-align: center;"
{{!}}+ Table generated within a template or parser function
{{!}}- style="background: #f2f2f2; color: black; text-align: center;"
! width="50" {{!}} 
! scope="col" width="150" {{!}} Column 1
! scope="col" width="100" {{!}} Column 2
! scope="col" width="150" {{!}} Column 3
! scope="col" width="100" {{!}} Column 4
! scope="col" width="150" {{!}} Column 5
{{!}}-
! scope="row" style="background: #f2f2f2; color: black;" {{!}} Row a 
{{!}} a1   {{!!}} a2   {{!!}} a3   {{!!}} a4   {{!!}} a5
{{!}}-
! scope="row" style="background: #f2f2f2; color: black;" {{!}} Row b 
{{!}} b1   {{!!}} b2   {{!!}} b3   {{!!}} b4   {{!!}} b5
{{!}}-
! scope="row" style="background: #f2f2f2; color: black;" {{!}} Row c
{{!}} c1   {{!!}} c2   {{!!}} c3   {{!!}} c4   {{!!}} c5
{{!}}-
! scope="row" style="background: #f2f2f2; color: black;" {{!}} Row d 
{{!}} d1   {{!!}} d2   {{!!}} d3   {{!!}} d4   {{!!}} d5
{{!}}-
{{!}}}
}}

gives

Table generated within a template or parser function
Column 1 Column 2 Column 3 Column 4 Column 5
Row a a1 a2 a3 a4 a5
Row b b1 b2 b3 b4 b5
Row c c1 c2 c3 c4 c5
Row d d1 d2 d3 d4 d5

See also

  • {{((}} to get {{ (non wiki parsed double opening braces)
  • {{=}} to get = (non wiki parsed equal sign)
  • {{))}} to get }} (non wiki parsed double closing braces)


  • {{hash}} to get # (non wiki parsed hash symbol)
  • {{*}} to get * (non wiki parsed standard [high] asterisk) (if you want a low asterisk, i.e. instead of *, use {{sym|lowast}})
  • {{colon}} to get : (non wiki parsed colon)
  • {{;}} to get ; (non wiki parsed semicolon)


  • {{(!}} to get {|   (start of a wiki table) DOES NOT WORK (AS THE START OF A WIKI TABLE)! Use {{{!}} instead (note the extra { on the left).
  • {{!}}+ to get |+   (new header row of a wiki table)
  • {{!}}- to get |- or {{!-}} to get |-   (new row of a wiki table)
  • {{!}} to get |   (new row entry, on a new line, of a wiki table)
  • {{!!}} to get ||   (new row entry, on same line, of a wiki table)
  • {{!)}} to get |}   (end of a wiki table) DOES NOT WORK (AS THE END OF A WIKI TABLE)! Use {{!}}} instead (note the extra } on the right).

External links