Module:Wikitable/doc

&#x3c;!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see Wikidata) --&#x3e;

Usage
This is designed to make passing tables to templates less of a hassle. &#x3c;noinclude&#x3e;It implements wikitable&#x3c;/noinclude&#x3e;

Oftentimes, adding wikitable markup to a template or other parser tag generates gibberish when one fails to escape every &#x3c;code&#x3e;|&#x3c;/code&#x3e; and &#x3c;code&#x3e;=&#x3c;/code&#x3e;. Moreover, escaping pipe characters with &#x3c;code&#x3e;!&#x3c;/code&#x3e; everywhere can make for some rather ugly-looking markup.

With this module, most wikitables can be embedded into templates without escaping any pipe characters. Also, &#x3c;code&#x3e;=&#x3c;/code&#x3e; for element attributes do not need to be escaped, however, for individual rows and cells, such is still necessary. Finally, there must be at least one pipe character before the first header cell (only an issue if &#x3c;code&#x3e;|-&#x3c;/code&#x3e; is omitted before the first row)

See Differences: {| class=wikitable
 * style="vertical-align:top"|original (copied from: 2016 Summer Olympics):

code: &#x3c;syntaxhighlight lang="moin" highlight="1"&#x3e;

&#x3c;/syntaxhighlight&#x3e;
 * style="vertical-align:top"|module:

code (with changes highlighted):
 * }