I'm trying to create 2 different links on a Wikipedia Artist page. One link should go to a website called "Insert [IMG]" located at www.insertimg.com and the other would be to a Wikipedia.org page for his comic wikipedia.org/InsertIMG.

However, when creating the link [[Insert [IMG]]] the brackets in the name of Insert [IMG] screw everything up. How do I work around this?

有帮助吗?

解决方案

To escape brackets on wikipedia, you'll want to use the HTML code for the bracket symbols:

[Insert[IMG]]

其他提示

To make this work, you need to replace the ] character with ] (the HTML entity for that character). This means that an internal link to a page called InsertIMG with the description Insert [IMG] would be: [[InsertIMG|Insert [IMG]]]. And an external link with the same description linking to http://www.insertimg.com would be: [http://www.insertimg.com Insert [IMG]].

First of all, Wikipedia's Page name page says

A pagename cannot contain any of the following characters: # < > [ ] | { } _ (which all have special meanings in wiki syntax);

You can discover this by using the Insert Link button in Wikipedia's editor and typing Insert[IMG] as your target wiki page. This causes "Invalid title" to appear above the edit box.

However, you can put all kinds of things in external links, not that this is what you need :-)

Wikipedia's Help:Link:Disallowed characters page says you need to use percent-code escape sequences for disallowed characters, so you can use this jumble

[http://Insert%20%5BIMG%5D.com Insert&#91;IMG&#93;]

to create a link which appears as

Insert[IMG]

on a wiki page, previews as

insert[img].com

on mouseover in Firefox, and links to

http://insert%20%5bimg%5d.com/

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top