MediaWiki talk:Linkshere
From Wikipedia, the free encyclopedia
Contents |
[edit] Formating
Does anyone know where to parse the variable of the pagename in to this display, e.g. so it will be "The following pages link to here" where here is the target of the search? If I can solve this my eventual proposal will be to include a deletion link on this listing, to avoid having to go back to the article before clicking delete. — xaosflux Talk 16:15, 13 August 2006 (UTC)
- It would be in the source code in SpecialWhatlinkshere.php. This message currently takes no parameters - adding one would take a source change. -- Rick Block (talk) 19:04, 13 August 2006 (UTC)
I've added this in version control. When the change shows up, edit MediaWiki:Linkshere and shove $1 in - it'll be replaced with the full title of the page when the message is used. You can also do this with MediaWiki:Nolinkshere. 86.134.116.228 21:20, 18 August 2006 (UTC)
Expansion proposed:
The following pages link to $1: edit·history·delete
The following pages link to '''[[$1]]''': <span class="plainlinks"> [{{fullurl:{{FULLPAGENAME}}|action=edit}} edit]·[{{fullurl:{{FULLPAGENAME}}|action=history}} history]·[{{fullurl:{{FULLPAGENAME}}|action=delete}} delete]</span>
[edit] Syntax
(edit • history • delete) breaks for pages with spaces in them. — xaosflux Talk 16:05, 20 August 2006 (UTC)
- Sorry, but I removed those links because a majority of all pages here on Wikipedia have spaces in them. Might I suggest you post something on http://bugzilla.wikimedia.org/. You might even suggest to them to hard code those links directly on the special:whatlinkshere page similar to the talk/block/block log/logs links on the special:contributions page. Zzyzx11 (Talk) 18:02, 20 August 2006 (UTC)
- Seems like "
... title={{localurle:$1}} ...
" should work for the space issue. Showing a delete link for non-sysops seems like bad form, though. -- Rick Block (talk) 18:46, 20 August 2006 (UTC) - Didn't work, gives a result of http://en.wikipedia.org/w/index.php?action=history&title=/wiki/%241 — xaosflux Talk 21:55, 20 August 2006 (UTC)
Could someone change it to $1 (if it works)? http://en.wikipedia.org/w/index.php?title=Special:Whatlinkshere&target=Image%3AWestend.jpg displays the image. http://en.wikipedia.org/w/index.php?title=Special:Whatlinkshere&target=Category:Foo gets a category bar at the bottom. Kotepho 00:13, 23 August 2006 (UTC)
- I changed it to [[:$1]], looks like it fixed the category bug, still looking in to the image one. — xaosflux Talk 00:42, 23 August 2006 (UTC)
[edit] A search engine?
Should we have a search engine in this special page? It would prove to be useful. For example, users would be able to know at a faster rate, how many times a particular user had done edits on these talk pages. Any concerns and objections over this would be most welcomed. --Siva1979Talk to me 16:31, 21 August 2006 (UTC)
- Got any sample code? — xaosflux Talk 01:15, 22 August 2006 (UTC)
- Good question! Errr, no I don't. Do you know anyone who has one? --Siva1979Talk to me 18:44, 22 August 2006 (UTC)
[edit] Delete link
I removed the recent addition of the new delete link. This is totally unneeded and very confusing. I've also reverted the corresponding addition of a new CSS class to MediaWiki:Common.css. --Ligulem 22:56, 21 October 2006 (UTC)
- I'd love to see this back, how was it confusing for you? When deleting pages we should always check to see WHat Links There, to consider updating the links before deleting it (among other things). This is usually the last thing that I do, and it's annying to have to go back to the page, then delete it. As for the monobook, was this the ONLY page using that class? — xaosflux Talk 01:22, 22 October 2006 (UTC)
-
- As I said. It is confusing and completely unneeded. Admins do have a delete tab on each page, non-admins don't. If it weren't distracting, why do you want to hide it with a CSS class using display:none, which is specifically advised against by Brion Vibber? (See Wikipedia:HiddenStructure). --Ligulem 12:08, 22 October 2006 (UTC)
- I agree, I really thought it was great. There were a few pages using that class as well, not only this one. —Mets501 (talk) 01:25, 22 October 2006 (UTC)
-
[edit] Delete link
For any andmin who would like a "delete" link on the Whatlinkshere page and "Move successful" page, the delete link can be added by adding
function addDeleteLink() { var targetSpan = document.getElementById('specialDeleteTarget'); var linkSpan = document.getElementById('specialDeleteLink'); if (targetSpan == null || linkSpan == null) return; var targetLink = targetSpan.getElementsByTagName("A")[0]; if (targetLink == null) return; var targetTitle = targetLink.childNodes[0].data; var deleteHref = "http://en.wikipedia.org/w/index.php?action=delete&title=" + escape(targetTitle); var deleteSpan = null; with (easyDom) { deleteSpan = span({ "class": "plainlinks" }, " (", a({ "href": deleteHref, "class": "external text" }, "delete"), ")"); } linkSpan.appendChild(deleteSpan); } addOnloadHook(addDeleteLink); document.write('<script type="text/javascript" src="' + 'http://en.wikipedia.org/w/index.php?title=User:Mike_Dillon/easydom.js' + '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
to your personal js. I don't know any better place to let admins know, so here seems good :-) —Mets501 (talk) 11:04, 24 October 2006 (UTC)