Template:!)/doc

From Saintapedia
< Template:!)
Revision as of 11:11, 13 November 2013 by >Rusty.perrin (Replace spaces with non-break spaces)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Template:!) on Wikipedia

Usage

The {{(!}}, {{!}}, and {{!)}} templates produce table codes for {| (start of wiki table), | (new cell in wikitable), and |} (end of wikitable) sequences, so that wikitables can be built inside templates without vertical bar ( | ) characters interfering with template parser functions.

There is also a {{!-}} template to produce |- code for a new row in a table, but you can also use {{!}}- to achieve the same thing.

Example

The following code within a template would result in table coding where the vertical bar (|) characters don't interfere with any parser functions that the table falls within.

What you put in the template Works like you would normally expect this code to work Resulting table
{{(!}} class=wikitable
! Column header 1 !! Column header 2
{{!}}-
{{!}} Table content
{{!}} Table content
{{!)}}
{| class=wikitable
! Column header 1 !! Column header 2
|-
| Table content
| Table content
|}
Column header 1 Column header 2
Table content Table content