Help talk:Links

Internal Links to Actions?
Is there a way to construct an internal link to a page action?

E.g. [ EDIT] would provide a link to edit the current page, but it would be shown as "external"... I'd like to have an internal link to do the same.


 * I don't think there is an easy solution to this. If you are self referencing the SAME server it will put the little tag after the link (or a padlock if it is on https)), this is because the external link (wikitext '[') constructs an anchor tag with ... . You could remove all of the image symbols appended to external links in the CSS

background: none; padding-right: 0; } See Help:Links. --Zven 23:02, 11 November 2007 (UTC)
 * 1) bodyContent a.external,
 * 2) bodyContent a[href ^="gopher://"] {
 * Well, you already nearly gave the easy solution ;-) it's no internal link, but just a small change to the CSS to only eliminate the icon in links to your own server, leaving "real" external links as before - THX!

background: none; padding-right: 0; }
 * 1) bodyContent a[href ^="http://name-of-your-server.tld"] {
 * That is worth documenting if it works. It is probably a good idea to use the variable inside the CSS (if we can), but to do this you cannot use  ...  tags, it seems you must space bad each line e.g.

background: none; padding-right: 0; } self references the server it is on      background: none; padding-right: 0; } --Zven 22:20, 12 November 2007 (UTC)
 * 1) bodyContent a[href ^="http://""] {
 * 1) bodyContent a[href ^="http://""] {
 * we cannot use, as MediaWiki:Monobook.css is imported raw (see page source of any page) – however, manually including the server name works fine for me. --NoLuck 14:42, 22 November 2007 (UTC)

Automatic Links?
I would like to know whether there is a way to automatically add links to all text containing a certain key word like doing a find and replace for Home and substituting it for the link to home.

External Links Through Image Click
How is this possible?


 * Not possible within the software itself, but can be done using a template. See Template:Click for details. --HappyDog 15:00, 26 September 2006 (UTC)

Link to a file on a samba share...
I'm using MediaWiki on a corporate intranet. Unfortunately, there are a bunch of docs on a SharePoint server, which are usually referenced via an url that begins with "file:// " or something similar. There's no mention of this kind of link on this help page. If it's not supported, the page should at least say so.


 * MediaWiki supports it, providing you configure the appropriate setting in LocalSettings.php, but you may find that your browser blocks "file://" links from remote websites, as they are a major security risk. Also, are you sure that all users of the wiki will have the same local address of the samba files?  If not then this method cannot work anyway.  It would be better if you could give your samba share an address accessible via the http: protocol (e.g. http://samba.localintranet/   Adds the page to the Category, but dose not produce a link  (i.e. i don't want to add the page to the category) the only way i can think to do it is link this  


 * It's a simple trick, but knowledge is the critical part. You prefix the link target with a colon, like this:
 * The colon at the front causes special links (such as categories and images) to be "escaped" and dealt with as normal. robchurch | talk 08:08, 1 November 2006 (UTC)
 * The colon at the front causes special links (such as categories and images) to be "escaped" and dealt with as normal. robchurch | talk 08:08, 1 November 2006 (UTC)

Creating a back link
I have multiple ways to get to a page, and would like to provide a simple wiki link to execute the browsers back function. Is there a way to do this?


 * Yes - click the 'back' button in your browser :-) --HappyDog 19:37, 7 February 2007 (UTC)


 * Not funny, really. Most users do not use this button ... may be they do not know about ... so it is really needed. --80.240.102.105 10:32, 4 October 2007 (UTC)


 * Then educate your users - teach them to use what they have rather than creating a new button and teaching them to use that - that way they will be able to navigate the whole internet, and not just your site. --HappyDog 12:26, 4 October 2007 (UTC)


 * There's no wiki syntax to acheive this. You would have to write an extension which output the required HTML ( Back )
 * There are various arguments against JavaScript back links though.
 * -- Harry Wood 10:20, 20 December 2007 (UTC)

New user of Wiki needs help with local file access
I have access to a wiki site on an internal corporate intranet. I saw the post above about accessing internal files but I don't need to access files from a sharepoint. They are simply on a corporate shared drive. Is there an easy way to do this? If so, can you help me by spelling out the coding? I am quite new at this and am slowly coming up to speed on the basics. I tried this without success. If I do this it tacks the filename onto the wiki address. Help appreciated. Thanks.


 * Adapt the settings (see m:Help:URL), then I think it is like [file://c:\filename.doc filename] (although on my personal wiki it does not work, as mentioned above it may be that the browser refuses this for security, or there may be a setting on my browser that has to be changed); filename works for me, but the file needs to be on the localhost part of the drive.--Patrick 15:17, 8 May 2007 (UTC)

How to translate the links?
Hi. I was considering translating this into Finnish, but then I realized something. If I put something like Luokka:Foobar instead of Category:Foobar, it will either look funny on this site (as these subpages are created under the English language user interface, or it will look funny eventually when these pages are copied over to an other site where there actually is a Finnish language MediaWiki localisation in use in the interface...

So any pointer on what we should do at this stage of translating these? -- Cimon Avaro 22:42, 21 April 2007 (UTC)


 * On this site there is only one category namespace, you cannot use Luokka. More generally, to have flexibility when copying pages to another site, content that should depend on the site, such as a namespace prefix, can be put in a template. The wikitext of the pages can be the same on both sites, while there are corresponding templates with different content. See also m:Help:Localisation.--Patrick 10:28, 23 April 2007 (UTC)


 * An example (not multilingual) is with corresponding w:Template:H:h etc. The help pages on Meta and the English Wikipedia have the same wikitext, but site-specific content in this and other templates.--Patrick 10:43, 23 April 2007 (UTC)


 * Actually, that isn't fully correct. You are right that there is only the 'category' namespace (not 'Luokka' or any other language versions), and that only English namespaces are valid on this site, however the English names will work on any site as well as the local names in the language of the site.  This is because the canonical names are always available (to allow things like the MediaWiki: namespace to work) and they match the English names.
 * I know that but that was not the question. The question was how to avoid that because "it looks funny" on the Finnish site.--Patrick 14:25, 8 May 2007 (UTC)
 * Therefore, the answer is that you should use 'Category:', 'Image:', etc. regardless of the language.
 * Please also note that the purpose of this site is different from that of meta. We aim to provide help content that can be imported into a fresh wiki, rather than help content that is synchronised between multiple wikis, so the use of templates in the manner described above is considered a 'Bad Thing' on this site.
 * --HappyDog 01:40, 7 May 2007 (UTC)
 * For providing help content that can be imported into a fresh Finnish wiki it seems that pages need to have Finnish names, not English names with /fi like Help:Links/fi.--Patrick 15:46, 8 May 2007 (UTC)

External Links In New Window
Is there a simple way of creating a link to a site that will open up in a new window?

Normally in html you would add the target=new to the  tag.


 * The FAQ names a JavaScript "hack" to do this - see Manual:Opening_external_links_in_a_new_window (the code there seems a bit out of date, though...)
 * btw: in HTML it would be target=_blank – target=new only opens a new window the first time you encounter such a link as it opens it in a named window (more exactly: frame) with the name "new" (if that exists the link will be displayed there) – see Frame target names --NoLuck 14:27, 22 November 2007 (UTC)

Internal link to page version
Is there a way to link to a page version instead of doing it via external link (http://.../wiki/index.php?title=MyDoc&oldid=1592) ? --Hugoyar 16:05, 23 January 2008 (UTC)