Help talk:Link

From Meta, a Wikimedia project coordination wiki
Jump to: navigation, search

hrwiki.org needs help![edit]

As you can see from this conversation between our two top admins JoeyDay and Tom we are having a few problems with Section Linking. I'm sorry if this is the wrong place to be posting this but I didn't know where else to turn. If possible, please direct your comments here. Any help is greatly appreciated as we are all just learning. Thank you very much! ~Hobo

Test:

http://www.hrwiki.org/index.php?title=stunt_double#Easter_Eggs

http://www.hrwiki.org/index.php?title=stunt_double%23Easter_Eggs

http://meta.wikimedia.org/w/wiki.phtml?title=Stunt_double#Easter_Eggs

http://meta.wikimedia.org/w/wiki.phtml?title=Stunt_double%23Easter_Eggs

I don't know the answer, but a difference is that the 2nd line gives a page with # in it, while the 4th does not. The 1st line works and can be used as workaround.--Patrick 07:04, 21 Sep 2004 (UTC)

Style of help pages[edit]

This is just a terribly written help page. For people new to using Wikimedia it's entirely unclear how linking is supposed to be done. How about some examples, ranging from simple to difficult? How do I link to an external page, and give it a different name, in other words, if I want to link to http://meta.wikimedia.org but I want the text to just read WikiMedia?

In general the help pages are in the style of a reference manual. Additional tutorial pages could in some cases be useful, and are welcome. I added, with a link copied from the bottom of the page: For some basics, see also Help:Editing#Links, URLs.--Patrick 10:04, 9 May 2005 (UTC)
That section seems to have disappeared! --SV Resolution 16:03, 30 August 2005 (UTC)

Linking to old versions of modules[edit]

In Help:Hyperlink#Miscellaneous linking to old versions is mentioned, but no instructions are given. If you know how to do this, could you add it or add a link to an existing document that explains it?

I think linking to an older version of a TALK page is a better way of archiving content than forking a new copy of the old talk page. An internal link or even an interwiki link to the ?oldid= page would help.

Thanks --SV Resolution 16:01, 30 August 2005 (UTC)

Link to Edit page with returnto?[edit]

Is there any way to construct an Edit link for a page, but specify that hitting the Save page button should return you to a diferent page?

The login page supports a "returnto" URL parameter; does anything like this exist for "action=edit"? --MarcSherman 22:12, 18 November 2005 (UTC)

Linking to a page's talk page? (inter-namespace links)[edit]

Hi, on meta-wiki I want to say "See the discussion in this old page's _Talk_ page" and have _Talk_ be a link. I know I can create a link Talk:the page name, but this will break when the page is renamed. Is there a way to generate a link to the same name in a different namespace, like Talk:##CURRPAGE## ? I though there was a variable for the current page name, but I can't find it. Many thanks. You can e-mail me info@ myname.com -- skierpage 06:36, 27 April 2006 (UTC)

This? 69.178.90.247 07:46, 11 May 2006 (UTC)
[[Talk:{{{pagename}}}]]
That's an example for {{ns:1}} = Talk, talk pages of articles in the main namespace.
Elsewhere you could try to add _talk, e.g. [[Help_talk:{{PAGENAME}}]] = Help_talk:Link (this page). Fails for other languages, a German "Hilfe_talk" won't work, it's "". If what you want is the talk page of the actual page whereever you are check out {{TALKPAGENAME}} = Help talk:Link. -- Omniplex (w:t) 19:28, 11 May 2006 (UTC)
P.S.: See also Help:Variable, Help:Colon function, and Help:Magic words.

Link to local/network files non-http[edit]

Hello everybody,

