Difference between revisions of "Help: Links"
m |
|||
(5 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | + | Links allow users to easily access other relevant pages on the wiki and external websites. | |
+ | |||
There are four sorts of links in MediaWiki: | There are four sorts of links in MediaWiki: | ||
# internal links to other pages in the wiki | # internal links to other pages in the wiki | ||
Line 11: | Line 12: | ||
== How to link == | == How to link == | ||
− | {| | + | |
+ | {| cellspacing="4" cellpadding="3" rules="all" style="width:100%;background:#f5faff; border:2px solid #B8C7D9;" | ||
|- | |- | ||
− | | | + | !style="background:#CEDFF2;padding:3px; width:60%;"|What it looks like |
− | | | + | !style="background:#CEDFF2;padding:3px; width:40%;"|What you type |
− | + | ||
|- | |- | ||
− | | | + | |Here's a link to a page named [[Jaime Lannister]]. |
− | |< | + | You can even say [[Jaime Lannister]]s |
− | + | and the link will show up correctly. | |
+ | |<pre> | ||
+ | Here's a link to a page named [[Main Page]]. | ||
+ | You can even say [[Jaime Lannister]]s | ||
+ | and the link will show up correctly. | ||
+ | </pre> | ||
+ | |||
|- | |- | ||
− | | | + | |You can put formatting around a link. |
− | |< | + | Example: ''[[Jaime Lannister]]''. |
− | + | |<pre> | |
+ | You can put formatting around a link. | ||
+ | Example: ''[[Jaime Lannister]]''. | ||
+ | </pre> | ||
+ | |||
|- | |- | ||
− | | | + | |The ''first letter'' of articles is automatically |
− | |< | + | capitalized, so [[jaime Lannister]] goes to the same place |
− | + | as [[Jaime Lannister]]. Capitalization matters after the | |
+ | first letter. | ||
+ | |<pre> | ||
+ | The ''first letter'' of articles is automatically | ||
+ | capitalized, so [[jaime Lannister]] goes to the same place | ||
+ | as [[Jaime Lannister]]. Capitalization matters after the | ||
+ | first letter. | ||
+ | </pre> | ||
+ | |||
|- | |- | ||
− | | | + | |[[Intentionally permanent red link]] is a page that doesn't exist |
− | |< | + | yet. You could create it by clicking on the link. |
− | + | |<pre> | |
+ | [[Intentionally permanent red link]] 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: |
− | + | ||
− | + | * [[Jaime Lannister#History]].. | |
− | + | ||
+ | |<pre> | ||
+ | You can link to a page section by its title: | ||
+ | |||
+ | * [[Jaime Lannister#History]]. | ||
+ | </pre> | ||
+ | |||
|- | |- | ||
− | | | + | |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. |
+ | |||
+ | * [[Help:Links|About Links]] | ||
+ | * [[Jaime Lannister#History|History of Jaime Lannister]] | ||
+ | |||
+ | Or you can use the "pipe trick" so that a title that | ||
+ | contains disambiguation text will appear with more concise | ||
+ | link text. | ||
+ | |||
+ | * [[Lord Commander of the Kingsguard|Lord Commander]] | ||
+ | * [[Jon (A Dance with Dragons)|Jon]] | ||
+ | |<pre> | ||
+ | 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. | ||
+ | |||
+ | * [[Help:Links|About Links]] | ||
+ | * [[Jaime Lannister#History|History of Jaime Lannister]] | ||
+ | |||
+ | Or you can use the "pipe trick" so that a title that | ||
+ | contains disambiguation text will appear with more concise | ||
+ | link text. | ||
+ | |||
+ | * [[Lord Commander of the Kingsguard|Lord Commander]] | ||
+ | * [[Jon (A Dance with Dragons)|Jon]] | ||
+ | </pre> | ||
|- | |- | ||
− | |External link | + | | |
− | + | 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] | ||
+ | |||
+ | External link can be used to link to a wiki page that cannot be linked to with <nowiki>[[page]]</nowiki>: | ||
+ | http://meta.wikimedia.org/w/index.php?title=Fotonotes&oldid=482030#Installation | ||
+ | | | ||
+ | <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] | ||
+ | |||
+ | External link can be used to link to a wiki page that | ||
+ | cannot be linked to with <nowiki><nowiki>[[page]]</nowiki></nowiki>: | ||
+ | http://meta.wikimedia.org/w/index.php?title=Fotonotes | ||
+ | &oldid=482030#Installation | ||
+ | </pre> | ||
|- | |- | ||
− | | | + | | |
− | |< | + | Linking to an e-mail address works the same way: |
− | + | mailto:[email protected] or [mailto:[email protected] someone] | |
+ | | | ||
+ | <pre> | ||
+ | Linking to an e-mail address works the same way: | ||
+ | mailto:[email protected] or [mailto:[email protected] someone] | ||
+ | </pre> | ||
|- | |- | ||
− | | | + | | |
− | | | + | You can [[wikipedia:Help:Redirect|redirect]] the user to another page. |
− | + | |<pre> | |
+ | #REDIRECT [[Official position]] | ||
+ | </pre> | ||
|- | |- | ||
− | | | + | | |
− | + | [[Help:Categories|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:Help]] | |
− | + | |<pre> | |
− | + | [[Help:Categories|Category links]] do not show up in line | |
− | + | but instead at page bottom | |
+ | ''and cause the page to be listed in the category.'' | ||
+ | [[Category:Help]] | ||
+ | |||
+ | Add an extra colon to ''link'' to a category in line | ||
+ | without causing the page to be listed in the category: | ||
+ | [[:Category:Help]] | ||
+ | </pre> | ||
|} | |} | ||
− | == | + | ==See Also== |
− | + | * [[Help:Referencing_and_Canon]], dealing with references and cannon. | |
+ | * [[meta:Help:Link|Help:Link]], additional help at Mediawiki. | ||
− | {{ | + | |
+ | {{Template:WikiHelpNav}} | ||
[[Category:Help|Links]] | [[Category:Help|Links]] |
Latest revision as of 14:44, 5 February 2012
Links allow users to easily access other relevant pages on the wiki and external websites.
There are four sorts of links in MediaWiki:
- internal links to other pages in the wiki
- external links to websites
- inter-wiki links (links to other wikis)
- inter-language links to other language versions of the same wiki
To add an internal link, enclose the name of the page you want to link to in double square brackets. When you save the page, you'll see the new link pointing to your page. If the page exists already, it is displayed in blue, empty pages are displayed in red. Selflinks to the current page are not transformed in URLs but displayed in bold.
The first letter of the target page is automatically capitalized and spaces are represented as underscores (typing an underscore in the link will have a similar effect as typing a space, but is not recommended, since the underscore will also be shown in the text).
How to link
What it looks like | What you type |
---|---|
Here's a link to a page named Jaime Lannister.
You can even say Jaime Lannisters and the link will show up correctly. |
Here's a link to a page named [[Main Page]]. You can even say [[Jaime Lannister]]s and the link will show up correctly. |
You can put formatting around a link.
Example: Jaime Lannister. |
You can put formatting around a link. Example: ''[[Jaime Lannister]]''. |
The first letter of articles is automatically
capitalized, so jaime Lannister goes to the same place as Jaime Lannister. Capitalization matters after the first letter. |
The ''first letter'' of articles is automatically capitalized, so [[jaime Lannister]] goes to the same place as [[Jaime Lannister]]. Capitalization matters after the first letter. |
Intentionally permanent red link is a page that doesn't exist
yet. You could create it by clicking on the link. |
[[Intentionally permanent red link]] 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: | You can link to a page section by its title: * [[Jaime Lannister#History]]. |
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 a title that contains disambiguation text will appear with more concise link text. |
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. * [[Help:Links|About Links]] * [[Jaime Lannister#History|History of Jaime Lannister]] Or you can use the "pipe trick" so that a title that contains disambiguation text will appear with more concise link text. * [[Lord Commander of the Kingsguard|Lord Commander]] * [[Jon (A Dance with Dragons)|Jon]] |
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] External link can be used to link to a wiki page that cannot be linked to with [[page]]: http://meta.wikimedia.org/w/index.php?title=Fotonotes&oldid=482030#Installation |
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] External link can be used to link to a wiki page that cannot be linked to with <nowiki>[[page]]</nowiki>: http://meta.wikimedia.org/w/index.php?title=Fotonotes &oldid=482030#Installation |
Linking to an e-mail address works the same way: mailto:[email protected] or someone |
Linking to an e-mail address works the same way: mailto:[email protected] or [mailto:[email protected] 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:Help |
[[Help:Categories|Category links]] do not show up in line but instead at page bottom ''and cause the page to be listed in the category.'' [[Category:Help]] Add an extra colon to ''link'' to a category in line without causing the page to be listed in the category: [[:Category:Help]] |
See Also
- Help:Referencing_and_Canon, dealing with references and cannon.
- Help:Link, additional help at Mediawiki.
|