Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Numinix MediaWiki Demo
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Help/Templates
(section)
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== Tables in parameters === <!--T:227--> <!--T:240--> Since the pipe character (<tvar name=1><code>|</code></tvar>) and equality sign (<tvar name=2><code>=</code></tvar>) have different meanings in template calls and wikitables, in order to use table markup in the value of a template parameter one generally needs to "escape" those characters (i.e., protect them from interpretation as template markup) using special sequences: </translate> * <translate><!--T:255--> the built-in <tvar name="2"><code><nowiki></nowiki></code></tvar> provides an "escaped" version of <tvar name="3"><code>|</code></tvar> since MediaWiki 1.24</translate> * <translate><!--T:242--> the built-in magic word <tvar name="1"><code><nowiki></nowiki></code></tvar> provides an "escaped" version of <tvar name="2"><code>=</code></tvar> since MediaWiki 1.39</translate> <translate><!--T:251--> Before the introduction of these magic words, many wikis used templates to accomplish the same things.</translate> <translate><!--T:252--> On such a wiki, the magic words take precendence over the same-named templates.</translate> <translate> ====Example table==== <!--T:243--> </translate> {| class=wikitable !A!!B!!C |- |A1||B1||C1 |- |A2||B2||C1 |} '''<translate><!--T:244--> Table code:</translate>''' <syntaxhighlight lang=wikitext> {| class=wikitable !A!!B!!C |- |A1||B1||C1 |- |A2||B2||C1 |} </syntaxhighlight> '''<translate><!--T:245--> Escaped table code:</translate>''' <syntaxhighlight lang=wikitext> classwikitable !A!!B!!C - A1B1C1 - A2B2C2 } </syntaxhighlight> <translate><!--T:246--> Note that the first left-brace (<tvar name="1"><code>{</code></tvar>) is interpreted as a literal left-brace character because it is immediately followed by the <tvar name="2"><code><nowiki></nowiki></code></tvar> magic word.</translate> <translate><!--T:247--> Similarly, the last right-brace (<tvar name="1"><code>}</code></tvar>) is interpreted as a literal right-brace character because it is immediately preceeded by the same magic word.</translate> <translate><!--T:248--> However, in some cases these brace characters do cause problems, so some wikis provide templates for escaping these characters, as well:</translate> * <translate><!--T:249--> the template call <tvar name="1"><code><nowiki></nowiki></code></tvar> might provide an "escaped" version of <tvar name="2"><code>{</code></tvar></translate> * <translate><!--T:250--> the template call <tvar name="1"><code><nowiki></nowiki></code></tvar> might provide an "escaped" version of <tvar name="2"><code>}</code></tvar></translate> <translate><!--T:253--> Some wikis go even further and provide other convenience templates like <tvar name="1"> (<code><nowiki>{|</nowiki></code>), (<code>|}</code>), (<code>||</code>)</tvar>.</translate> <translate><!--T:254--> On such a wiki, the code can be simplified a bit to this form:</translate> <syntaxhighlight lang=wikitext> classwikitable !A!!B!!C - A1B1C1 - A2B2C2 </syntaxhighlight> <translate>
Summary:
Please note that all contributions to Numinix MediaWiki Demo may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Project:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)