I want to use MediaWiki to implement a local knowledge base including links to files stored on a samba-server share. E.g. "\\vulcan\source\main.c".

  • It does not work to put this share in double brackets (he will start an article with that name)
  • I cannot link via [[file://...]]
  • Currently there is only the quick&dirty way to allow http tags like <a href="...">File</a>

I am a bit lost. I cannot put the data on a webserver (I have to take care of User Rights).

Can anyone help me about this? Thanks, Andreas

[[link]]] is normally supposed to be a local SQL data (from the POV of the Wiki server), or an Interwiki link as defined in your Interwiki map, stuff like mediazilla:, google:xyzzy, and what else.
From that we're sure that any HTTP GET with one parameter works if it's configured. Other protocols (not HTTP, e.g. HTTPS, FTP, GOPHER, FILE, etc.) are a different matter.
I don't recall seeing any in the Interwiki sources, which doesn't mean anything, I also haven't found the precise place where mw: and foundation: are dedfined (no Interwiki links, those are Mediawiki internal prefixes like m: etc.).
But I vaguely recall a setting "allowed protocols" elsewhere, and file:// is something that must not be allowed per default. Check mw:Help:Configuration settings, maybe you find what you need. -- Omniplex (w:t) 18:31, 7 May 2006 (UTC)

Add this to LocalSettings.php: array_push($wgUrlProtocols, "file://");

Typo?[edit]

In the section "Interwiki links to the same project", it says "MediaWiki does not detect whether or not the target page of an interwiki list exists,". I think "interwiki list" should be "interwiki link".

Meta master updates?[edit]

Sorry if this in in the wrong place...

How often do the Help pages for other wiki projects get updated from the master pages here? There are several sections in this version that are missing from the wiki pages on Wikipedia:Help:Link, and I am wondering when this event occurs? --Tsuji 05:20, 7 August 2006 (UTC)

A few times somebody used a bot for automatic updating, but he has stopped. Anybody, including you, can copy the page.--Patrick 09:50, 7 August 2006 (UTC)

Replacing the EDIT link for sections[edit]

I've got an interesting problem for y'all: I have a poorly designed template (originally written by me =D ) on a WIKI that I help maintain. The problem is, the section headers are included on the template page itself, so the edit links next to them on a page that the template is transcluded onto point to the relevant section of the template itself, rather than the page it's on. I was trying to figure out how to replace the edit links using __NOEDITSECTION__ and a hacked version of the edit links themselves (all on the same line), a la

<div class="editsection" style="float:right;margin-left:5px;"><nowiki>[</nowiki><span class="plainlinks">
[{{fullurl:{{FULLPAGENAME}}|action=edit&section=2}} edit]</span>]</div>

Experimenting with various placements of this code on the template, the closest I came was a bad-looking link the same size as the header, with the following code (again, all on the same line):

== Header_Title <div class="editsection" style="float:right;margin-left:5px;"><nowiki>[</nowiki>
<span class="plainlinks">[{{fullurl:{{FULLPAGENAME}}|action=edit&section=2}} edit]</span>]</div> ==

Can anyone help me out with this? Dinoguy1000 Talk 01:59, 10 October 2006 (UTC)

Disabling automatic capitalization of first letters[edit]

hi mediawiki automaticly capitalized the first letter of each article, categroy or whatever. i dont like that (for example when i want to create an article named "vServer" then i dont want an article named "VServer")...

can i disable this feauture? why does this feature exists?

regards martin

Yes, on your own site you can disable it, see mw:Manual:$wgCapitalLinks.--Patrick 16:46, 20 November 2006 (UTC)
thanks, that solved my problem :) martin

Laying pipe[edit]

I'm really confused by the linking system -- specifically, the fact that internal links require a pipe (|) if you want to specify the link text, while external links require a space instead. Why is it done so inconsistently? I know Wiki page names can contain spaces, but URLs can't contain pipes, can they? ~ CZeke 23:48, 28 November 2006 (UTC)

And why is it easier to type an external URL than an internal link? One bracket verses two. 59.112.48.235 19:06, 1 April 2007 (UTC)

URLs in external links[edit]

