Last modified: 2007-04-30 18:59:09 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 9735 - MediaWiki:Pagemovedtext not working as desired in Farsi Wikipedia
MediaWiki:Pagemovedtext not working as desired in Farsi Wikipedia
Status: RESOLVED DUPLICATE of bug 6261
Product: MediaWiki
Classification: Unclassified
Special pages (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
: parser
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-04-29 17:30 UTC by Huji
Modified: 2007-04-30 18:59 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Huji 2007-04-29 17:30:15 UTC
MediaWiki:Pagemovedtext is defined like this in English Wikipedia:

http://en.wikipedia.org/w/index.php?title=MediaWiki:Pagemovedtext&action=edit

I applied a similar code in Farsi Wikipedia (I have only translated the
sentences, and instead of using Template:MediaWiki_direct_link and
Template:MediaWiki_direct_link_2, I pasted their code into the
MediaWiki:Pagemovedtext itself) as below:

http://fa.wikipedia.org/w/index.php?title=MediaWiki:Pagemovedtext&action=edit

(In order to be able to read the code more easily, you may need to change the
direction of the editbox, by right clicking on it and choosing Switch Text
Direction or a similar menu item).

This code works correctly in English wikipedia:

http://en.wikipedia.org/w/index.php?title=Special:Movepage&action=success&oldtitle=User:Huji/Test1&newtitle=User:Huji/Test2&talkmoved=notalkpage

The links for the old and new name of the page work correctly. However, in Farsi
Wikipedia:

http://fa.wikipedia.org/w/index.php?title=%D9%88%DB%8C%DA%98%D9%87:Movepage&action=success&oldtitle=%D9%88%DB%8C%DA%A9%DB%8C%E2%80%8C%D9%BE%D8%AF%DB%8C%D8%A7:%D9%82%D9%87%D9%88%D9%87%E2%80%8C%D8%AE%D8%A7%D9%86%D9%87&newtitle=%D9%88%DB%8C%DA%A9%DB%8C%E2%80%8C%D9%BE%D8%AF%DB%8C%D8%A7:%D9%82%D9%87%D9%88%D9%87%E2%80%8C%D8%AE%D8%A7%D9%86%D9%87/%D8%A8%D8%A7%DB%8C%DA%AF%D8%A7%D9%86%DB%8C+%DB%B1%DB%B8&talkmoved=1

As you can see, the old and new links are not correct. The title of the links is
correctly replaced with the old and new name of the moved page, but the links
are like this:

http://fa.wikipedia.org/w/index.php?title=$1&redirect=no --> for the old name
http://fa.wikipedia.org/w/index.php?title=$2&redirect=no --> for the new name

It means, the $1 an $2 in the above code are not replaced with the old and new
name of the page. It is really weired, because these values are replaced for the
title of the link (the text of the link) but not for the address of the link.
Comment 1 Brion Vibber 2007-04-30 18:59:09 UTC

*** This bug has been marked as a duplicate of 6261 ***

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links