User:Ganaram inukshuk/Provisional style guide for Lua: Difference between revisions

Ganaram inukshuk (talk | contribs)
No edit summary
ArrowHead294 (talk | contribs)
Line 46: Line 46:


== Mediawiki table formatting ==
== Mediawiki table formatting ==
Have one line per cell, not 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. This is to avoid accidentally adding new rows, such as when putting negative numbers.
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.


'''Correct'''
'''Use this'''
<pre>
<pre>
{| class="wikitable"
{| class="wikitable"
|+
|+ Caption text
|-
! Header 1
! Header 1
! Header 2
! Header 2
Line 66: Line 67:
</pre>
</pre>


'''Incorrect'''
'''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>