Page MenuHomePhabricator

Enable transwiki import from zhwiki to other zh projects
Closed, ResolvedPublic

Description

please activate the transwiki for Special:Import from the Chinese Wikipedia to Chinese Wiktionary, chinese wikiquote, chinese wikibooks, and chinese wikisource.

thx

[[zh:user:shizhao]]


Version: unspecified
Severity: enhancement

Details

Reference
bz25181

Event Timeline

bzimport raised the priority of this task from to Low.Nov 21 2014, 11:19 PM
bzimport set Reference to bz25181.
bzimport added a subscriber: Unknown Object (MLST).

jeluf wrote:

Please provide a link to the discussion pages on Wiktionary, Wikiquote, Wikibooks and Wikisource where the communities approved this request.

(In reply to comment #2)

And plese add "Transwiki" namespace to Destination namespace of
[[Special:Import]] on all zhwikimedia.

None of the wikis you linked to has a Transwiki: namespace. There may be pages starting with "Transwiki:", but as far as MediaWiki is concerned these are in the main namespace.

Given community consensus, such a namespace can be created. Repurposing this bug for that.

(In reply to comment #3)

(In reply to comment #2)

And plese add "Transwiki" namespace to Destination namespace of
[[Special:Import]] on all zhwikimedia.

None of the wikis you linked to has a Transwiki: namespace. There may be pages
starting with "Transwiki:", but as far as MediaWiki is concerned these are in
the main namespace.

Given community consensus, such a namespace can be created. Repurposing this
bug for that.

see http://zh.wikisource.org/wiki/Wikisource:%E5%86%99%E5%AD%97%E9%97%B4#.E5.85.B3.E4.BA.8ESpecial:Import.E5.90.AF.E7.94.A8transwiki.E7.9A.84.E5.BB.BA.E8.AE.AE

A transwiki namespace on all of those wikis?

I don't know whether it is a namespace or not. We would like to activate the transwiki function between different Chinese Wikis. As special:import of zh.wikisource, there is a table that allows us to import a page by filling in the name of the page and selecting the source area. At the moment, importer of Chinese wikisource could, by this way, import page from Common and Meta. Could you please modify those import pages of zh.wiki like what I described. Thank you very much.

<logmsgbot> !log reedy synchronized php-1.17/wmf-config/InitialiseSettings.php 'bug 25181 allow import from zhwiki to other zh projects'
<morebots> Logged the message, Master

reedy@fenari:/home/wikipedia/common/php-1.17/wmf-config$ svn diff

Index: InitialiseSettings.php

  • InitialiseSettings.php (revision 2036)

+++ InitialiseSettings.php (working copy)
@@ -7398,6 +7398,11 @@

'wikiversity' => array( 'meta', 'b', 'incubator' ),
'wuuwiki' => array( 'en', 'th', 'fr', 'zh', ),

+ 'zhwikiquote' => array( 'zh' ),
+ 'zhwiktionary' => array( 'zh' ),
+ 'zhwikibooks' => array( 'zh' ),
+ 'zhwikisource' => array( 'zh' ),
+

'test2wiki' => array( 'en', 'cs' ),

),

  1. @} end of wgImportSources

Plese also set transwiki namespace in other zh projects.

Crosswiki import can't work:

"Import failed: Bad interwiki link"

plese fix!

(In reply to comment #10)

Crosswiki import can't work:

"Import failed: Bad interwiki link"

plese fix!

Could you provide more details? What exactly did you try to do? Which page did you try to import?

(In reply to comment #9)

Plese also set transwiki namespace in other zh projects.

I didn't add a namespace. Are you wanting all zh projects to be able to import from each other?

bugs wrote:

I think he wants you to create a namespace called "Transwiki" in all the zh projects. They would put all transwiki'd pages there by default.

(In reply to comment #11)

(In reply to comment #10)

Crosswiki import can't work:

"Import failed: Bad interwiki link"

plese fix!

Could you provide more details? What exactly did you try to do? Which page did
you try to import?

Example: Crosswiki import [[User:Shizhao/test]] from zh.wp on zh.wiktionary, can't work

Moreover, it couldn't imports [[巴东羊角芹]] from zh.wp to zh.wikibooks also. Could you please fix it asap. Thank you.

(In reply to comment #15)

Moreover, it couldn't imports [[巴东羊角芹]] from zh.wp to zh.wikibooks also. Could
you please fix it asap. Thank you.

What is the error message?

(In reply to comment #16)

(In reply to comment #15)

Moreover, it couldn't imports [[巴东羊角芹]] from zh.wp to zh.wikibooks also. Could
you please fix it asap. Thank you.

What is the error message?

Similar: "Import failed: Bad interwiki link"

jeluf wrote:

Your change has been completed.
Please reopen this ticket if anything went wrong.

The following configuration settings have been changed:

Index: InitialiseSettings.php

  • InitialiseSettings.php (revision 2111)

+++ InitialiseSettings.php (working copy)
@@ -7443,10 +7443,10 @@

'wikiversity' => array( 'meta', 'b', 'incubator' ),
'wuuwiki' => array( 'en', 'th', 'fr', 'zh', ),
  • 'zhwikiquote' => array( 'zh' ),
  • 'zhwiktionary' => array( 'zh' ),
  • 'zhwikibooks' => array( 'zh' ),
  • 'zhwikisource' => array( 'zh' ),

+ 'zhwikiquote' => array( 'w','b', 'wikt', 's', 'meta', 'commons' ),
+ 'zhwiktionary' => array( 'w', 'b', 'q', 's', 'meta', 'commons' ),
+ 'zhwikibooks' => array( 'w', 'wikt', 'q', 's', 'meta', 'commons' ),
+ 'zhwikisource' => array( 'w', 'b', 'q', 'wikt', 'meta', 'commons' ),

'test2wiki' => array( 'en', 'cs' ),

),

You can find the entire config file at
http://noc.wikimedia.org/conf/highlight.php?file=InitialiseSettings.php