Page MenuHomePhabricator

Upload and Transwiki settings for Japanese Wikiversity
Closed, ResolvedPublic

Description

Hello, I am a custodian (= sysop) of Japanese Wikiversity. As decided at our village pump discussion (the URL above), please configure our Japanese Wikiversity (jawikiversity) as follows:

(1) RESTRICT UPLOAD:
We decided that only custodians (= sysops) may upload files locally. Most files should go to Commons.
We would like our $wgGroupPermissions to enable 'upload' for the group 'sysop', but not for others such as 'users' or 'autoconfirmed'.
I think that the configuration would be:
$wgGroupPermissions['user']['upload'] = false;
$wgGroupPermissions['autoconfirmed']['upload'] = false;
$wgGroupPermissions['sysop']['upload'] = true;

(2) ADD TRANSWIKI-IMPORT SOURCE:
We accept transwiki-import from English Wikiversity.
We would like to add 'en' to $wgImportSources for 'jawikiversity'.

(3) NEW NAMESPACE "Transwiki":
We need a new custom namespace "Transwiki" (probably as the 106th namespace).
Its talk space should be "Transwiki‐ノート".
I think that the configuration would be:
$wgExtraNamespaces[106] = "Transwiki";
$wgExtraNamespaces[107] = "Transwiki‐ノート";

(4) NAMESPACE NAME "Wikiversity_talk":
We wish that a namespace name "Wikiversity_talk" should be recognized as the 5th (project talk) namespace, so as not to import Beta/English project talk pages into our article namespace.
This would be to add (( 'Wikiversity_talk' => NS_PROJECT_TALK )) to our $NamespaceAliases.

Thank you very much in advance.


Version: unspecified
Severity: enhancement
URL: http://ja.wikiversity.org/wiki/WV:VP#Upload_and_transwiki

Details

Reference
bz16180

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:18 PM
bzimport set Reference to bz16180.

I'm sorry, my sample code (1) - (4) in the previous message was not good.
I reviewed the current InitialiseSettings.php at the noc, and I rewrote my
sample code as I posted to our village-pump page:
http://ja.wikiversity.org/w/index.php?oldid=3981#Upload_and_transwiki_2

(1) RESTRICT UPLOAD:
We decided that only custodians (= sysops) may upload files locally. Most files
should go to Commons.

'groupOverrides' => array(

......
 
'jawikiversity' => array( 
    'user' => array( 'upload' => false ),
    'autoconfirmed' => array( 'upload' => false ),
    'sysop' => array( 'upload' => true ),
),

(2) ADD TRANSWIKI-IMPORT SOURCE:
We accept transwiki-import from English Wikiversity.
We would like to add 'en' to wgImportSources for 'jawikiversity'.

'wgImportSources' => array(

......
 
'jawikiversity' => array( 'w', 'wikt', 'b', 'q', 's', 'n',
    'en', 'betawikiversity' ),

(3) NEW NAMESPACE "Transwiki":
We need a new custom namespace "Transwiki" as the 110th namespace.
Its talk space should be "Transwiki‐ノート".

'wgExtraNamespaces' => array(

......
 
'jawikiversity' => array(
    100 => 'School',
    101 => 'School‐ノート',
    102 => 'Portal',
    103 => 'Portal‐ノート',
    104 => 'Topic',
    105 => 'Topic‐ノート',
    110 => 'Transwiki',
    111 => 'Transwiki‐ノート',
),

(4) NAMESPACE NAME "Wikiversity_talk":
We wish that a namespace name "Wikiversity_talk" should be recognized as the
5th (project talk) namespace, so as not to import Beta/English project talk
pages into our article namespace.

'wgNamespaceAliases' => array(

......
 
'jawikiversity' => array(
     'Wikiversity_talk' => NS_PROJECT_TALK,
),
  • InitialiseSettings.php

+++ InitialiseSettingsChange.php
@@ -1664,6 +1664,9 @@

    'Shelf' => 102,
    'Shelf_talk' => 103,
),

+ 'jawikiversity' => array(
+ 'Wikiversity_talk' => NS_PROJECT_TALK,
+ ),

'kawikiquote' => array(
    'Wikiquote' => 4,
    'Wikiquote_განხილვა' => 5,

@@ -3741,6 +3744,8 @@

103 => 'Portal‐ノート',
104 => 'Topic',
105 => 'Topic‐ノート',

+ 110 => 'Transwiki',
+ 111 => 'Transwiki‐ノート',

),

),

@@ -4393,6 +4398,11 @@

'jawikinews' => array(
  'user' => array( 'move' => false ), // autoconfirmed only, per request by britty 2007-05-16
 ),

+ 'jawikiversity' => array(
+ 'user' => array( 'upload' => false ),
+ 'autoconfirmed' => array( 'upload' => false ),
+ 'sysop' => array( 'upload' => true ),
+ ),

'lawiki' => array( 
    'user' => array( 'upload' => false ),
    'autoconfirmed' => array( 'upload' => false ),

@@ -4877,7 +4887,7 @@

'itwikibooks' => array('w', 'wikt', 'q', 'n', 's', 'en'),
'incubatorwiki' => array('meta', 'commons', 'w'),
'jawikibooks' => array( 'w', 'wikt', 'q', 's', 'v', 'en' ),
  • 'jawikiversity' => array( 'betawikiversity', 'w', 'wikt', 'b', 'q', 's', 'n' ),

+ 'jawikiversity' => array( 'w', 'wikt', 'b', 'q', 's', 'n', 'en', 'betawikiversity' ),

'jawiktionary' => array('w'),
'kaawiki' => array( 'incubator' ),
'kowikiquote' => array( 'w' ),

Thank you very much in advance.

Firstly, EXCELLENT bug report. All that was required was asking for the features, however, adding all the settings like that just really ensures that we are on the same page for the changes. It is HIGHLY appreciated!!!

I have made the requested changes and they are now live on the cluster. If you have any questions or concerns, please do not hesitate to let me know!