Guide to Linking

From MechQuest Wiki
Jump to: navigation, search

What is Linking?

Links are those fun blue text that you click on and they take you to a different article or web page. This guide is here to shed light on their basic use, as well as some more "advanced" techniques which can be applied to them.


How to create a Link

To create a link to an article within the MQWiki, simply do the following:

[[<Page Title>]]
  • First, you need the double brackets as shown above surrounding <Page Title>.
  • Second, you need to replace <Page Title> with whatever you want to link to.
  • (Directly underneath the article, discussion, edit, and watch tabs of each page is the Page Title. (Yes, some articles have different and/or additional tabs.) For example, this article's Page Title is Guide to Linking. Now, each and every page in the Wiki can be linked to simply by placing a Page's Title inside of double brackets.

As an example, I will create a link to the Main Page:

[[Main Page]]

Appears as: Main Page

(Hehe, as a special note, if you ever want to get to the Main Page simply click on the MQWiki "icon/pic/image/pretty looking thingie" in the upper left hand corner of every page.)


Changing Link Text

Alright, so we can create links, yay. To change the link text you would do as follows:

[[<Page Title>|<Link Text>]]
  • First, create a link as normal.
  • Second, place a "|" after what you are linking to.
  • Third, replace <Link Text> with whatever you want.

As an example, I will create a link to the Main Page that displays as MQWiki:

[[Main Page|MQWiki]]

Appears as: MQWiki


Links to articles that do not exist..

Sometimes you will see a red text link, these are links to articles that do not exist yet. If you click on it, you will be taken to an Editing page with a nice empty Edit Box that you can add things in to create the page.

Now, these can be useful. First, they let users know what needs to be added. More importantly, if you want to create an article that does not exist yet, you can create the link and then use that link to get to an editing page for you to create the article.

Links to pages outside of the Wiki

To create a link to a web page outside of the MQWiki, proceed as follows:

[<URL> <Link Text>]
  • First, use single brackets surrounding the link.
  • Second, replace <URL> with the website address you want to link to.
  • Third, place a "(Space)" after what we are linking to.
  • Fourth, replace <Link Text> with whatever you want.

For my first example, I will create a link to MechQuest:

[http://www.mechquest.com/]

Appears as: [1]
(Hmm, that's interesting, now we know why we add Link Text lmao!)

For my second example, I will use MQ Homepage as the Link Text to the MechQuest link:

[http://www.mechquest.com/ MQ Homepage]

Appears as: MQ Homepage


Redirects

You shouldn't have much need for these, but they do exist and you can create them by doing the following:

#REDIRECT [[<Page Title>]]
  • First, you input #REDIRECT followed by a "(Space)".
  • Second, add in a link to the article you want to redirect to.
  • Anyone going to an article with a redirect will automatically be sent to the linked article instead. After being redirected text appears near the top of an article indicating as much, with a link back to the redirect page. (Yes, this link can be used without being redirected again.)
  • There is no real need to actually ever use this, as most redirect pages are are created by using the move tab at the top of an article.

As an example, a Redirect to the Main Page would look like:

#REDIRECT [[Main Page]]

No "Appears as" for you this time, instead use the following link to get the general idea of what a redirect does: Whisper


Linking to Headers

To create a link to a particular header of an article outside of the MQWiki, you would do as follows:

[[<Page Title>#<Header>|<Link Text>]]
  • First, create a link as normal.
  • Second, place a "#" after the <Page Title> you are linking to.
  • Third, replace <Header> with the full header you want to direct this link to.
  • (A Header is anything that is in between 1, 2, 3, or 4 "=" signs on the Edit page of an article. In addition, for articles with a Contents Table at the top (as seen in the Tek article), every link in the Contents Table is to a header within that article.)
  • Fourth, place a "|" after the <Header>.
  • Fifth, replace <Link Text> with whatever you want.

For my first example, I will create a link to Tek directed at the Tek's Mechs header:

[[Tek#Tek's Mechs]]

Appears as: Tek#Tek's Mechs

For my second example, I will use Tek in Soluna as the Link Text to the Tek#Tek's Mechs link:

[[Tek#Tek's Mechs|Tek in Soluna]]

Appears as: Tek in Soluna

As my third and final example, here are several of my favorite Header Links:

[[Mecharoni's#Mecharoni Positions|Mecharoni Ranks]]

[[Energy Blades 101#Energy Blade Skill Levels & Belts|Energy Blade Ranks]]

[[Soluna Police Department#Soluna Police Department Ranks & Titles|SPD Ranks]]

Appears as:

Mecharoni Ranks

Energy Blade Ranks

SPD Ranks