Difference between revisions of "Help:Contents"
(included link to how-to videos) |
|||
(63 intermediate revisions by 6 users not shown) | |||
Line 1: | Line 1: | ||
− | + | See also [http://www.mediawiki.org/wiki/Help:Contents Detailed Help from Media Wiki] | |
− | |||
− | |||
− | |||
− | |||
− | + | == Text formatting markup == | |
− | |||
− | [ | + | {| align="Center" {{Prettytable}} |
+ | |- | ||
+ | |{{Hl2}} |'''Description''' | ||
+ | |{{Hl2}} |'''You type''' | ||
+ | |{{Hl2}} |'''You get''' | ||
+ | |- | ||
+ | | colspan="3" align="center" | ''applies anywhere'' | ||
+ | |- | ||
+ | |Italic text | ||
+ | |<tt><nowiki>''italic''</nowiki></tt> | ||
+ | |''italic'' | ||
+ | |- | ||
+ | | Bold text | ||
+ | |<tt><nowiki>'''bold'''</nowiki></tt> | ||
+ | |'''bold''' | ||
+ | |- | ||
+ | | Bold and italic | ||
+ | |<tt><nowiki>'''''bold & italic'''''</nowiki></tt> | ||
+ | |'''''bold & italic''''' | ||
+ | |- | ||
+ | |Escape wiki markup | ||
+ | |<tt><nowiki><nowiki>no ''markup''</nowiki></nowiki></tt> | ||
+ | |<nowiki>no ''markup''</nowiki> | ||
+ | |- | ||
+ | | colspan="3" align="center" | ''only at the beginning of the line'' | ||
+ | |- | ||
+ | |Headings of<br /> | ||
+ | different levels <ref>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.</ref><ref>An article with four or more headings will automatically create a [http://en.wikipedia.org/wiki/Wikipedia:Section#Table_of_contents_.28TOC.29 table of contents].</ref> | ||
+ | | | ||
+ | <tt><nowiki>==level 1==</nowiki></tt><br /> | ||
+ | <tt><nowiki>===level 2===</nowiki></tt><br /> | ||
+ | <tt><nowiki>====level 3====</nowiki></tt><br /> | ||
+ | <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 [[w:HTML|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. | |
− | [[ | + | {|width="100%" border="1" cellpadding="2" cellspacing="0" |
+ | |- | ||
+ | !What it looks like | ||
+ | !What you type | ||
+ | |- | ||
+ | | | ||
+ | Here's a link to a page named [[Official position]]. | ||
+ | You can even say [[official position]]s | ||
+ | and the link will show up correctly. | ||
+ | |<pre> | ||
+ | Here's a link to a page named [[Official position]]. | ||
+ | You can even say [[official position]]s | ||
+ | and the link will show up correctly. | ||
+ | </pre> | ||
+ | |- | ||
+ | | | ||
+ | You can put formatting around a link. | ||
+ | Example: ''[[Wikipedia]]''. | ||
+ | |<pre> | ||
+ | You can put formatting around a link. | ||
+ | Example: ''[[Wikipedia]]''. | ||
+ | </pre> | ||
+ | |- | ||
+ | | | ||
+ | The ''first letter'' of articles is automatically | ||
+ | capitalized, so [[wikipedia]] goes to the same place | ||
+ | as [[Wikipedia]]. Capitalization matters after the | ||
+ | first letter. | ||
+ | |<pre> | ||
+ | The ''first letter'' of articles is automatically | ||
+ | capitalized, so [[wikipedia]] goes to the same place | ||
+ | as [[Wikipedia]]. Capitalization matters after the | ||
+ | first letter. | ||
+ | </pre> | ||
+ | |- | ||
+ | | | ||
+ | [[The weather in London]] is a page that doesn't exist | ||
+ | yet. You could create it by clicking on the link. | ||
+ | |<pre> | ||
+ | [[The weather in London]] is a page that doesn't exist | ||
+ | yet. You could create it by clicking on the link. | ||
+ | </pre> | ||
+ | |- | ||
+ | | | ||
+ | You can link to a page section by its title: | ||
− | [[ | + | *[[List of cities by country#Morocco]]. |
− | [[ | + | If multiple sections have the same title, add |
+ | a number. [[#Example section 3]] goes to the | ||
+ | third section named "Example section". | ||
+ | |<pre> | ||
+ | You can link to a page section by its title: | ||
− | [[ | + | *[[List of cities by country#Morocco]]. |
− | [[Help: | + | If multiple sections have the same title, add |
+ | a number. [[#Example section 3]] goes to the | ||
+ | third section named "Example section". | ||
+ | </pre> | ||
+ | |- | ||
+ | | | ||
+ | You can make a link point to a different place | ||
+ | with a [[Help:Piped link|piped link]]. Put the link | ||
+ | target first, then the pipe character "|", then | ||
+ | the link text. | ||
− | | | + | *[[Help:Link|About Links]] |
− | } | + | *[[List of cities by country#Morocco| |
+ | Cities in Morocco]] | ||
+ | |||
+ | Or you can use the "pipe trick" so that text in parentheses or text after a comma does not appear. | ||
+ | |||
+ | *[[Spinning (textiles)|Spinning]] | ||
+ | *[[Boston, Massachusetts|Boston]] | ||
+ | |<pre> | ||
+ | |||
+ | *[[Help:Link|About Links]] | ||
+ | *[[List of cities by country#Morocco| | ||
+ | Cities in Morocco]] | ||
+ | |||
+ | *[[Spinning (textiles)|]] | ||
+ | *[[Boston, Massachusetts|]] | ||
+ | </pre> | ||
+ | |- | ||
+ | | | ||
+ | You can make an external link just by typing a URL: | ||
+ | http://www.nupedia.com | ||
+ | |||
+ | You can give it a title: | ||
+ | [http://www.nupedia.com Nupedia] | ||
+ | |||
+ | Or leave the title blank: | ||
+ | [http://www.nupedia.com] | ||
+ | | | ||
+ | <pre> | ||
+ | You can make an external link just by typing a URL: | ||
+ | http://www.nupedia.com | ||
+ | |||
+ | You can give it a title: | ||
+ | [http://www.nupedia.com Nupedia] | ||
+ | |||
+ | Or leave the title blank: | ||
+ | [http://www.nupedia.com] | ||
+ | </pre> | ||
+ | |- | ||
+ | | | ||
+ | Linking to an e-mail address works the same way: | ||
+ | mailto:someone@example.com or | ||
+ | [mailto:someone@example.com someone] | ||
+ | | | ||
+ | <pre> | ||
+ | Linking to an e-mail address works the same way: | ||
+ | mailto:someone@example.com or | ||
+ | [mailto:someone@example.com someone] | ||
+ | </pre> | ||
+ | |- | ||
+ | | | ||
+ | You can [[Help:Redirect|redirect]] the user to another page. | ||
+ | |<pre> | ||
+ | #REDIRECT [[Official position]] | ||
+ | </pre> | ||
+ | |- | ||
+ | | | ||
+ | [[Help:Category|Category links]] do not show up in line | ||
+ | but instead at page bottom ''and cause the page to be | ||
+ | listed in the category.'' | ||
+ | [[Category:English documentation]] | ||
+ | |||
+ | Add an extra colon to ''link'' to a category in line | ||
+ | without causing the page to be listed in the category: | ||
+ | [[:Category:English documentation]] | ||
+ | |<pre> | ||
+ | [[Help:Category|Category links]] do not show up in line | ||
+ | but instead at page bottom ''and cause the page to be | ||
+ | listed in the category.'' | ||
+ | [[Category:English documentation]] | ||
+ | |||
+ | Add an extra colon to ''link'' to a category in line | ||
+ | without causing the page to be listed in the category: | ||
+ | [[:Category:English documentation]] | ||
+ | </pre> | ||
+ | |- | ||
+ | | | ||
+ | The Wiki reformats linked dates to match the reader's | ||
+ | date preferences. These three dates will show up the | ||
+ | same if you choose a format in your | ||
+ | [[Special:Preferences|Preferences]]: | ||
+ | * [[1969-07-20]] | ||
+ | * [[July 20]], [[1969]] | ||
+ | * [[20 July]] [[1969]] | ||
+ | |<pre> | ||
+ | The Wiki reformats linked dates to match the reader's | ||
+ | date preferences. These three dates will show up the | ||
+ | same if you choose a format in your | ||
+ | [[Special:Preferences|]]: | ||
+ | * [[1969-07-20]] | ||
+ | * [[July 20]], [[1969]] | ||
+ | * [[20 July]] [[1969]] | ||
+ | </pre> | ||
+ | |} | ||
+ | |||
+ | ===Extension:Cite=== | ||
+ | |||
+ | [http://www.mediawiki.org/wiki/Extension:Cite/Cite.php#Usage 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. | ||
+ | |||
+ | <blockquote> | ||
+ | <tt> | ||
+ | This is an example of multiple references to the same footnote.<font color=red>'''<ref name="multiple">'''Remember that when you refer to the same footnote multiple times, the text from the first reference is used.'''</ref>'''</font> | ||
+ | <br/> | ||
+ | <br/> | ||
+ | Such references are particularly useful when citing sources, if different statements come from | ||
+ | the same source.<font color=red>'''<ref name="multiple">'''This text is superfluous, and won't show up anywhere. We may as well just use an empty tag.'''</ref>'''</font> | ||
+ | <br/> | ||
+ | <br/> | ||
+ | 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.<font color=red>'''<ref name="multiple" />'''</font> | ||
+ | <br/> | ||
+ | <br/> | ||
+ | ==Notes== | ||
+ | <br/> | ||
+ | <font color=red>'''<references/>'''</font> | ||
+ | </tt> | ||
+ | </blockquote> | ||
+ | |||
+ | The text above gives the following result in the article (see also section below): | ||
+ | <blockquote> | ||
+ | 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> | ||
+ | <br/> | ||
+ | <br/> | ||
+ | Such references are particularly useful when citing sources, when 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> | ||
+ | <br/> | ||
+ | <br/> | ||
+ | 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" /> | ||
+ | </blockquote> |
Revision as of 17:42, 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.
What it looks like | What you type |
---|---|
Here's a link to a page named Official position. You can even say official positions and the link will show up correctly. |
Here's a link to a page named [[Official position]]. You can even say [[official position]]s and the link will show up correctly. |
You can put formatting around a link. Example: Wikipedia. |
You can put formatting around a link. Example: ''[[Wikipedia]]''. |
The first letter of articles is automatically capitalized, so wikipedia goes to the same place as Wikipedia. Capitalization matters after the first letter. |
The ''first letter'' of articles is automatically capitalized, so [[wikipedia]] goes to the same place as [[Wikipedia]]. Capitalization matters after the first letter. |
The weather in London is a page that doesn't exist yet. You could create it by clicking on the link. |
[[The weather in London]] is a page that doesn't exist yet. You could create it by clicking on the link. |
You can link to a page section by its title: If multiple sections have the same title, add a number. #Example section 3 goes to the third section named "Example section". |
You can link to a page section by its title: *[[List of cities by country#Morocco]]. If multiple sections have the same title, add a number. [[#Example section 3]] goes to the third section named "Example section". |
You can make a link point to a different place with a piped link. Put the link target first, then the pipe character "|", then the link text. Or you can use the "pipe trick" so that text in parentheses or text after a comma does not appear. |
*[[Help:Link|About Links]] *[[List of cities by country#Morocco| Cities in Morocco]] *[[Spinning (textiles)|]] *[[Boston, Massachusetts|]] |
You can make an external link just by typing a URL: http://www.nupedia.com You can give it a title: Nupedia Or leave the title blank: [1] |
You can make an external link just by typing a URL: http://www.nupedia.com You can give it a title: [http://www.nupedia.com Nupedia] Or leave the title blank: [http://www.nupedia.com] |
Linking to an e-mail address works the same way: mailto:someone@example.com or someone |
Linking to an e-mail address works the same way: mailto:someone@example.com or [mailto:someone@example.com someone] |
You can redirect the user to another page. |
#REDIRECT [[Official position]] |
Category links do not show up in line but instead at page bottom and cause the page to be listed in the category. Add an extra colon to link to a category in line without causing the page to be listed in the category: Category:English documentation |
[[Help:Category|Category links]] do not show up in line but instead at page bottom ''and cause the page to be listed in the category.'' [[Category:English documentation]] Add an extra colon to ''link'' to a category in line without causing the page to be listed in the category: [[:Category:English documentation]] |
The Wiki reformats linked dates to match the reader's date preferences. These three dates will show up the same if you choose a format in your Preferences: |
The Wiki reformats linked dates to match the reader's date preferences. These three dates will show up the same if you choose a format in your [[Special:Preferences|]]: * [[1969-07-20]] * [[July 20]], [[1969]] * [[20 July]] [[1969]] |
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]