Eisspeedway

MediaWiki talk:Movepage-moved: Difference between revisions

Content deleted Content added
Pathoschild (talk | contribs)
Bugs: re: switched back to wikiML, removed delete/revert links
Pathoschild (talk | contribs)
Bugs: re: fixed
Line 25: Line 25:
::Okay, it looks like [[rev:23604]] fixed the wikilink problem, but $3 and $4 still cannot be used in external links or parserfunctions, making the revert link unfixable. PathosChild: maybe grab [http://test.wikipedia.org/w/index.php?title=MediaWiki:Movepage-moved&oldid=25212&action=edit this version] (minus the tests) for enwp (uses wikilinks, has the broken revert link commented out)? --[[User:Splarka|Splarka]] ([[User_talk:Splarka|rant]]) 10:46, 11 July 2007 (UTC)
::Okay, it looks like [[rev:23604]] fixed the wikilink problem, but $3 and $4 still cannot be used in external links or parserfunctions, making the revert link unfixable. PathosChild: maybe grab [http://test.wikipedia.org/w/index.php?title=MediaWiki:Movepage-moved&oldid=25212&action=edit this version] (minus the tests) for enwp (uses wikilinks, has the broken revert link commented out)? --[[User:Splarka|Splarka]] ([[User_talk:Splarka|rant]]) 10:46, 11 July 2007 (UTC)


::: I switched the links to wikiML and removed the delete and revert links, since they break for titles with spaces due to the external link bug. —<small>{[[WP:ADMIN|admin]]} [[User talk:Pathoschild/s|Pathoschild]] 16:50:12, 11 July 2007 (UTC)</small>
::: I switched the links to wikiML, fixed the delete link by adding a hidden <code><nowiki><span id="specialDeleteTarget" style="display:none;">$3</span></nowiki></code> at the end of the message for the JavaScript (which should be updated to use $1 again), and fixed the revert link with the {{[[template:MediaWiki revert move link|MediaWiki revert move link]]}} workaround template. —<small>{[[WP:ADMIN|admin]]} [[User talk:Pathoschild/s|Pathoschild]] 17:06:49, 11 July 2007 (UTC)</small>

Revision as of 17:06, 11 July 2007

Template:Explanation

Bugs

Some of the message parameters here (previously on MediaWiki:Pagemovedtext) still seem very broken (as of this posting). $1 and $2 work fine as full links to the previous (with &redirect=no) and current page. But $3 and $4, which return the plain text of the page names, don't work in most link wikicode (fullurl, localurl, or even [[bracket]] links). For example:

*[[$3]]
  produces:
<a href="/w/index.php?title=%243&action=edit" class="new" title="Title of page">Title of page</a>

However, it works with the full URL, such as:

[http://test.wikipedia.org/wiki/Special:Whatlinkshere/$4 check]
  produces:
<a href="http://en.wikipedia.org/wiki/Special:Whatlinkshere/Title of Page" class="external text" title="http://en.wikipedia.org/wiki/Special:Whatlinkshere/Title of Page" rel="nofollow">check</a>

Anyway, a mostly working (except on the secure server, obviously) iteration of this can be seen at --Splarka (rant) 07:41, 1 July 2007 (UTC)[reply]

Fixed for now using external link syntax. —{admin} Pathoschild 16:44:01, 02 July 2007 (UTC)
Heh, a clever work-around. I think you forgot the closing </div> though? Also, this should be fixed in the next scap? rev:23604. Also: {{fullurl:Special:Whatlinkshere|target=$3}} seems to work (example) --Splarka (rant) 01:13, 3 July 2007 (UTC)[reply]
Thanks. I closed the tag, and will keep an eye on the current revision (1.44.0-wmf.12 (8b8c762)) before updating the messages and documentation. —{admin} Pathoschild 03:50:30, 03 July 2007 (UTC)
Ahh Yes, the revert link is screwed up. --Splarka (rant) 07:10, 11 July 2007 (UTC)[reply]
Okay, it looks like rev:23604 fixed the wikilink problem, but $3 and $4 still cannot be used in external links or parserfunctions, making the revert link unfixable. PathosChild: maybe grab (minus the tests) for enwp (uses wikilinks, has the broken revert link commented out)? --Splarka (rant) 10:46, 11 July 2007 (UTC)[reply]
I switched the links to wikiML, fixed the delete link by adding a hidden <span id="specialDeleteTarget" style="display:none;">$3</span> at the end of the message for the JavaScript (which should be updated to use $1 again), and fixed the revert link with the {{MediaWiki revert move link}} workaround template. —{admin} Pathoschild 17:06:49, 11 July 2007 (UTC)