Difference between revisions of "Help:Basic MediaWiki Syntax"
(→Images: Add a few more controls) |
(Add intro text) |
||
Line 1: | Line 1: | ||
+ | This is a brief introduction to MediaWiki [[source]] syntax. For a more comprehensive guide, see [https://www.mediawiki.org/wiki/Special:MyLanguage/Help:Contents here]. | ||
+ | |||
+ | __NOTOC__ | ||
+ | ==Text== | ||
+ | |||
<div align="center"> | <div align="center"> | ||
{| style="border:1px solid #A3B1BF; text-align:left; background:#f5faff" | {| style="border:1px solid #A3B1BF; text-align:left; background:#f5faff" | ||
Line 83: | Line 88: | ||
===== Level 4 ===== | ===== Level 4 ===== | ||
====== Level 5 ====== | ====== Level 5 ====== | ||
+ | __TOC__ | ||
|- | |- | ||
|colspan="3" style="border-top:1px solid #cee0f2;"| | |colspan="3" style="border-top:1px solid #cee0f2;"| | ||
Line 158: | Line 164: | ||
produces: | produces: | ||
− | [[Image:Pdp-11-40.jpg|thumb|200px|Caption text]] | + | [[Image:Pdp-11-40.jpg|thumb|200px|left|Caption text]] |
− | Leaving out the '200px' inserts the image full-size. The keywords 'left' and 'right' can be added to control the horizontal placement. | + | Leaving out the '200px' inserts the image full-size. The optional keywords 'left' and 'right' can be added to control the horizontal placement. |
Revision as of 14:36, 10 February 2018
This is a brief introduction to MediaWiki source syntax. For a more comprehensive guide, see here.
Text
Description | You type | You get |
Applies anywhere | ||
Italicise text |
''italic'' |
italic |
Bold text |
'''bold''' |
bold |
Bold and italic |
'''''bold & italic''''' |
bold & italic |
Internal link (within the Computer History wiki) |
[[name of page]] |
|
External link (to other websites) |
[http://www.example.org] |
|
Sign your posts |
~~~~ |
Your username 20:47, |
Items below only apply at the beginning of a line | ||
Headings A Table of Contents will automatically be generated when four headings are added to an article. |
== Level 1 == |
Level 1Level 2Level 3Level 4Level 5 |
Indented items (used mostly on Talk: pages) |
: foo |
|
Bullet list |
* one |
|
Numbered list |
# one |
|
Tables
{| class="wikitable" ! Table !! Prototype |- | colspan="2" style="text-align:center;" | Headers |- | aa || rowspan="2" | yy |- | bb |- | cc || zz |}
produces:
Table | Prototype |
---|---|
Headers | |
aa | yy |
bb | |
cc | zz |
Images
[[Image:Pdp-11-40.jpg|thumb|200px|Caption text]]
produces:
Leaving out the '200px' inserts the image full-size. The optional keywords 'left' and 'right' can be added to control the horizontal placement.