Difference between revisions of "Help:Basic MediaWiki Syntax"
(Pre-formatted text, +cat) |
m (fmt err) |
||
| Line 165: | Line 165: | ||
[[Image:Pdp1115.jpg|thumb|150px|left|Caption text]] | [[Image:Pdp1115.jpg|thumb|150px|left|Caption text]] | ||
| − | Leaving out the ' | + | Leaving out the '150px' inserts the image full-size. The optional keywords 'left' and 'right' can be added to control the horizontal placement. |
New images can be uploaded via the 'Upload file' page (link on the left-hand side of all pages). | New images can be uploaded via the 'Upload file' page (link on the left-hand side of all pages). | ||
| Line 183: | Line 183: | ||
* Use the [[Hypertext Markup Language|HTML]] <nowiki><nowiki></nowiki> tag, with a space character before the <nowiki><nowiki></nowiki>. (Remember to add a matching closing tag after the pre-formatted text block). | * Use the [[Hypertext Markup Language|HTML]] <nowiki><nowiki></nowiki> tag, with a space character before the <nowiki><nowiki></nowiki>. (Remember to add a matching closing tag after the pre-formatted text block). | ||
| − | * Use the | + | * Use the HTML <nowiki><pre></nowiki> tag (again, remember the closing tag). |
| − | Note that the <nowiki><blockquote></nowiki> tag only indents the block; text within it will still be justified. | + | Note that the HTML <nowiki><blockquote></nowiki> tag only indents the block; text within it will still be justified. |
[[Category: Help]] | [[Category: Help]] | ||
Revision as of 14:11, 7 October 2019
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 14:13, |
| 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 == |
ContentsLevel 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:Pdp1115.jpg|thumb|150px|left|Caption text]]
produces:
Leaving out the '150px' inserts the image full-size. The optional keywords 'left' and 'right' can be added to control the horizontal placement.
New images can be uploaded via the 'Upload file' page (link on the left-hand side of all pages).
Pre-formatted text
There are a number of ways to include pre-formatted text (e.g. source code fragments):
- Start each line with a space character; normal markups can be used; e.g.:
" This is pre-formatted''' text"
produces:
This is pre-formatted text
- Use the HTML <nowiki> tag, with a space character before the <nowiki>. (Remember to add a matching closing tag after the pre-formatted text block).
- Use the HTML <pre> tag (again, remember the closing tag).
Note that the HTML <blockquote> tag only indents the block; text within it will still be justified.