Jump to content

Module:Wikitable/doc

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Codehydro (talk | contribs) at 20:25, 30 July 2017 (draft). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

Usage

This module 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)

2016 Summer Olympics bidding results[1]
City NOC Round 1 Round 2 Round 3
Rio de Janeiro  Brazil 26 46 66
Madrid  Spain 28 29 32
Tokyo  Japan 22 20
Chicago  United States 18


  1. ^ "Past Bid Results". GamesBids.com. Archived from the original on 17 March 2011. Retrieved 31 October 2015. {{cite web}}: Unknown parameter |deadurl= ignored (|url-status= suggested) (help)