Difference between revisions of "Help:Contents"
(→Links) |
|||
Line 125: | Line 125: | ||
You will often want to make clickable ''links'' to other pages. | 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] | |
− | |||
− | [http:// | ||
− | |||
− | |||
− | |||
− | | | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | [http:// | ||
− | |||
|- | |- | ||
− | | | + | |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 17:44, 14 January 2008
See also Detailed Help from Media Wiki
Text formatting markup
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 |
Extension:Cite
www.mediawiki.org/wiki/Extension:Cite
Multiple uses of the same footnote
To give a footnote a unique identifier, use <ref name="name">. You can then refer to the same footnote again by using a ref tag with the same name. The text inside the second tag doesn't matter, because the text already exists in the first reference. You can either copy the whole footnote, or you can use a terminated empty ref tag that looks like this: <ref name="name" />.
In the following example, the same source is cited three times.
This is an example of multiple references to the same footnote.<ref name="multiple">Remember that when you refer to the same footnote multiple times, the text from the first reference is used.</ref>
Such references are particularly useful when citing sources, if different statements come from the same source.<ref name="multiple">This text is superfluous, and won't show up anywhere. We may as well just use an empty tag.</ref>
A concise way to make multiple references is to use empty ref tags, which have a slash at the end. Although this may reduce redundant work, please be aware that if a future editor removes the first reference, this will result in the loss of all references using the empty ref tags.<ref name="multiple" />
==Notes==
<references/>
The text above gives the following result in the article (see also section below):
This is an example of multiple references to the same footnote.[1]
Such references are particularly useful when citing sources, when different statements come from the same source.[1]
A concise way to make multiple references is to use empty ref tags, which have a slash at the end. Although this may reduce redundant work, please be aware that if a future editor removes the first reference, this will result in the loss of all references using the empty ref tags.[1]