Help:Editing: Difference between revisions

From miki
Jump to navigation Jump to search
(→‎Tables: Using template::Prettytable or class="wikitable")
Line 60: Line 60:


== Tables ==
== Tables ==

<tt>{| <font color="green">[''optional-table-attributes''</font>
Basic syntax for table is
|- <font color="green">[''optional-line-attributes''</font>

|<font color="green">[''optional-cell-attributes'' <font color="red">|</font>]</font>Orange
|<font color="green">[''optional-cell-attributes'' <font color="red">|</font>]</font>Apple
<tt>{| <font color="green">''[opt-table-attr]''</font>
|- <font color="green">[''optional-line-attributes''</font>
|- <font color="green">''[opt-line-attr]''</font>
|<font color="green">[''optional-cell-attributes'' <font color="red">|</font>]</font>
|<font color="green">''[opt-cell-attr <font color="red">|</font>]''</font>Orange
|<font color="green">[''optional-cell-attributes'' <font color="red">|</font>]</font>Pie
|<font color="green">''[opt-cell-attr <font color="red">|</font>]''</font>Apple
|- <font color="green">[''optional-line-attributes''</font>
|- <font color="green">''[opt-line-attr''</font>
|<font color="green">[''optional-cell-attributes'' <font color="red">|</font>]</font>Butter |<font color="green">[''optional-cell-attributes'']</font>| Ice cream
|<font color="green">''[opt-cell-attr <font color="red">|</font>]''</font>
|<font color="green">''[opt-cell-attr <font color="red">|</font>]''</font>Pie
|- <font color="green">''[opt-line-attr''</font>
|<font color="green">''[opt-cell-attr <font color="red">|</font>]''</font>Butter |<font color="green">''[opt-cell-attr]</font>|'' Ice cream
|}</tt>
|}</tt>

{| {{Prettytable}}
|-
|Width="50%"|Table can be easily formatted using templates like:
<pre>
{| {{Prettytable}}
|-
|{{Hl2}}|First
|Second
|-
|Third
|{{Hl2}}|Fourth
|}
</pre>

|Width="50%"|
{| {{Prettytable}}
|-
|{{Hl2}}|First
|Second
|-
|Third
|{{Hl2}}|Fourth
|}

|-
|Or better yet, using ''CSS'' (eg. see [[MediaWiki:Common.css]]) class '''wikitable'''
<pre>
{| class="wikitable"
|-
!First
|Second
|-
|Third
!Fourth
|}
</pre>

|
{| class="wikitable"
|-
!First
|Second
|-
|Third
!Fourth
|}
|}

Revision as of 13:37, 8 September 2008

External Links

MediaWiki

From Wikipedia

Frequently Used

Description You type You get
anywhere
Arrows entities

&rArr; &lArr; &dArr; &uArr; &hArr; &rarr; &darr; &uarr; &larr; &harr;

⇒ ⇐ ⇓ ⇑ ⇔ → ↓ ↑ ← ↔

only at the beginning of the line
Definition list

;Definition
:item 1
:item 2

Definition
item 1
item 2

HTML Tags

Description You type You get
Font color You can use <font color="red">colors</font> You can use colors

Tables

Basic syntax for table is

{| [opt-table-attr] 
|- [opt-line-attr]
|[opt-cell-attr |]Orange
|[opt-cell-attr |]Apple
|- [opt-line-attr
|[opt-cell-attr |]
|[opt-cell-attr |]Pie
|- [opt-line-attr
|[opt-cell-attr |]Butter |[opt-cell-attr]| Ice cream 
|}
Table can be easily formatted using templates like:
{| {{Prettytable}}
|-
|{{Hl2}}|First
|Second
|-
|Third
|{{Hl2}}|Fourth
|}
First Second
Third Fourth
Or better yet, using CSS (eg. see MediaWiki:Common.css) class wikitable
{| class="wikitable"
|-
!First
|Second
|-
|Third
!Fourth
|}
First Second
Third Fourth