Help talk:Links

=2008=

Linking to Category pages
How do I link to category or special pages? for example

Obviously is a different syntax.I want to link to that page.

211.47.123.21 - 07:40, 11 October 2008


 * There is an example of that on the Help:Links page here. Just add a colon:  Category:Consonant_Assimilation . Same trick for linking to image pages -- Harry Wood 18:44, 11 October 2008 (UTC)

Sorry I did't catch that! Thanks a lot 211.47.123.21

Anchors, Internet Explorer 8.0 and w3c
I am not sure about this anchor links to jump to a section on the same site. It not work on mediawiki sites. But it work on w3c sites like http://www.w3.org/TR/html401/about.html, therefore what's the problem? --Lastwebpage 09:14, 30 August 2008 (UTC)

How to make mailto link do First Last 
I have not figured out how to get MediaWiki to let me do this. I tried [mailto:First%20Last%20] [mailto:%20First%20Last] [mailto:First%20Last ] [mailto: First%20Last] [mailto:foo@bar.com First%20Last] [mailto:foo@bar.com%20First%20Last First Last] [mailto:%20First%20Last First Last] [mailto:First%20Last%20 First Last] None of these works.

This workaround is as close as I could come: [mailto:(First%20Last)%20foo@bar.com First Last]

Dave Yost 21:26, 2 September 2008 (UTC)


 * In this case  works and is displayed (as you wish) as [mailto:foo@bar.com First Last ]. The structure is generally the same as for normal external links:  . -- :bdk:  23:33, 2 September 2008 (UTC)


 * I think perhaps what Dave is after is for the mailto: to actually pass the recipient name to the mail program as well as the address. A standard html mailto: link (">) does do this in various clients, but is not actually compliant with [RFC1738]. Mediawiki insists on using the space to separate the link destination and link text ([mailto:An Example ] - hover to see "mailto:An" ) - which is actually "correct" behaviour. Jmb 14:29, 22 April 2009 (UTC)

How to link with a local file?
Hi there, does anyone know, how to link with a file on a local volume? e. g.  [c:\User\Martin\Alice.xls]  or   doesn't work. Thank you -Rob.


 * To allow links to local files (which may make sense in an intranet context), put this into your LocalSettings.php:
 * $wgUrlProtocols[] = "file:";

Spaces in PAGENAME

 * http://www.mediawiki.org/w/index.php?title=Help:Links&diff=218021&oldid=218020 how to solve? TechControl 15:48, 13 October 2008 (UTC)


 * Use the URL-encoded variant (PAGENAMEE). —Emufarmers(T 20:44, 13 October 2008 (UTC)
 * thanks a lot. TechControl 15:06, 14 October 2008 (UTC)

Mailto: Spaces in Outlook Short Names
[mailto:Doe, John (EKDD/1) ] doesn't work, only the string Doe is transfered into the Outlook to:

Expml: [mailto:Doe, John (EKDD/1) ]

What shall I do, to make it work? --User: EnterpriseWiki

Answer: [mailto:Doe,John%20(EKDD/1) John Doe] [mailto:Doe,John%20(EKDD/1) John Doe]

Someone jnows a less cryptic version? --User: EnterpriseWiki

more problem with mailto - using 'subject' field
Is there a way to include subject fields and other options in a mailto link in mediawiki? The HTML syntax for mailto links would be <a href="mailto:foo@bar?subject=a subject>text</a>, but this obviously fails because any space in the subject field would be interpreted as the separator... and standard html doesn't work at all. Is there any workaround for this, or some feature of the software that I have overlooked? --89.207.208.9 11:02, 12 December 2008 (UTC) Carelesshx 11:03, 12 December 2008 (UTC)


 * You must use "%20" instead of " " (space). Example:  [mailto:foo@bar?subject=a%20subject] </tt> is displayed as [mailto:foo@bar?subject=a%20subject]. I also had problems with special characters (Latin), so I had to use the hexadecimal values of ISO-8859-1 (ISO Latin 1) character encoding preceded by "%". I don't know if the characters are displayed correctly for everyone, but it worked for me. Example:  [mailto:foo@bar?subject=informa%E7%F5es&body=test] </tt> is displayed as [mailto:foo@bar?subject=informa%E7%F5es&body=test] -- 201.76.26.103 23:53, 22 January 2009 (UTC)

=2009=

Auto linking
Is there a good way to designate words or phrases that should automatically link to certain pages? For example if I have an auto-repair wiki and I want every occurence of the phrase "distributor cap" on any page to link to the "Distributor" page, is there a way to do this without manually assigning the link each time? --IP 13 January 2009
 * You can try this Extension:AutoLink

Internal Links in a new window
Does anyone know of a way (new syntax perhaps?) that allows for internal links to open up in another window? I prefer not to modify code that affects all internal links, only those that we want. Is this even possible? I know in html you can use target="_new" or "_blank" to <a> tags. Would love a Wikitext equivalent. Soonshort 09:57, 16 October 2009 (UTC)
 * Mmmm, I also would like this feature. Where can I found an overview of feature requests? Timboliu 12:34, 28 July 2011 (UTC)
 * Mmmm, me too.

Custom link title?
The default wikilink title is the target page title (this is undocumented). How do I specify a custom title that better matches the context? Example: at Bohm interpretation there is a wikilink to Copenhagen interpretation and the title is "Copenhagen interpretation". It would be much more informative to make the title "the state of every particle is described by a wavefunction". --Yecril 08:07, 19 October 2009 (UTC)
 * Which link? Anyway, you can have that result with the state of every particle is described by a wavefunction . --Nemo bis 18:05, 29 October 2009 (UTC)

Link to "Special:Allpages" with the namespace parm set
We are using Mediawiki 1.8.2. It's easy to determine an external link like http://etc that points to "all pages" with the namespace parameter set - i.e. to a dynamic list of all existing user pages or all categories in a given Wiki. Does this work in Wiki syntax too? How? Thanks. Burkhard 29 Oct 2009
 * Something like Special:Allpages/Category:? --Nemo bis 18:09, 29 October 2009 (UTC)
 * Yes that's it. Thanks a lot. Burkhard 20 Oct 2009

= 2010 =

Showing links on message pages
I want to create an internal link (to a specific wiki page) on a message page (MediaWiki:Badaccess-groups). So, when the user sees that page they will get a link to a page (access restriction) explaining more. When I add the link I see access restriction (bold, link: correct). But when a user who does not have access sees the page they see access restriction i.e. it looks to them like the nowiki tags are present.

Does anyone have a solution? --Robinson Weijman 09:04, 26 October 2010 (UTC)

Please document the "Pipe trick"
Please document the "Pipe trick" on this page, if in no other way then by providing a simple example and linking to a fuller description. I found out about it only after I, embarrassingly, wrote an extension that does the same thing. If I missed the docs at Wikipedia and Meta, chances are I'm not the only one.

Thank you! Miranche 20:12, 4 November 2010 (UTC)

Open a file with the appropriate software
Hello, how could we set to open a file with a specific software?

For example when I click on a link like it opens in MS-Word. But if I right click on it and save on my desktop, if I open it it appears as I want in Outlook. JackPotte 13:16, 11 November 2010 (UTC)

=2011=

Is it possible to display the content of one page on another page of same Wiki?
Hey there, I would like to have the content of one subpage of our Wiki to be displayed in a shorter version (perhaps headlines) in a table on our main page. Has anybody an idea how to do this. BTW I am not an expert.... Thanks! timsen, 16:55, 22 January 2011 (UTC)
 * The operation is very basic: put the link of the big page into the small one between two pairs of accolades. Then, on the big page you can choose what to not display on the other ones, between ... . JackPotte 17:55, 22 January 2011 (UTC)
 * See Help:Templates and Meta Help:Template Badon 04:21, 16 September 2011 (UTC)

Problem with double quotation marks inside title
Hey there, I've been looking for similar cases, but I haven't found anything on this yet. I have an article with double straight quotation marks in it (Foo article in "foo section"). The problem is that whenever I create a reference for that article (for example)
 * My article

and then I save the page, the part that was between the double quotes disappears, so you will only have
 * My article

Could you please help me on this? Thanks! Fladei 04:54, 24 January 2011 (UTC)


 * That shouldn't be happening. Do you have a link to your wiki?  If not, could you tell me what version you're running and whether you've implemented short URLs? —Emufarmers(T 06:46, 25 January 2011 (UTC)


 * Thank you very much for your help. It seems that this is part of the ampersand problem, so I will look on how to solve it this way.
 * Currently, this wiki is under an internal server environment, so there's no public address that would help in here.
 * The version we're running is MediaWiki	1.16.0, PHP 5.2.11 (apache2handler) and MySQL 5.5.8-log
 * Do you know of any other info that could help in here? - Fladei 15:07, 25 January 2011 (UTC)


 * Just what's on that page. If you have root, though, you shouldn't be using mod_rewrite for this: just use one of the alias methods. —Emufarmers(T 21:51, 25 January 2011 (UTC)


 * Never mind, I found that this is a bug on the FCK Editor. I just have to know how to fix it. Thanks! Fladei 19:13, 27 January 2011 (UTC)

External links without icons

 * External links without icons - is that possible using some standard markup? I want to save some space while putting a bunch of useful links into my navigation bar.
 * I found one workaround, which is not entirely a standard Wiki markup, but it works - ”plainlinks” class links don't have icon. At least that. :)
 * I added a new section that addresses using external links to link to internal pages. One of the examples shows how to use the plainlinks class. Enjoy. Badon 04:19, 16 September 2011 (UTC)

Possibility to create customized links
Is it possible to create a new customized link category to my corporate address book? charlie johnson ?

List of prefixes for wikis registered in advance (to use in InterWiki links)?
Is there some list you can look in if you want to find the prefix to a specific wiki that is registered in advance (as it says in the section about Interwiki links), such as Wikipedia, Commons, Wikia or this site (MediaWiki)? That would be really useful, especially since I in fact don't know any way at all to find the prefix to a specific wiki. For example, now I would like to link an article on the OpenGL Wiki, but I can't use an Interwiki link since I don't know the prefix. —Kri 13:49, 12 July 2011 (UTC)


 * Never mind, I think I found it ;) —Kri 13:57, 12 July 2011 (UTC)
 * Also I found you can get a list specific to a site from the interwikimap property of the siteinfo meta query API, for example [//en.wikipedia.org/w/api.php?action=query&meta=siteinfo&siprop=interwikimap the English Wikipedia]. Vadmium 13:03, 11 October 2011 (UTC).

ThaiNM
ThaiNM

Pseudolinks
Need to put this in the internal links table once bug 33437 is fixed (it doesn't work yet):

Badon 23:42, 30 December 2011 (UTC)