Extension talk:Duplicator

It would be handy to see what the history of the duplicated article looks like. Jayvdb 06:08, 28 July 2007 (UTC)
 * It simply looks like the old history, but with an additional entry at the top stating "Copied from Page" Mike.lifeguard 04:24, 21 March 2008 (UTC)

extension to the editor
I'm the maker of the GoogleTranslate extension. I thus wonder if we could make this extension cooperate with the Template:Language and the my translator.

Roughly this would look like:


 * A new special edit button to the editor
 * Button checks for existing page in the (pre)selected languages.
 * Creates the page and adds the "Template:Language" to both the pages....
 * In case the page does not exist in the specified languages it should be created....
 * * suggest page names etc.??

Further, maybe the duplication could then be made to handle a range of pages. That is I have about 400 pages(!!), that I would like to "process" in this way....

Thus the advanced version of this would possibly make a "temporary translated version" as a sub-page to the to-be final language specific page. This page can the be promoted to be the final page, when someone has made the review edit.

permissions
Is it possible to restrict this by permission? Mike.lifeguard 04:22, 21 March 2008 (UTC)
 * Yes, it uses the duplicate permission. &mdash; Mike.lifeguard &#124; @meta 02:25, 6 October 2008 (UTC)

How to remove the link in the TOOLBOX ?
How to remove the link in the TOOLBOX ? almaghi 15:44, 28 September 2009 (UTC)


 * Should there be a parameter to disable :

Adding a Copy or Duplicate link to the article top options (where watch, delete, edit are)
Added by robski 16:25 12 Jan 2010 I know its possible and i've tinkered around trying to do this but I can only get a link that points to the root URL of my wiki. It needs to be appended with Special:Duplicate/ so that the duplicate form has the source field pre-populated... Can anyone suggest how to add the additional link cleanly... I have been editing the Duplicate.php by adding in a new class CopyAction invoked at the end with CopyAction::init;

just really struggling to assemble the href destination in php (i'm newish to php!)

update... Ok... made the optionbar addition... thanks to some forum posting i eventjually tracked down...

next issue... can the extension be tweaked slightly to allow for optional copy of the document version history... e.g. take a snapshot of just the latest version !

Warning when duplicating an article
I just got a warning, when I tried to duplicate an article and its talk page: Strict Standards: Only variables should be passed by reference in [...] Duplicator.page.php on line 105 Both pages were duplicated just as expected. No problems there, but this warning was printed twice, before the actual content of the page was (including the opening html-element)

Before any problems occur because some lines are added or removed from the code and the line number does not fit anymore, here is line 105 in the Duplicator.page.php I am using: if( $this->duplicate( $this->sourceTitle->getTalkPage, $this->destTitle->getTalkPage ) ) { It is in the function.

I am running MediaWiki 1.17.0 with PHP 5.3.5 (apache2handler) and Duplicator 1.2.

Again this is nothing serious, the extension itself works just as expected. I just wanted to let you know about it. --Frog23 14:29, 5 October 2011 (UTC)