Difference between revisions of "Template:Wikitable"

From Dragalia Lost Wiki
Jump to navigation Jump to search
>Canim44
(Creating Template:Wikitable)
 
>Canim44
m (Added doc to main page)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
<noinclude>{{doc}}[[Category:Templates]]</noinclude>
 
{{#invoke:wikitable|main}}
 
{{#invoke:wikitable|main}}

Latest revision as of 20:06, 14 May 2019

50px Documentation

Usage

This module[1] is designed to make passing tables to templates less of a hassle.

Often time, adding wikitable markup to a template or other parser tag generates gibberish when one fails to escape every | and =. Moreover, escaping pipe characters with {{!}} 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, = for <table> 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 |- is omitted before the first row)