Difference between revisions of "Help:Links"
J McKalling (Talk | contribs) |
J McKalling (Talk | contribs) m |
||
(7 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | {{ | + | {{Infobox Help}}We're able to create links inside articles, to either other articles or categories of the Twinsuniverse or to external sites. Linking is easy and very convenient, much more than with HTML. |
− | + | ==Twinsuniverse links== | |
− | + | ||
− | + | ||
− | + | ||
− | == | + | |
===Basic links=== | ===Basic links=== | ||
− | Internal links are links to other articles in the | + | Internal links are links to other articles in the Twinsuniverse. To add a link to another article, simply put <nowiki>"[[" before the text, and "]]"</nowiki> after it, or click on the [[Image:Insert-ilink.png]] button on the edit toolbar (see [[Help:Editing]]). Example: |
+ | <nowiki>[[Twinsen]]</nowiki> → [[Twinsen]] | ||
− | + | Remember linking to internal pages like this is case sensitive, except for the first letter. So: | |
+ | <nowiki>[[Bob]]</nowiki> '''same page as''' <nowiki>[[bob]]</nowiki> | ||
+ | <nowiki>[[Jerome Baldino]]</nowiki> '''different page as''' <nowiki>[[Jerome baldino]]</nowiki> | ||
− | + | However, we could set up a [[Help:Redirect|redirect page]] to accept different spellings. | |
− | + | ||
− | + | ===The Pipe Technique=== | |
+ | If you want to create a link to an article with (possibly totally) different text than it's name, you can do so with a method called, according to Wikipedia, the [http://en.wikipedia.org/wiki/Wikipedia:Pipe_trick Pipe trick]. To use this method, all you have to do is separate the title from the text, using the | character. Example: | ||
+ | <nowiki>Twinsen is the hero of the [[Twinsun|planet]]</nowiki> → Twinsen is the hero of the [[Twinsun|planet]] | ||
− | + | Basically, remember the following order: <nowiki>[[Article title|Text to appear in article]]</nowiki>. This makes it possible to modify the link's text to better fit the context, or to make it better readable in it: | |
+ | <nowiki>[[Some page with a long name or something|click here]]</nowiki> → [[Some page with a long name or something|click here]] | ||
===Linking to a specific section=== | ===Linking to a specific section=== | ||
− | Linking to a specific section is done using the # sign, separating the article title from the section title. | + | Linking to a specific section is done using the # sign, separating the article title from the section title. Example: |
+ | <nowiki>[[School of Magic#Role in Twinsen's adventure]]</nowiki> → [[School of Magic#Role in Twinsen's adventure]] | ||
− | + | Of cource you can use the | sign in this case as well. Example: | |
+ | <nowiki>[[School of Magic#Role in Twinsen's adventure|The role of the School of Magic]]</nowiki> → [[School of Magic#Role in Twinsen's adventure|The role of the School of Magic]] | ||
− | + | To only link to a specific section inside the same article, just use a # sign and the section's title as the target. Example: | |
+ | <nowiki>[[#Basic links]]</nowiki> → [[#Basic links]] | ||
− | + | ===Category links=== | |
+ | Normally, [[Help:Categories|creating a category link]] on a page, adds your page to the category. Example: | ||
+ | <nowiki>[[Category:Twinsun]]</nowiki> | ||
+ | |||
+ | But sometimes you'd want to create a link without actually adding the page to the category. To do this, you only need to add a colon (:) before the word "Category", like this: | ||
+ | <nowiki>[[:Category:Twinsun]]</nowiki> → [[:Category:Twinsun]] | ||
+ | |||
+ | In this case the category link works just like any other basic link. So the pipe trick works as well: | ||
+ | <nowiki>[[:Category:Twinsun|Planet]]</nowiki> → [[:Category:Twinsun|Planet]] | ||
==External links== | ==External links== | ||
− | To automatically create an external link, you can click on the [[Image: | + | To automatically create an external link, you can click on the [[Image:Insert-xlink.png]] button on the edit toolbar (see [[Help:Editing]]), and change the dummy text with your choice. To manually create a link, simply insert the URL: |
− | :<nowiki> | + | :<nowiki>http://www.example.com</nowiki> → http://www.example.com |
− | + | ||
− | If you | + | If you add it between single brackets, it becomes automatically numbered instead: |
+ | :<nowiki>[http://www.example.com]</nowiki> → [http://www.example.com] | ||
+ | :<nowiki>[http://www.example.com]</nowiki> → [http://www.example.com] | ||
+ | :<nowiki>[http://www.example.com]</nowiki> → [http://www.example.com] | ||
− | + | To get a custom text on the link, you use the pipe-trick again. But with external links you separate the URL from the text by a space: | |
− | + | :<nowiki>[http://www.example.com Some external Link]</nowiki> → [http://www.example.com Some external Link]. | |
− | [[ | + | ==Linking to the Magicball Network== |
+ | For quick linking to the [http://www.magicball.net/forum Magicball Network Forums], there are two easy to use templates, [[Template:Thread]] and [[Template:Post]]. Preferably, use those two when linking to the forum. If the address of the MBN ever changes, we'd only need to change the template and all links will be automatically changed accordingly. |
Latest revision as of 00:39, 29 December 2012
Help Contents | |
---|---|
Contents
Twinsuniverse links
Basic links
Internal links are links to other articles in the Twinsuniverse. To add a link to another article, simply put "[[" before the text, and "]]" after it, or click on the button on the edit toolbar (see Help:Editing). Example:
[[Twinsen]] → Twinsen
Remember linking to internal pages like this is case sensitive, except for the first letter. So:
[[Bob]] same page as [[bob]] [[Jerome Baldino]] different page as [[Jerome baldino]]
However, we could set up a redirect page to accept different spellings.
The Pipe Technique
If you want to create a link to an article with (possibly totally) different text than it's name, you can do so with a method called, according to Wikipedia, the Pipe trick. To use this method, all you have to do is separate the title from the text, using the | character. Example:
Twinsen is the hero of the [[Twinsun|planet]] → Twinsen is the hero of the planet
Basically, remember the following order: [[Article title|Text to appear in article]]. This makes it possible to modify the link's text to better fit the context, or to make it better readable in it:
[[Some page with a long name or something|click here]] → click here
Linking to a specific section
Linking to a specific section is done using the # sign, separating the article title from the section title. Example:
[[School of Magic#Role in Twinsen's adventure]] → School of Magic#Role in Twinsen's adventure
Of cource you can use the | sign in this case as well. Example:
[[School of Magic#Role in Twinsen's adventure|The role of the School of Magic]] → The role of the School of Magic
To only link to a specific section inside the same article, just use a # sign and the section's title as the target. Example:
[[#Basic links]] → #Basic links
Category links
Normally, creating a category link on a page, adds your page to the category. Example:
[[Category:Twinsun]]
But sometimes you'd want to create a link without actually adding the page to the category. To do this, you only need to add a colon (:) before the word "Category", like this:
[[:Category:Twinsun]] → Category:Twinsun
In this case the category link works just like any other basic link. So the pipe trick works as well:
[[:Category:Twinsun|Planet]] → Planet
External links
To automatically create an external link, you can click on the button on the edit toolbar (see Help:Editing), and change the dummy text with your choice. To manually create a link, simply insert the URL:
- http://www.example.com → http://www.example.com
If you add it between single brackets, it becomes automatically numbered instead:
To get a custom text on the link, you use the pipe-trick again. But with external links you separate the URL from the text by a space:
- [http://www.example.com Some external Link] → Some external Link.
Linking to the Magicball Network
For quick linking to the Magicball Network Forums, there are two easy to use templates, Template:Thread and Template:Post. Preferably, use those two when linking to the forum. If the address of the MBN ever changes, we'd only need to change the template and all links will be automatically changed accordingly.