Template:Escape template list/doc: Difference between revisions

ArrowHead294 (talk | contribs)
mNo edit summary
ArrowHead294 (talk | contribs)
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 9: Line 9:
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.
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:
The following example shows an instance of including a Wikitable within another Wikitable. This markup:


<pre<includeonly/>>
<pre<includeonly />>
<nowiki>{| class="wikitable" style="text-align: center;"
<nowiki>{| class="wikitable" style="text-align: center;"
|+ style="font-size: 105%;" | Caption text
|+ style="font-size: 105%;" | Caption text
Line 21: Line 21:
| Example 3 || Example 4
| Example 3 || Example 4
|-
|-
| colspan="2" |</nowiki> {{tlx|(!|plaincode}} class{{tlx|{{=}}|plaincode}}"wikitable" style{{tlx|{{=}}|plaincode}}"text-align: center;"
| colspan="2" | </nowiki>{{tlx|(!|plaincode}} class{{tlx|{{=}}|plaincode}}"wikitable" style{{tlx|{{=}}|plaincode}}"text-align: center;"
{{tlx|!+|plaincode}} style{{tlx|{{=}}|plaincode}}"font-size: 105%;" {{tlx|!|plaincode}} Caption text
{{tlx|!+|plaincode}} style{{tlx|{{=}}|plaincode}}"font-size: 105%;" {{tlx|!|plaincode}} Caption text
{{tlx|!-|plaincode}}
{{tlx|!-|plaincode}}
Line 30: Line 30:
{{tlx|!|plaincode}} Example 7 {{tlx|!!|plaincode}} Example 8
{{tlx|!|plaincode}} Example 7 {{tlx|!!|plaincode}} Example 8
{{tlx|!)|plaincode}}
{{tlx|!)|plaincode}}
|}
<nowiki>|}</nowiki>
</pre>
</pre>