Template:Escape template list/doc: Difference between revisions
Jump to navigation
Jump to search
ArrowHead294 (talk | contribs) mNo edit summary |
ArrowHead294 (talk | contribs) m →Usage |
||
Line 18: | Line 18: | ||
| colspan="2" | | | colspan="2" | | ||
{{(!}} class{{=}}"wikitable" style{{=}}"text-align: center;" | {{(!}} class{{=}}"wikitable" style{{=}}"text-align: center;" | ||
{{!+}} style="font-size: 105%;" {{!}} Caption text | {{!+}} style{{=}}"font-size: 105%;" {{!}} Caption text | ||
{{!-}} | {{!-}} | ||
! Header text !! Header text | ! Header text !! Header text |
Revision as of 13:22, 25 January 2025
Usage
These templates are used to escape special character sequences, so that they are interpreted later than they would otherwise be. They are most useful when trying to include tables within other tables or templates.
For example, to include a table within another table:
{| class="wikitable" style="text-align: center;" |+ style="font-size: 105%;" | Caption text |- ! Header text !! Header text |- | Example 1 || Example 2 |- | Example 3 || Example 4 |- | colspan="2" | {{(!}} class{{=}}"wikitable" style{{=}}"text-align: center;" {{!+}} style{{=}}"font-size: 105%;" {{!}} Caption text {{!-}} ! Header text !! Header text {{!-}} {{!}} Example 5 {{!!}} Example 6 {{!-}} {{!}} Example 7 {{!!}} Example 8 {{!)}} |}
gives:
Header text | Header text | ||||||
---|---|---|---|---|---|---|---|
Example 1 | Example 2 | ||||||
Example 3 | Example 4 | ||||||
|