Help:Link: Difference between revisions
| Line 17: | Line 17: | ||
|- | |- | ||
|[[Help:Wikilink|Internal link]] | |[[Help:Wikilink|Internal link]] | ||
|<tt><nowiki>[[ | |<tt><nowiki>[[Home]]</nowiki></tt> | ||
|[[Main Page]] | |[[Main Page]] | ||
|- | |- | ||
|[[Help:Piped link|Piped link]] | |[[Help:Piped link|Piped link]] | ||
|<tt><nowiki>[[ | |<tt><nowiki>[[Home|different text]]</nowiki></tt> | ||
|[[Main Page|different text]] | |[[Main Page|different text]] | ||
|- | |- | ||
| Line 33: | Line 33: | ||
|- | |- | ||
|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 48: | Line 48: | ||
|- | |- | ||
|Interwiki link | |Interwiki link | ||
|<tt><nowiki>[[ | |<tt><nowiki>[[openg:Main Page]]</nowiki></tt> | ||
|[[ | |[[openg:Main Page]] | ||
|- | |- | ||
|mailto | |mailto | ||
Revision as of 05:19, 30 September 2007
There are two sorts of links in the LabVIEW Wiki:
- Internal links to other pages in the labVIEW Wiki
- External links to other websites
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