Difference between revisions of "Help:Links"
J McKalling (Talk | contribs) |
J McKalling (Talk | contribs) m (→Twinsuniverse links) |
||
Line 4: | Line 4: | ||
===Basic links=== | ===Basic links=== | ||
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. Example: | 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. Example: | ||
− | + | <nowiki>[[Twinsen]]</nowiki> → [[Twinsen]] | |
Remember linking to internal pages like this is case sensitive, except for the first letter. So: | 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 these different spellings. | However, we could set up a [[Help:Redirect|redirect page]] to accept these different spellings. | ||
Line 14: | Line 14: | ||
===The Pipe Technique=== | ===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: | 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: | 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. Example: | 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: | 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: | 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=== | ===Category links=== | ||
Normally, [[Help:Categories|creating a category link]] on a page, adds your page to the category. Example: | 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: | 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: | 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== |
Revision as of 18:51, 29 October 2012
Template:HelpWe'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.
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. 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 these 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 File:Button extlink.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:
- 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.