Table Formatting: Difference between revisions

From Wayne's Dusty Box of Words
No edit summary
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 2: Line 2:


This wiki code:<br />
This wiki code:<br />
<code>
<pre>{| class="wikitable"
<nowiki>{| class="wikitable"<br /></nowiki>
|+ Table Example
<nowiki>|+ Table Example<br /></nowiki>
|-
<nowiki>|-<br /></nowiki>
! Wiki code !! Render
<nowiki>! Wiki code !! Render<br /></nowiki>
|- style="vertical-align:top;"
<nowiki>|- style="vertical-align:top;"<br /></nowiki>
| style="width: 50%" | Cell 1 Data
<nowiki>| style="width: 50%" | Cell 1 Data<br /></nowiki>
|| Cell 2 Data
<nowiki>|| Cell 2 Data<br /></nowiki>
|}
<nowiki>|}<br /></nowiki>
</pre>
</code>


Renders as:
Renders as:
Line 22: Line 21:
|| Cell 2 Data
|| Cell 2 Data
|}
|}
[[Category:Knowledge Base]]
[[Category:MediaWiki]]

Latest revision as of 17:25, 21 October 2020

This example encapsulates the formatting stuff I want to reference.

This wiki code:

{| class="wikitable"
|+ Table Example
|-
! Wiki code !! Render
|- style="vertical-align:top;"
| style="width: 50%" | Cell 1 Data
|| Cell 2 Data
|}

Renders as:

Table Example
Wiki code Render
Cell 1 Data Cell 2 Data