Template:!)/doc: Difference between revisions
>Rusty.perrin m (Replace spaces with non-break spaces) |
(No difference)
|
Revision as of 11:11, 13 November 2013
|
|
This is a documentation subpage for Template:!)
(see that page for the template itself). It contains usage information, categories, and other content that is not part of the original template page. |
|
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
|}
|
|