Difference between revisions of "Help:WikiMarkup Formatting"
Jump to navigation
Jump to search
m (New page: {|border="2" width="{{{width|100%}}}" cellspacing="4" cellpadding="3" rules="all" style="margin:1em 1em 1em 0; border:solid 1px #AAAAAA; border-collapse:collapse;empty-cells:show;{{{style|...) |
m |
||
Line 32: | Line 32: | ||
<tt><nowiki>====level 3====</nowiki></tt><br /> | <tt><nowiki>====level 3====</nowiki></tt><br /> | ||
<tt><nowiki>=====level 4=====</nowiki></tt> | <tt><nowiki>=====level 4=====</nowiki></tt> | ||
+ | | | ||
+ | |||
+ | ==Level 1== | ||
+ | ===Level 2=== | ||
+ | ====Level 3==== | ||
+ | =====Level 4===== | ||
+ | |- | ||
+ | |Horizontal rule | ||
+ | | | ||
+ | <tt><nowiki>----</nowiki></tt> | ||
+ | | | ||
+ | ---- | ||
+ | |- | ||
+ | |Bullet list | ||
+ | | | ||
+ | * one<br> | ||
+ | * two<br> | ||
+ | * three<br> | ||
+ | ** three and one-third<br> | ||
+ | ** three and two-thirds<br> | ||
+ | | | ||
+ | * one | ||
+ | * two | ||
+ | * three | ||
+ | ** three and one-third | ||
+ | ** three and two-thirds | ||
+ | |- | ||
+ | |Numbered list | ||
+ | | | ||
+ | # one<br /> | ||
+ | # two<nowiki><br></nowiki>spanning several lines<nowiki><br></nowiki>without breaking the numbering<br /> | ||
+ | # three<br /> | ||
+ | ## three point one<br /> | ||
+ | ## three point two<br /> | ||
+ | | | ||
+ | # one | ||
+ | # two<br>spanning several lines<br>without breaking the numbering | ||
+ | # three | ||
+ | ## three point one | ||
+ | ## three point two | ||
+ | |- | ||
+ | | Mixture of bulleted<br /> and numbered lists | ||
+ | | | ||
+ | # one<br /> | ||
+ | # two<br /> | ||
+ | #* two point one<br /> | ||
+ | #* two point two<br /> | ||
+ | | | ||
+ | # one | ||
+ | # two | ||
+ | #* two point one | ||
+ | #* two point two | ||
+ | |- | ||
+ | |Definition list | ||
+ | | | ||
+ | ;Definition<br /> | ||
+ | :item 1<br /> | ||
+ | :item 2<br /> | ||
+ | | | ||
+ | ;Definition | ||
+ | :item 1 | ||
+ | :item 2 | ||
+ | |- | ||
+ | |Preformatted text | ||
+ | | | ||
+ | preformatted text is done with<br /> | ||
+ | a space at the<br /> | ||
+ | beginning of the line<br /> | ||
+ | | | ||
+ | preformatted text is done with | ||
+ | a space at the | ||
+ | beginning of the line | ||
+ | |} | ||
+ | |||
+ | Notes: <references/> | ||
+ | |||
+ | == Paragraphs == | ||
+ | |||
+ | MediaWiki ignores normal line breaks. To start a new paragraph, leave an empty line. You can also start a new line with the HTML tags <tt><nowiki><br> or <br/></nowiki></tt>. | ||
+ | |||
+ | == HTML == | ||
+ | |||
+ | Some HTML tags are allowed in MediaWiki, for example <tt><nowiki><code></nowiki></tt>, <tt><nowiki><div></nowiki></tt>, <tt><nowiki><span></nowiki></tt> and <tt><nowiki><font></nowiki></tt>. | ||
+ | |||
+ | == Links == | ||
+ | |||
+ | You will often want to make clickable ''links'' to other pages. | ||
+ | |||
+ | {| {{Prettytable}} | ||
+ | |- | ||
+ | |{{Hl3}}|'''Description''' | ||
+ | |{{Hl3}}|'''You type''' | ||
+ | |{{Hl3}}|'''You get''' | ||
+ | |- | ||
+ | |Internal link | ||
+ | |<tt><nowiki>[[Main Page]]</nowiki></tt> | ||
+ | |[[Main Page]] | ||
+ | |- | ||
+ | |Category link | ||
+ | |<tt><nowiki>[[:Category:Help]]</nowiki></tt> | ||
+ | |[[:Category:Help]] | ||
+ | |- | ||
+ | |Piped link | ||
+ | |<tt><nowiki>[[Main Page|different text]]</nowiki></tt> | ||
+ | |[[Main Page|different text]] | ||
+ | |- | ||
+ | |Anchor link | ||
+ | |<tt><nowiki>[[#External links|Anchor link]]</nowiki></tt> | ||
+ | |[[#External links|Anchor link]] | ||
+ | |- | ||
+ | |External link | ||
+ | |<tt><nowiki>http://mediawiki.org</nowiki></tt> | ||
+ | |http://mediawiki.org | ||
+ | |- | ||
+ | |Internal link to image file | ||
+ | |<tt><nowiki>[[media:example.jpg]]</nowiki></tt> | ||
+ | |[[media:example.jpg]] | ||
+ | |- | ||
+ | |External link,<br /> | ||
+ | different title | ||
+ | |<tt><nowiki>[http://mediawiki.org MediaWiki]</nowiki></tt> | ||
+ | |[http://mediawiki.org MediaWiki] | ||
+ | |- | ||
+ | |External link,<br /> | ||
+ | unnamed | ||
+ | |<tt><nowiki>[http://mediawiki.org]</nowiki></tt> | ||
+ | |[http://mediawiki.org] | ||
+ | |- | ||
+ | |External link,<br /> | ||
+ | same host unnamed | ||
+ | |<tt><nowiki>[http://{{SERVERNAME}}/pagename]</nowiki></tt> | ||
+ | |[http://{{SERVERNAME}}/pagename] | ||
+ | |- | ||
+ | |Interwiki link | ||
+ | |<tt><nowiki>[[Wikipedia:MediaWiki]]</nowiki></tt> | ||
+ | |Wikipedia:MediaWiki | ||
+ | |- | ||
+ | |mailto | ||
+ | |<tt><nowiki>mailto:info@example.org</nowiki></tt> | ||
+ | |mailto:info@example.org | ||
+ | |- | ||
+ | |mailto unnamed | ||
+ | |<tt><nowiki>[mailto:info@example.org]</nowiki></tt> | ||
+ | |[mailto:info@example.org] | ||
+ | |- | ||
+ | |mailto named | ||
+ | |<tt><nowiki>[mailto:info@example.org info]</nowiki></tt> | ||
+ | |[mailto:info@example.org info] | ||
+ | |- | ||
+ | |redirect | ||
+ | |<tt><nowiki>#REDIRECT [[Main Page]]</nowiki></tt> | ||
+ | | → [[Main Page]] | ||
|} | |} |
Revision as of 16:53, 22 September 2008
Description | You type | You get |
applies anywhere | ||
Italic text | ''italic'' | italic |
Bold text | '''bold''' | bold |
Bold and italic | '''''bold & italic''''' | bold & italic |
Escape wiki markup | <nowiki>no ''markup''</nowiki> | no ''markup'' |
only at the beginning of the line | ||
Headings of |
==level 1== |
Level 1Level 2Level 3Level 4 |
Horizontal rule |
---- |
|
Bullet list |
* one |
|
Numbered list |
# one |
|
Mixture of bulleted and numbered lists |
# one |
|
Definition list |
;Definition |
|
Preformatted text |
preformatted text is done with |
preformatted text is done with a space at the beginning of the line |
Notes:
- ↑ Use of a heading created by single equal signs is discouraged as it appears with the same formatting and size as the page title, which can be confusing.
- ↑ An article with four or more headings will automatically create a table of contents.
Paragraphs
MediaWiki ignores normal line breaks. To start a new paragraph, leave an empty line. You can also start a new line with the HTML tags <br> or <br/>.
HTML
Some HTML tags are allowed in MediaWiki, for example <code>, <div>, <span> and <font>.
Links
You will often want to make clickable links to other pages.
Description | You type | You get |
Internal link | [[Main Page]] | Main Page |
Category link | [[:Category:Help]] | Category:Help |
Piped link | [[Main Page|different text]] | different text |
Anchor link | [[#External links|Anchor link]] | Anchor link |
External link | http://mediawiki.org | http://mediawiki.org |
Internal link to image file | [[media:example.jpg]] | media:example.jpg |
External link, different title |
[http://mediawiki.org MediaWiki] | MediaWiki |
External link, unnamed |
[http://mediawiki.org] | [1] |
External link, same host unnamed |
[http://{{SERVERNAME}}/pagename] | [2] |
Interwiki link | [[Wikipedia:MediaWiki]] | Wikipedia:MediaWiki |
mailto | mailto:info@example.org | mailto:info@example.org |
mailto unnamed | [mailto:info@example.org] | [3] |
mailto named | [mailto:info@example.org info] | info |
redirect | #REDIRECT [[Main Page]] | → Main Page |