Jump to content

Help:Hyperlinks: Difference between revisions

From LinuxMCE
Mcefan (talk | contribs)
Mcefan (talk | contribs)
No edit summary
 
(9 intermediate revisions by the same user not shown)
Line 9: Line 9:
:The pipe symbol ( '''<nowiki>|</nowiki>''' ) is the separator between the page name and the text to display for internal links.
:The pipe symbol ( '''<nowiki>|</nowiki>''' ) is the separator between the page name and the text to display for internal links.
<br>
<br>
A [[Help:Link|link]] in external link style can be of the forms:
A link in external link style can be of the forms:
*''target'': <nowiki>http://meta.wikimedia.org/</nowiki> is rendered as http://meta.wikimedia.org/
*''target'': <nowiki>http://meta.wikimedia.org/</nowiki> is rendered as http://meta.wikimedia.org/
*[ ''target'' ''label'' ], with a blank space in between: <nowiki> [http://meta.wikimedia.org/ wikimedia] </nowiki> which gives [http://meta.wikimedia.org/ wikimedia]   
*[ ''target'' ''label'' ], with a blank space in between: <nowiki> [http://meta.wikimedia.org/ wikimedia] </nowiki> which gives [http://meta.wikimedia.org/ wikimedia]   
Line 25: Line 25:
::*Use "<nowiki> [URL Text to display]</nowiki>" for external links.<br>
::*Use "<nowiki> [URL Text to display]</nowiki>" for external links.<br>
<br>
<br>
==Linking to a page==
====Based on a [http://en.wikipedia.org/wiki/Url URL]====
<pre>
[http://location/url Text to display]
http://WikiURL/Category:Page_name
http://WikiURL/Page_name
WikiURL on this site is {{SERVER}}/Joomla/components/com_joomlawiki/index.php/
</pre>
[http://en.wikipedia.org/wiki/Wikipedia:Tutorial_(External_links) See more on wikipedia.]<br><br>
====Within this wiki====
<pre>
[[Page_Name]]
[[Namespace:Page_Name]]
</pre><br><br>
===Linking to a heading on a page===
<nowiki> 
http://WikiURL/Category:Page_name#heading
</nowiki>
==== Within this wiki====
<pre>
[[Namespace:Article]]
[[Target page#Target section|display text]]
{{SERVER}}{{localurl:Page_name#Section}}
[[Namespace:Article#heading|display text]]
</pre>
====On the same page====
The variables construct that refer to the page is <nowiki>{{NAMESPACE}}:{{PAGENAME}}</nowiki>.<br>
The '''#''' pound sign is the section tag. [[#On the same page]] would link to this section when you insert it on this page.
<pre>
[[#Section_title]]
</pre>
The fully qualified path is <strong>
<pre>{{NAMESPACE}}:{{PAGENAME}}#Section_title
</pre></strong>
{{p}}
===Linking to the table of contents===
<pre>[[page#toc#]]</pre>
{{p}}
==Linking to a category==
Place a colon before the keyword ''Category''
<pre>
[[:Category:Category_name]]
[[:Category:Category_name|Display text]]
</pre>
{{p}}
==Liking to a special page==
Special pages can be opened with <nowiki>{{Special:PageName}}</nowiki>.
See list of SpecialPages: {{Special:SpecialPages}}
{{p}}

Latest revision as of 05:29, 30 September 2012

Home | Editing help | Table of contents (2)



This article shows you how interlink your pages.

Symbols

The link symbols are the square bracket: [ ]
To link to articles, use the double square brackets: [[ ]].
For URLs, single brackets are used: [ ]
The pipe symbol ( | ) is the separator between the page name and the text to display for internal links.


A link in external link style can be of the forms:

  • target: http://meta.wikimedia.org/ is rendered as http://meta.wikimedia.org/
  • [ target label ], with a blank space in between: [http://meta.wikimedia.org/ wikimedia] which gives wikimedia
  • [ target ] - these are automatically labelled with serial numbers 1, 2, 3, ...: [http://meta.wikimedia.org/] gives [1]

The target is a URL which can start with "http://" or "ftp://";

"file://" does not work by default. If enabled it only works in MSIE. To enable it, add a $wgUrlProtocols entry to LocalSettings.php; see the $wgUrlProtocols in DefaultSettings.php for example.

You can use the Internal Link button from the Edit Toolbar to insert a link on the page.
To manualy create a link, enclose the URL within square brackets ( [[ ]] ).
  • To link to a page on the wiki, use "[[Page_Name]] "
  • Use " [URL Text to display]" for external links.


Linking to a page

Based on a URL

[http://location/url Text to display]
http://WikiURL/Category:Page_name
http://WikiURL/Page_name
WikiURL on this site is {{SERVER}}/Joomla/components/com_joomlawiki/index.php/

See more on wikipedia.

Within this wiki

[[Page_Name]]
[[Namespace:Page_Name]]



Linking to a heading on a page

  
http://WikiURL/Category:Page_name#heading

Within this wiki

[[Namespace:Article]]
[[Target page#Target section|display text]] 
{{SERVER}}{{localurl:Page_name#Section}}
[[Namespace:Article#heading|display text]]

On the same page

The variables construct that refer to the page is {{NAMESPACE}}:{{PAGENAME}}.
The # pound sign is the section tag. #On the same page would link to this section when you insert it on this page.

[[#Section_title]]

The fully qualified path is

{{NAMESPACE}}:{{PAGENAME}}#Section_title



Linking to the table of contents

[[page#toc#]]



Linking to a category

Place a colon before the keyword Category

 [[:Category:Category_name]]
 [[:Category:Category_name|Display text]]



Liking to a special page

Special pages can be opened with {{Special:PageName}}.

See list of SpecialPages: Special:SpecialPages