How can I use the $wgUrlProtocols to add the C-SPAN video link url base "rtsp://etc." to, for example, my reference [1] in [1]? Below is shown the help section that is lacking.

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: wikimedia gives wikimedia (see also Help:Piped link) [ target ] - these are automatically labelled with serial numbers 1, 2, 3, ...: [2] 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.

a's and b's versus words[edit]

I don't quite remember where I learned this - probably from a book I recently read (either Dragons of Eden or Tipping Point) - but I think that if the a's and b's from http://en.wikipedia.org/wiki/Help:Link#Wikilinks were replaced with words (nothing complex or storylike - just cat, dog, shoe, whatever) that section would be /much/ easier to read. The a's and the b's get jumbled together as it is right now. 72.94.11.57 02:30, 12 February 2007 (UTC) http://en.wikipedia.org/wiki/User:The_freddinator (send responses to my wikipedia account)

How to link to page opening in new window (target attribute in html)?[edit]

Is there any way to link to a page or URL that opens in a new browser window?

See:
Karmela 15:38, 12 October 2007 (UTC)

How can I link an URL with an image?[edit]

Hallo,

in HTML this is possible

<a href="home.htm"><img src="button1.jpg" width="160" height="34" border="0" alt="Home"></a>

but is this possible in Wikimedia? Thanks -- Jlorenz1 14:39, 16 February 2007 (UTC)

Automatically hiding section links with pipe[edit]

