Help:Link: Difference between revisions
mNo edit summary |
mNo edit summary |
||
Line 8: | Line 8: | ||
To create an internal link with a description other than the page's name, include the link name after the page title after a pipe. e.g. <nowiki>[[Main Page|The main page]]</nowiki> | To create an internal link with a description other than the page's name, include the link name after the page title after a pipe. e.g. <nowiki>[[Main Page|The main page]]</nowiki> | ||
{|class="wikitable" | {| class="wikitable" | ||
! Example !! Result | ! Example !! Result | ||
|- | |- | ||
| <code><nowiki>[[Main Page|The main page]]</nowiki></code> | | <code><nowiki>[[Main Page|The main page]]</nowiki></code> | ||
| [[Main Page|The main page]] | | [[Main Page|The main page]] | ||
|} | |} | ||
You don't always need to capitalize the first letter of a link for it to work like with "light", which should be lowercase except when it's the first word in a sentence. As long as [[light]] works just as well as [[Light]], then using it in this way won't be mandatory: <nowiki>[[Light|light]]</nowiki>. | |||
You can also put characters like "s" after links to change them without having to have the link display as something else. | You can also put characters like "s" after links to change them without having to have the link display as something else. | ||
{|class="wikitable" | {| class="wikitable" | ||
! Example !! Result | ! Example !! Result | ||
|- | |- | ||
Line 32: | Line 31: | ||
To create an internal link that directs to a specific location of the page, an octothorp (#) must be added after the page's name, followed by the section's name so that it may look like this: | To create an internal link that directs to a specific location of the page, an octothorp (#) must be added after the page's name, followed by the section's name so that it may look like this: | ||
{|class="wikitable" | {| class="wikitable" | ||
!Example !! Result | ! Example !! Result | ||
|- | |- | ||
| <nowiki>[[Pikmin: Wide World#Plot]]</nowiki> | | <nowiki>[[Pikmin: Wide World#Plot]]</nowiki> | ||
Line 47: | Line 46: | ||
Interwikis links are also created with two half-square brackets: <nowiki>[[<prefix name>:Main Page]]</nowiki>. | Interwikis links are also created with two half-square brackets: <nowiki>[[<prefix name>:Main Page]]</nowiki>. | ||
{|class="wikitable" | {| class="wikitable" | ||
! Example !! Result | ! Example !! Result | ||
|- | |- | ||
Line 62: | Line 61: | ||
External links lead to anywhere else. They can either be created by placing a URL directly in a page's text, or by placing a URL followed by a title surrounded by single half-square brackets. | External links lead to anywhere else. They can either be created by placing a URL directly in a page's text, or by placing a URL followed by a title surrounded by single half-square brackets. | ||
{|class="wikitable" | {| class="wikitable" | ||
!Example !! Result | ! Example !! Result | ||
|- | |- | ||
| <code><nowiki>http://www.google.com</nowiki></code> | | <code><nowiki>http://www.google.com</nowiki></code> |
Revision as of 16:06, 18 February 2023
|
Links are texts that are covered in color, unlike regular text. When you click on a link, it directs you to another page. The following is a tutorial on how to create links.
Internal links
Internal links lead to other pages on Pikmin Fanon. For example, Main Page is a link to the wiki's main page, and is created with two half-square brackets: [[Main Page]].
To create an internal link with a description other than the page's name, include the link name after the page title after a pipe. e.g. [[Main Page|The main page]]
Example | Result |
---|---|
[[Main Page|The main page]]
|
The main page |
You don't always need to capitalize the first letter of a link for it to work like with "light", which should be lowercase except when it's the first word in a sentence. As long as light works just as well as Light, then using it in this way won't be mandatory: [[Light|light]].
You can also put characters like "s" after links to change them without having to have the link display as something else.
Example | Result |
---|---|
[[Red Bulborb]]s
|
Red Bulborbs |
[[poison]]ous
|
poisonous |
To create an internal link that directs to a specific location of the page, an octothorp (#) must be added after the page's name, followed by the section's name so that it may look like this:
Example | Result |
---|---|
[[Pikmin: Wide World#Plot]] | Pikmin: Wide World#Plot |
[[Pikmin: Wide World#Plot|Check this out]]! | Check this out! |
Interwiki links
Interwiki links lead to pages on other wikis, such as Pikipedia or Wikipedia. To link to one of these pages, place an interwiki prefix before the page title. A list of allowed interwiki prefixes can be seen at Special:Interwiki.
Interwikis links are also created with two half-square brackets: [[<prefix name>:Main Page]].
Example | Result |
---|---|
[[pikipedia:Main Page]]
|
pikipedia:Main Page |
[[pikipedia:Main Page|Main page]]
|
Main page |
That being said, using link templates such as {{w}} and {{c}} for the respective destinations is preferred.
External links
External links lead to anywhere else. They can either be created by placing a URL directly in a page's text, or by placing a URL followed by a title surrounded by single half-square brackets.
Example | Result |
---|---|
http://www.google.com
|
http://www.google.com |
[http://www.google.com Google]
|