User:Ganaram inukshuk/Provisional style guide for Lua: Difference between revisions
No edit summary |
ArrowHead294 (talk | contribs) |
||
Line 46: | Line 46: | ||
== Mediawiki table formatting == | == Mediawiki table formatting == | ||
Unless the cells in the table contain short content and no custom styling, one line per cell is preferred over of one line per row. This is for ease-of-reading when debugging the output of a module-generated table. Add a space between pipes/exclamation points and table entries to avoid accidentally adding new rows, such as when inputting negative numbers. | |||
''' | '''Use this''' | ||
<pre> | <pre> | ||
{| class="wikitable" | {| class="wikitable" | ||
|+ | |+ Caption text | ||
|- | |||
! Header 1 | ! Header 1 | ||
! Header 2 | ! Header 2 | ||
Line 66: | Line 67: | ||
</pre> | </pre> | ||
''' | '''Avoid this''' | ||
<pre> | <pre> | ||
{| class="wikitable" | {| class="wikitable" | ||
|+ | |+ Caption text | ||
|- | |||
! Header 1 !! Header 2 !! Header 3 | ! Header 1 !! Header 2 !! Header 3 | ||
|- | |- | ||
|aa ||bb ||cc | | aa || bb || cc | ||
|- | |- | ||
|dd ||ee ||ff | | dd || ee || ff | ||
|} | |} | ||
</pre> | </pre> |