Help:Link: Difference between revisions
m 1 revision(s) |
No edit summary |
||
(14 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
__NOTOC__ | |||
There are | There are three types of links in the LabVIEW Wiki: | ||
# | # [[Help:wikilink|Internal links]] to other pages in the labVIEW Wiki | ||
# | # External links to other websites | ||
# [[Help:Interwiki | # [[Help:interwiki|Interwiki]] links to sites linked with LabVIEW Wiki | ||
To add an internal link, enclose the name of the page you want to link to in double square brackets. When you save the page, you'll see the new link pointing to your page. If the page exists already, it is displayed in | == Internal links (wikilinks)== | ||
To add an [[Help:Wikilink|internal link]], enclose the name of the page you want to link to in double square brackets. When you save the page, you'll see the new link pointing to your page. If the page exists already, it is displayed in <u>black</u>, empty pages are displayed in <u>red</u>. Selflinks to the current page are not transformed in URLs but displayed in '''bold'''. | |||
The first letter of the target page is automatically capitalized and spaces are represented as underscores (typing an underscore in the link will have a similar effect as typing a space, but is not recommended, since the underscore will also be shown in the text). | The first letter of the target page is automatically capitalized and spaces are represented as underscores (typing an underscore in the link will have a similar effect as typing a space, but is not recommended, since the underscore will also be shown in the text). You are highly encouraged to link to internal LabVIEW Wiki articles using this syntax. For more information see [[LabVIEW_Wiki:Manual_of_Style|Manual_of_Style]] | ||
== How to link == | == How to link == | ||
Line 17: | Line 17: | ||
|{{Hl3}}|'''You get''' | |{{Hl3}}|'''You get''' | ||
|- | |- | ||
|Internal link | |[[Help:Wikilink|Internal link]] | ||
|<tt><nowiki>[[ | |<tt><nowiki>[[Home]]</nowiki></tt> | ||
|[[Main Page]] | |[[Main Page]] | ||
|- | |- | ||
|Piped link | |[[Help:Piped link|Piped link]] | ||
|<tt><nowiki>[[ | |<tt><nowiki>[[Home|different text]]</nowiki></tt> | ||
|[[Main Page|different text]] | |[[Main Page|different text]] | ||
|- | |- | ||
|Anchor link | |Anchor link (Section Link) | ||
|<tt><nowiki>[[#External links|Anchor link]]</nowiki></tt> | |<tt><nowiki>[[#External links|Anchor link]]</nowiki></tt> | ||
|[[#External links|Anchor link]] | |[[#External links|Anchor link]] | ||
Line 34: | Line 34: | ||
|- | |- | ||
|External link,<br /> | |External link,<br /> | ||
named (recommended) | |||
|<tt><nowiki>[http://mediawiki.org MediaWiki]</nowiki></tt> | |<tt><nowiki>[http://mediawiki.org MediaWiki]</nowiki></tt> | ||
|[http://mediawiki.org MediaWiki] | |[http://mediawiki.org MediaWiki] | ||
|- | |- | ||
|External link,<br /> | |External link,<br /> | ||
unnamed | unnamed (not recommended) | ||
|<tt><nowiki>[http://mediawiki.org]</nowiki></tt> | |<tt><nowiki>[http://mediawiki.org]</nowiki></tt> | ||
|[http://mediawiki.org] | |[http://mediawiki.org] | ||
Line 49: | Line 49: | ||
|- | |- | ||
|Interwiki link | |Interwiki link | ||
|<tt><nowiki>[[ | |<tt><nowiki>[[openg:Main Page]]</nowiki></tt> | ||
|[[ | |[[openg:Main Page]] | ||
|- | |- | ||
|mailto | |mailto | ||
Line 69: | Line 69: | ||
|} | |} | ||
== | == Linking to a section == | ||
Sometimes it is necessary to refer to a section of a page when linking, rather than the whole page. You can create a link to any subheading on any page in LabVIEW Wiki by including a # followed by the subheading at the end of a link. For example: [[Help:Links# How to link]]. In all section links, be sure to use a piped link for readability. Using a piped link, the previous example looks like this: [[Help:Links# How to link|How to Link]]. If a section title changes, rather than go red/inactive, the link will lead to the top of the linked page. Keep in mind that redirects do not follow section links, making it useless to include them there. | |||
[[Category:Help| | ==See also== | ||
*[[Help:Piped link|Piped link]] - Piped internal links | |||
*[[Help:Wikilink|Wikilinks]] - Internal links | |||
*[[Help:Interwiki|Interwiki]] - Interwiki links | |||
*[[Help:Redirect|Redirects]] | |||
[[Category:Help|{{PAGENAME}}]] |
Latest revision as of 06:04, 30 September 2007
There are three types of links in the LabVIEW Wiki:
- Internal links to other pages in the labVIEW Wiki
- External links to other websites
- Interwiki links to sites linked with LabVIEW Wiki
Internal links (wikilinks)
To add an internal link, enclose the name of the page you want to link to in double square brackets. When you save the page, you'll see the new link pointing to your page. If the page exists already, it is displayed in black, empty pages are displayed in red. Selflinks to the current page are not transformed in URLs but displayed in bold.
The first letter of the target page is automatically capitalized and spaces are represented as underscores (typing an underscore in the link will have a similar effect as typing a space, but is not recommended, since the underscore will also be shown in the text). You are highly encouraged to link to internal LabVIEW Wiki articles using this syntax. For more information see Manual_of_Style
How to link
Description | You type | You get |
Internal link | [[Home]] | Main Page |
Piped link | [[Home|different text]] | different text |
Anchor link (Section Link) | [[#External links|Anchor link]] | Anchor link |
External link | http://mediawiki.org | http://mediawiki.org |
External link, named (recommended) |
[http://mediawiki.org MediaWiki] | MediaWiki |
External link, unnamed (not recommended) |
[http://mediawiki.org] | [1] |
External link, same host unnamed |
[http://{{SERVERNAME}}/pagename] | [2] |
Interwiki link | [[openg:Main Page]] | openg:Main Page |
mailto | mailto:info@example.org | mailto:info@example.org |
mailto unnamed | [mailto:info@example.org] | [3] |
mailto named | [mailto:info@example.org info] | info |
redirect | #REDIRECT [[Main Page]] | → Main Page |
Linking to a section
Sometimes it is necessary to refer to a section of a page when linking, rather than the whole page. You can create a link to any subheading on any page in LabVIEW Wiki by including a # followed by the subheading at the end of a link. For example: Help:Links# How to link. In all section links, be sure to use a piped link for readability. Using a piped link, the previous example looks like this: How to Link. If a section title changes, rather than go red/inactive, the link will lead to the top of the linked page. Keep in mind that redirects do not follow section links, making it useless to include them there.
See also
- Piped link - Piped internal links
- Wikilinks - Internal links
- Interwiki - Interwiki links
- Redirects