Licensing: Difference between revisions

add ref to SO and clarify solution with links
No edit summary
 
Line 13: Line 13:
The Wikipedia project underwent a [https://en.wikipedia.org/wiki/GNU_Free_Documentation_License licensing update] in 2008/2009 from [https://gnu.org/licenses/fdl.html GFDL] to dual-licensing scheme including the non-compatible [https://creativecommons.org/licenses/by-sa/3.0/ CC-BY-SA].   
The Wikipedia project underwent a [https://en.wikipedia.org/wiki/GNU_Free_Documentation_License licensing update] in 2008/2009 from [https://gnu.org/licenses/fdl.html GFDL] to dual-licensing scheme including the non-compatible [https://creativecommons.org/licenses/by-sa/3.0/ CC-BY-SA].   


In 2016, I'm noticing that there are some quirks in the software that I'm still investigating, so I've got notes here.  Basically, I want to simply figure out whether there are any issues to implementors / site Administrators. '''When setting up a fresh install of MediaWiki; or upgrading a previous installation; is there anything to do with regard to the licensing templates or interface messages so that [[Special:Upload]] "just works"?''' One oddity that I found was that there were a bunch of "self-published" options available in the licensing dropdown, however they rely on a template named 'self' which was not present in this wiki.  It is not a trivial exercise to export/import the template from mediawiki.org nor wikipedia.com.  Because of the complex nature of these licensing templates, it is not possible to "copy" the template text.
In 2016, I'm noticing that there are some quirks in the software that I'm still investigating, so I've got notes here.  Basically, I want to simply figure out whether there are any issues to implementors / site Administrators. '''When setting up a fresh install of MediaWiki; or upgrading a previous installation; is there anything to do with regard to the licensing templates or interface messages so that [[Special:Upload]] "just works"?''' One oddity that I found was that there were a bunch of "self-published" options available in the licensing dropdown, however they rely on a template named 'self' which was not present in this wiki.  It is not a trivial exercise to export/import that template from mediawiki.org nor wikipedia.com.  Because of the complex nature of these licensing templates, it is not possible to "copy" the template text.


Ref:
Ref:
Line 32: Line 32:


=== Solution ===
=== Solution ===
The simplest workaround I could come up with on short notice was to export (using [[mw:Special:Export]]) the category '[[mw:Category:License templates]]' from mediawiki.org and import them (using [[Special:Import]]) here as admin user.
The simplest solution I found was to export (using [[mw:Special:Export]]) the category '[[mw:Category:License templates]]' from mediawiki.org. The category includes 30+ templates and modules. Be sure to tick the box that says "Include templates". This will generate an xml file for download.  Then, import that file (using [[Special:Import]]) on your wiki (as admin user).


Note to self: look at the https://www.mediawiki.org/wiki/Extension:UploadWizard for ways to improve https://www.mediawiki.org/wiki/Extension:Html2Wiki in terms of incorporating license templates into the extension.
Note to self: look at the https://www.mediawiki.org/wiki/Extension:UploadWizard for ways to improve https://www.mediawiki.org/wiki/Extension:Html2Wiki in terms of incorporating license templates into the extension.