Template:Wikitable/sandbox
![]() | __EXPECTUNUSEDTEMPLATE__This is the template sandbox page for Template:Wikitable (diff). |
![]() | This template uses Lua: |
Usage
This template is designed to make passing tables to templates less of a hassle.
Oftentimes, 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)
original (copied from: 2016 Summer Olympics):
code: <syntaxhighlight lang="wikitext" highlight="1">
</syntaxhighlight> |
module:
code (with changes highlighted):[[:Module talk:Wikitable/example]] |
Sources cited in example
- ^ "Past Bid Results". GamesBids.com. Archived from the original on 17 March 2011. Retrieved 31 October 2015.
- ^ "Past Bid Results". GamesBids.com. Archived from the original on 17 March 2011. Retrieved 31 October 2015.
See also
- {{Table}}