Difference between revisions of "Help:Contents"
(More information about Tables) |
|||
Line 29: | Line 29: | ||
Block tag processing with nowiki tag like <nowiki>''this'' and *this</nowiki>. | Block tag processing with nowiki tag like <nowiki>''this'' and *this</nowiki>. | ||
− | Here's a | + | |
+ | ===Tables=== | ||
+ | Here's an example of a basic table: | ||
{| border="1" | {| border="1" | ||
|r1c1 | |r1c1 | ||
Line 39: | Line 41: | ||
|r3c1 | |r3c1 | ||
|r3c2 | |r3c2 | ||
+ | |} | ||
+ | |||
+ | For a cleaner look, add the class="wikitable" tag: | ||
+ | {| class="wikitable" | ||
+ | |r1c1 | ||
+ | |r1c2 | ||
+ | |- | ||
+ | |r2c1 | ||
+ | |r2c2 | ||
+ | |- | ||
+ | |r3c1 | ||
+ | |r3c2 | ||
+ | |} | ||
+ | |||
+ | This table looks just like the previous, but uses a slightly different markup style: | ||
+ | {| class="wikitable" | ||
+ | |r1c1 || r1c2 | ||
+ | |- | ||
+ | |r2c1 || r2c2 | ||
+ | |- | ||
+ | |r3c1 || r3c2 | ||
+ | |} | ||
+ | |||
+ | To add headers to your table, use the ! symbol: | ||
+ | {| class="wikitable" | ||
+ | !Col 1 | ||
+ | !Col 2 | ||
+ | !Col 3 | ||
+ | |- | ||
+ | |r1c1 || r1c2 || r1c3 | ||
+ | |- | ||
+ | |r2c1 || r2c2 || r2c3 | ||
+ | |- | ||
+ | |r3c1 || r3c2 || r3c3 | ||
+ | |} | ||
+ | |||
+ | To add cells that span columns, use the colspan attribute: | ||
+ | {| class="wikitable" | ||
+ | !colspan="4" | Table header | ||
+ | |- | ||
+ | !Col 1 | ||
+ | !Col 2 | ||
+ | !Col 3 | ||
+ | !Col 4 | ||
+ | |- | ||
+ | |r1c1 || r1c2 || r1c3 || r1c4 | ||
+ | |- | ||
+ | |r2c1 || r2c2 || r2c3 || r2c4 | ||
+ | |- | ||
+ | |r3c1 || r3c2 || colspan="2" | subheader | ||
+ | |- | ||
+ | |r4c1 || r4c2 || r4c3 || r4c4 | ||
|} | |} | ||
Revision as of 12:25, 27 April 2011
A quick reference card is available here: http://meta.wikimedia.org/wiki/Help:Reference_card
An add-in for MS Office is available. Search the web for "Microsoft Office Word Add-in For MediaWiki" to find a download from microsoft.com
1 Example Wiki Text
View the source for this page to see common formatting tags.
Paragraphs are just text. Italics are like this. Bold is like this.
- Indented paragraph.
1.1 Heading level 3
- List 1a
- List 2a
- List 2b
- List 2c
- List 1b
- Ordered 2a
- Ordered 2B
- List 1c
Preformat text with the "pre" tag.
Block tag processing with nowiki tag like ''this'' and *this.
1.2 Tables
Here's an example of a basic table:
r1c1 | r1c2 |
r2c1 | r2c2 |
r3c1 | r3c2 |
For a cleaner look, add the class="wikitable" tag:
r1c1 | r1c2 |
r2c1 | r2c2 |
r3c1 | r3c2 |
This table looks just like the previous, but uses a slightly different markup style:
r1c1 | r1c2 |
r2c1 | r2c2 |
r3c1 | r3c2 |
To add headers to your table, use the ! symbol:
Col 1 | Col 2 | Col 3 |
---|---|---|
r1c1 | r1c2 | r1c3 |
r2c1 | r2c2 | r2c3 |
r3c1 | r3c2 | r3c3 |
To add cells that span columns, use the colspan attribute:
Table header | |||
---|---|---|---|
Col 1 | Col 2 | Col 3 | Col 4 |
r1c1 | r1c2 | r1c3 | r1c4 |
r2c1 | r2c2 | r2c3 | r2c4 |
r3c1 | r3c2 | subheader | |
r4c1 | r4c2 | r4c3 | r4c4 |
A handy Comma Separated Variable (CSV) to Wiki Table translator is available here: http://area23.brightbyte.de/csv2wp.php
Reference other sections of the wiki like this -> Beginner's Notes
To create a new page, add a reference to a non-existent page like this -> Non-existent page. Save the page with the reference and simply double-click the new link to open/create the new page.
To include a file in a page, use a link in one of the following forms:
[[Image:File.jpg]] to use the full version of the file [[Image:File.png|200px|thumb|left|alt text]] to use a 200 pixel wide rendition in a box in the left margin with 'alt text' as description [[Media:File.ogg]] for directly linking to the file without displaying the file