Page MenuHomeMiraheze

Importing content and having settings set
Closed, ResolvedPublic

Description

Miraheze site: https://dmlwiki.miraheze.org

This request is to import xml and image files for a fork of our existing independent game (fan) wiki. 5/6 bureaucrats and admins (including me) want to test import/move to Miraheze, to see if our site config can be satisfactorily adapted (I do the server-side stuff for current site, my heath is not ideal, I want to ensure the project can keep going). The game maker supplies us with images via email and file transfer (we have permission to use them on-wiki, and have an email trail of this).

Requests:

  • Old site's text content is CC BY-NC-SA 4.0 (observed in footer of link).
  • Old site has footer notice that all images are copyright of game maker (we will also do this in Miraheze site footer, MediaWiki:Copyright, as we do now to specify images/game content property of game maker, and text content CC BY-NC-SA 4.0).
  • Can we please have $wgRightsPage = "MediaWiki:Copyright"; set in LocalSettings.php?
  • Can import credit, please go to "dragon-mania-legends.wiki" if appropriate to satisfy CC BY-NC-SA 4.0 from old site (unclear if that's enough)?
  • The XML file is half a gig uncompressed (will tar.gz it, plus images which are a bit larger, email this per Miraheze page won't work, I'll send details archive link to [email protected], I have paid hosting I can use if Miraheze staff is okay with that, otherwise I'll have to do Google Drive (please let me know in sre email reply, thanks!).
  • Cosmic Alpha suggested running the image import past @Owen to ensure our approach is fine, given there is an (existing) mixed license (game maker images copyright game maker, text CC-BY-NC-SA) to ensure it satisfies Miraheze requirements, and hopefully, we can avoid any accidental take down requests.
  • We'd like our main page protected please (gets vandalism on current site without).
  • Please can you disable all bundled MW skins except Vector (Pivot is our default already added, Vector is our fallback).
  • Can we, please have: $wgExternalLinkTarget = '_self'; set in LocalSettings.php.
  • Please set the following Pivot skin settings in LocalSettings.php (not available through ManageWiki, and per the skin's documentation):
$wgPivotFeatures = [
	'showActionsForAnon' => true,
	'fixedNavBar' => false,
	'usePivotTabs' => true,
	'showHelpUnderTools' => true,
	'showRecentChangesUnderTools' => true,
	'wikiNameDesktop' => 'Welcome', // Message displayed in top orange bar, if Wiki Name should not repeat above logo
	'navbarIcon' => true,
	'showFooterIcons' => true,
	'wikiName' => 'DML Wiki' // Wiki name shortened for mobile screens
];
  • Can we, please have the following thumbnail settings (our uploads have max image dimension rules to 800px wide or 800px tall, unless image clarity would suffer, having different will create many extra unnecessary thumbs):
# Thumbs Configuration
$wgImageLimits = array(
   array( 320, 240 ), # image size number 0
   array( 640, 480 ), # image size number 1
   array( 800, 800 ) # 2
);
$wgDefaultUserOptions['imagesize'] = 2; # image size
  • Can someone please create a custom namespace to match an existing one in our xml (I see in ManageWiki I can create a custom namespace, but can't set its corresponding number):
define("NS_GUIDE", 3000); # This must be even.
define("NS_GUIDE_TALK", 3001); # This bust be the following odd integer.
$wgExtraNamespaces[NS_GUIDE] = "Guide";
  • Is it possible to please add the following hook in LocalSettings.php to disable the "Export pages" special pages entry? (to match our current wiki)
# Disable Export Pages entry on Special Pages
function removeExportSpecial(&$aSpecialPages)
{
        unset($aSpecialPages['Export']);
       return true;
}
$wgHooks['SpecialPage_initList'][] = 'removeExportSpecial';

Wiki Statistics

  • Content pages: 3,128
  • Pages (All pages in the wiki, including talk pages, redirects, etc.): 14,303
  • Uploaded files: 9,007
  • Page edits since set up: 91,745
  • Average edits per page: 6.41

Event Timeline

Herald added subscribers: Unknown Object (User), Unknown Object (User), RhinosF1. · View Herald TranscriptOct 29 2021, 07:55

Can we please have $wgRightsPage = "MediaWiki:Copyright"; set in LocalSettings.php?

should be possible

Can import credit, please go to "dragon-mania-legends.wiki" if appropriate to satisfy CC BY-NC-SA 4.0 from old site (unclear if that's enough)?

Please ask the interwiki admins on Meta's Community_Noticeboard or Discord to create an interwiki and we'll use that

The XML file is half a gig uncompressed (will tar.gz it, plus images which are a bit larger, email this per Miraheze page won't work, I'll send details archive link to [email protected], I have paid hosting I can use if Miraheze staff is okay with that, otherwise I'll have to do Google Drive (please let me know in sre email reply, thanks!).

Paid hosting might be easier tbh as I can probably wget that directly whereas google drive I have to download and scp up.

Cosmic Alpha suggested running the image import past @Owen to ensure our approach is fine, given there is an (existing) mixed license (game maker images copyright game maker, text CC-BY-NC-SA) to ensure it satisfies Miraheze requirements, and hopefully, we can avoid any accidental take down requests.

Assuming game maker has given permission, I see no issue but sounds good!

We'd like our main page protected please (gets vandalism on current site without).

Whoever creates the wiki can do that.

Please can you disable all bundled MW skins except Vector (Pivot is our default already added, Vector is our fallback).

Anything you can disable will be doable from ManageWiki. Please inform us if there's any specifics.

Can we, please have: $wgExternalLinkTarget = '_self'; set in LocalSettings.php.

Surprised it's not in ManageWiki but sure, we can add that!

Please set the following Pivot skin settings in LocalSettings.php (not available through ManageWiki, and per the skin's documentation):

No issues, we can do.

Can we, please have the following thumbnail settings (our uploads have max image dimension rules to 800px wide or 800px tall, unless image clarity would suffer, having different will create many extra unnecessary thumbs):

Will look into

Can someone please create a custom namespace to match an existing one in our xml (I see in ManageWiki I can create a custom namespace, but can't set its corresponding number):

Does the number matter?

Is it possible to please add the following hook in LocalSettings.php to disable the "Export pages" special pages entry? (to match our current wiki)

I'm 50/50 on this because I don't quite understand why you want it.

Unknown Object (User) claimed this task.EditedOct 29 2021, 08:10

Will do all of this first thing tomorrow.

Also, for the export pages, I'm not sure if we should do that, but if so it would be better to set it to DisabledSpecialPage I think to completely disable the Special page, unless you don't want to do that?

I can also do the interwiki, no need to ask elsewhere also, though normally it would be best this is technical in nature, so I can just action it in my capacity as an interwiki administrator, for use in the import without it being asked elsewhere.

Unknown Object (User) triaged this task as Normal priority.EditedOct 29 2021, 08:10

$wgExternalLinkTarget can be set from ManageWiki.

Namespaces can be created from Special:ManageWiki/namespaces. The first custom namespace will be with ID 3000, the first talk namespace will be ID 3001.

Thanks. Ah, I somehow missed the link target in the settings, thank you! I will fix that one tomorrow also. Thanks for confirming that first namespace will be 3000, I thought that might be the case but wasn't sure.

For export pages, it's a hook to just hide the link entry and wasn't sure if it is permitted on Miraheze or not. Doing DisabledSpecialPage is fine if that's allowable.

Thanks again for taking a look!

Unknown Object (User) moved this task from Backlog to Maintenance Script Run on the MediaWiki board.Oct 29 2021, 08:19
Unknown Object (User) moved this task from Backlog to Short Term on the Technology-Team (MediaWiki) board.
Unknown Object (User) moved this task from Unsorted to Short Term on the Universal Omega board.

Re the import: Please see the email I just sent.

Email checked and sent. Thanks, and my apologies.

Unknown Object (User) added a comment.Oct 29 2021, 11:34

Interwiki added

Imports started. Based on current speed, it will take ~2.5 days.

Have I mentioned that you guys rock? Well, you guys rock! Thanks :)

Unknown Object (User) added a comment.Oct 29 2021, 18:21

I've done all requested configuration except the hook. As for skins, the best you can do probably for all other skins not available in ManageWiki, is add them to $wgSkipSkins in Special:ManageWiki/settings.

Unknown Object (User) reassigned this task from Unknown Object (User) to RhinosF1.Oct 29 2021, 20:57

All configuration is done. Reassigning to RhinosF1 to close once import is done.

As for skins, the best you can do probably for all other skins not available in ManageWiki, is add them to $wgSkipSkins in Special:ManageWiki/settings.

Thank you! Found and done.

Our images are not importing after a couple of days. Any chance this can be stuck? I've disabled InstantCommons (per Agent) to prevent random Instant Commons image from showing up in their place.

This comment was removed by CrystalClear.

Yes for some reason the images weren't picked up by the script the first time. I haven't had a chance to set it off again yet.

Thanks for confirming.

I should have clarified the desire to disable Special:Export relates to it being the existing setting on our existing wiki, because of the mixed license (text content being CC-BY-SA-ND-4.0 but game content/media/images being property of game maker). Generally, if people export text/content, they want the images to go with that otherwise it's not terribly useful, image use requires express written consent of game maker as we supplied to SRE (in the past on export people have overlooked this aspect, exported things, then requested we also hand over images they don't have permissions to use, and that we can't supply or confirm permission to use, which puts us in a precarious place of not wanting to enable people skirting that). Those who have permission to use early text info or images, get it direct from game maker as we do, and our wiki staff needs to respect that relationship to continue being afforded those privileges.

Of course, that'll never stop users from downloading content and images individually (and especially using images without game maker permission) but at least it also doesn't appear encouraged/enabled on our end.

Unknown Object (User) added a comment.Nov 6 2021, 07:34

@RhinosF1 any progress on this task, did you restart the import or does that still need done?

Unknown Object (User) claimed this task.Nov 9 2021, 18:20

I discussed with @RhinosF1, I will try to finish this task in a couple of hours.

Thank you both, much appreciated!

Unknown Object (User) added a comment.Nov 9 2021, 20:06

In progress

Unknown Object (User) closed this task as Resolved.Nov 9 2021, 21:17