How To Make Links: Difference between revisions
(Added information on interwiki linking (linking to pages on other wikis from our own)) |
No edit summary |
||
Line 1: | Line 1: | ||
{{RightToC}} | |||
== Standard Linking == | == Standard Linking == | ||
To create links to another page one simply has to add the following code to the page: | To create links to another page one simply has to add the following code to the page: | ||
Line 28: | Line 30: | ||
displays as the link ([[Pyreal]]s) even though the page name is still just Pyreal. | displays as the link ([[Pyreal]]s) even though the page name is still just Pyreal. | ||
== Section Linking == | |||
You can link to a specific section of a page in a couple ways. If linking from another page you can link to a section heading by adding the section name to the page name, separated by a #. For example <nowiki>[[Armoredillo#Stats]]</nowiki> would take you to the stats section on the Armoredillo page. When linking to a section on the same page, don't include the page name. For example on this page, <nowiki>[[#Interwiki Linking]]</nowiki> would take you to that section on this page. | |||
If for some reason you need to link to a specific location on a page that isn't the start of a section, you can add a special tag that won't be displayed but serves as an anchor you can link to. The name you use can be anything, but whatever it is, that is what you will use when linking to it. Otherwise the link is the same as described above (<nowiki>[[Page#Name]]</nowiki>). | |||
<pre> | |||
<p id="name"></p> | |||
</pre> | |||
== Interwiki Linking == | == Interwiki Linking == |
Revision as of 03:13, 13 November 2009
Standard Linking
To create links to another page one simply has to add the following code to the page:
[[Page Name]]
Where the Page Name is whatever the specific search term you're looking to define.
Another useful process that is slightly more advanced is creating links with a different name than the actual path. (i.e: you want to link to the "How to make links" page but you dont want the text itself to show up as How_to_make_links).
To accomplish the above, and link to this page without using the actual path as the text for the link itself we would write the following code:
[[Page Name|Alternate link text]]
The above code would still link to the page but would now appears as "Alternate link text" with a link to this page instead of the rather unsightly actual path.
Using this method you can create links to various pages within the wiki and still make it look clean and less like actual code, this helps keep the wiki pretty and less confusing and cumbersome to casual users.
Wiki also handles pluralized links intelligently. For instance, a link called
[[Pyreal]]s
displays as the link (Pyreals) even though the page name is still just Pyreal.
Section Linking
You can link to a specific section of a page in a couple ways. If linking from another page you can link to a section heading by adding the section name to the page name, separated by a #. For example [[Armoredillo#Stats]] would take you to the stats section on the Armoredillo page. When linking to a section on the same page, don't include the page name. For example on this page, [[#Interwiki Linking]] would take you to that section on this page.
If for some reason you need to link to a specific location on a page that isn't the start of a section, you can add a special tag that won't be displayed but serves as an anchor you can link to. The name you use can be anything, but whatever it is, that is what you will use when linking to it. Otherwise the link is the same as described above ([[Page#Name]]).
<p id="name"></p>
Interwiki Linking
Interwiki linking is a means of linking to articles on certain other mediawiki wikis. No external link arrow graphic will be displayed as is normally the case for external URLs.
Link to an article on another Wikia wiki by using:
[[w:c:domain:Article Name|Article Name]]
Where domain is the particular wiki, for example ours is asheron (from asheron.wikia.com).
prefix | destination URL | usage example | actual link |
wikianswers | http://answers.wikia.com/wiki/Wikianswers | [[w:c:wikianswers:Wikianswers|Wikianswers]]
|
Wikianswers |
wikianswers | http://gaming.wikia.com/wiki/Asheron%27s_Call | [[w:c:gaming:Asheron's Call|Asheron's Call on Wikia Gaming]]
|
Asheron's Call on Wikia Gaming |
Wikia Developers Wiki | http://dev.wikia.com/wiki/Wikia_Developers_Wiki | [[w:c:dev:Wikia Developers Wiki|Wikia Developers Wiki]]
|
Wikia Developers Wiki |
wikianswers | http://www.wowwiki.com/Portal:Main | [[w:c:wowwiki:Portal:Main|WoWwiki]]
|
WoWwiki |
Several Wikimedia-Projects (and others) are ready for interwiki linking. The following are some examples of interwiki prefixes which are available by default:
prefix | destination URL | usage example | actual link |
commons | http://commons.wikimedia.org/wiki/ | [[commons:MediaWiki|Mediawiki Commons]]
|
Mediawiki Commons |
mediazilla | http://bugzilla.wikimedia.org/ | [[mediazilla:1209|Mediazilla]]
|
Mediazilla |
mediawikiwiki | http://www.mediawiki.org/wiki/ | [[mediawikiwiki:Help:Contents|Mediawiki Help]]
|
Mediawiki Help |
wikibooks | http://en.wikibooks.org/wiki/ | [[wikibooks:Main Page|Wikibooks]]
|
Wikibooks |
wikimedia | http://wikimediafoundation.org/wiki/ | [[wikimedia:Main Page|Wikimedia]]
|
Wikimedia |
wikinews | http://en.wikinews.org/wiki/ | [[wikinews:Main Page|Wikinews]]
|
Wikinews |
wikiquote | http://en.wikiquote.org/wiki/ | [[wikiquote:Main Page|Wikiquote]]
|
Wikiquote |
wikisource | http://en.wikisource.org/wiki/ | [[wikisource:Main Page|Wikisource]]
|
Wikisource |
wikispecies | http://species.wikimedia.org/wiki/ | [[wikispecies:Main Page|Wikispecies]]
|
Wikispecies |
wiktionary | http://en.wiktionary.org/wiki/ | [[wiktionary:Main Page|Wictionary]]
|
Wictionary |
wikipedia | http://en.wikipedia.org/wiki/ | [[wikipedia:Main Page|Wikipedia]]
|
Wikipedia |