Quoting: "A pipe '|' immediately before the closing bracket pair ']]' creates a piped link which hides the first prefix of the link and the part in parentheses when it is displayed." What about [[page#section | ]] -- will this produce page? 59.112.48.235 19:04, 1 April 2007 (UTC)

No, and it would not be very useful, this link label would often not be the most suitable.--Patrick 23:17, 1 April 2007 (UTC)

Linking to PDFs and MS office docs[edit]

I'm trying to find out how, or if, MediaWiki editors can link to PDF documents. We have a need for a site where people can share and comment on documents, not just on existing web pages. In the FAQs there's a question on linking to PDFs, but no answer. Can anyone help?

You can make an external link to any URL, including one of a PDF file, etc. For uploading see Help:Images_and_other_uploaded_files#Supported_file_types.--Patrick 06:45, 2 April 2007 (UTC)

template:anchor has changed[edit]

Halló! fullurl:templete:anchor|action=history has changed. Please correct the page if required. Thanks in advance! Best regards ·‎Gangleri·Th·T·email me·‎ 01:25, 1 December 2007 (UTC)

Icons appearing after external links[edit]

Hi, I notice that when an external link to a website or a PDF file is split over two or more lines, the arrow or PDF icon that usually appears at the end of the link disappears. Can this be fixed? — JackLee 21:24, 18 May 2008 (UTC)

Anchors, Internet Explorer 8.0 and w3c[edit]

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? --80.132.42.57 09:11, 30 August 2008 (UTC)

Link to special page with parameter[edit]

Is it possible to create an internal Link to a special page (for example) with parameters? Example usage: a link to Special:AllPages with URL parameter &namespace=10, which lists all templates --JP

As far as I know you can't. You can use [{{FULLURL:Special:Allpages|namespace=10}}] though. --Erwin(85) 15:21, 31 August 2008 (UTC)
Try this syntax, http://meta.wikimedia.org/wiki/Special:PrefixIndex/<namespacename>:<prefix>
such as, Special:PrefixIndex/Template: ----FGrose 21:36, 24 March 2009 (UTC)

Maximum Number Of Links[edit]

Is there a limit to the number of hyperlinks one page can have? On our company wiki, we have a terminology page which will contain 3000+ links. But when I create only 100 or so hyperlinks and press Save, the page goes blank - it is not displayed at all. Does anyone have a solution for this? Robinson Weijman 14:29, 17 September 2008 (UTC)

If anyone out there does have an answer, I'd be really grateful if you'd write it here. Please Help! --Robinson Weijman 11:01, 11 December 2008 (UTC)

Subpage relative wikilinks are not like relative hyperlinks[edit]

For a normal Web server, e.g. Apache httpd, having a page at "a/b" implies that a is a directory and so "a" is equivalent to "a/". MediaWiki has it different, since "a/" usually does not exist.

comparison of hyperlinks and wikilinks at "x/a/b"
relative path hyperlink means wikilink means
c x/a/c c
/c c x/a/b/c
.[/] x/a/ undefined
./c x/a/c undefined
.. x/ undefined
../ x/ x/a
../c x/c x/a/c

--Yecril71pl 21:45, 26 May 2010 (UTC)

SubPages[edit]

Yeah I always make it,First it see below.

First I put User:KnuxD/SubPage.

I always make it in Wikis. KnuxD 12:57, 3 August 2010 (UTC)

linking to words[edit]

is it possible to link to superscript numbers? sample: http://www.theopedia.pl/pl/Wj_22. i tried {{anchorcode:20}} and [[#20]].it doesn't work.

You have to prepare the target page, see "Generic anchor" at Help:Link#Manual anchors.--Patrick (talk) 10:58, 18 October 2011 (UTC)

so on first page i should write: <span id="test">some text</span> and on the second page: {{anchorcode:test}} or [[#test]] ? maybe i'm not clear...i don't want to link words on the same page but on the other. not to a heading but a word (in case of bible it's important because it's parts are numbered like: 23 bible text).so i want to link to that number 23.

Put <span id="23"><sup>23</sup></span> instead of <sup>23</sup>, then you can link to it with [[Wj 22#23]].--Patrick (talk) 23:23, 20 October 2011 (UTC)

thank you, works great!

Newlines[edit]

Perhaps some note should be added about how newlines within links are handled.[3] Nemo 13:43, 18 October 2011 (UTC)

Done.--Patrick (talk) 08:54, 20 October 2011 (UTC)

Limit is 255 bytes[edit]

Link maximum length is 255 bytes (UTF-8)

[[aaaaaaaaaabbbbbbbbbbccccccccccddddddddddeeeeeeeeeeffffffffffgggggggggghhhhhhhhhhiiiiiiiiiijjjjjjjjjjaaaaaaaaaabbbbbbbbbbccccccccccddddddddddeeeeeeeeeeffffffffffgggggggggghhhhhhhhhhiiiiiiiiiijjjjjjjjjjaaaaaaaaaabbbbbbbbbbccccccccccddddddddddeeeeeeeeeeffffff|A link containing 256 bytes (too long)]]

--DavidL (talk) 10:28, 7 March 2012 (UTC)

What's up with http://meta.wikimedia.org/wiki/Help:Link ??[edit]

It is all messed up, there is some text above the actual page, I believe there is a "Ass Pus" banner !The preceding unsigned comment was added by 213.33.91.2 (talk • contribs) .

A case of simple vandalism, since repaired (see also here). Regards, HaeB (talk) 13:36, 9 March 2012 (UTC)

How do I create and anchor on a page without using heading?[edit]

I'm making an EXTREMELY looong table on my wiki and would like to be able to create a table of contents at the top of the page to jump to certain sections. How do I create and anchor on a page without using heading? My wiki doesn't have <html> or <a name="xxx"> available to me to do it like I would on a normal web page... -- Technical 13 (talk) 20:14, 24 March 2012 (UTC)

<span id="anchorname"></span>. Nemo 21:11, 24 March 2012 (UTC)

REQUEST: "First Color TV Shows"[edit]

We should have a listing for the very first TV shows broadcasted in color. The first series, the first special, the first sitcom, the first game show, the first ball game ever in color nationally etc. etc. So far Wikipedia does not even have a sub-listing for it. Would one of you please make an advanced request for long time TV fans please. Thank You very much.

  • I suggest taking your request to the Wikipedia of your local language if the article doesn't already exist. For example, on the English Wikipedia, you can request such an article on WP:RA. Good luck! Technical 13 (talk) 11:38, 4 August 2013 (UTC)