[MediaWiki-l] $wgRightsText and Mediawiki:Copyright

Federico Leva (Nemo) nemowiki at gmail.com
Wed Oct 28 20:38:47 UTC 2015

Main docs are at https://www.mediawiki.org/wiki/Manual:$wgRightsUrl

I assume you're talking of https://help.libreoffice.org/Main_Page and 
friends, a tricky situation indeed. :) Given 
and https://help.libreoffice.org/MediaWiki:Copyright it seems you are 
successfully passing your custom copyright text to the message, but you 
are lacking a copyright URL and a copyright icon (unless it was an 
intentional skin modification?). So you have a couple things to do.

1) You should complete the machine-readable setup of your licensing, 
otherwise your content is not really usable. Something like this:

$wgRightsUrl = 'https://www.gnu.org/licenses/lgpl-3.0.html';
$wgRightsIcon = 'https://licensebuttons.net/l/LGPL/2.1/88x62.png';
# Or FSF or local: $wgRightsIcon = 

2) Do something about the lego mixup which also generates mixed-language 
messages such as «Il contenuto è disponibile in base alla licenza the 
GNU Lesser General Public License (LGPLv3), unless otherwise specified, 
[...], se non diversamente specificato». (Which is expected per 
https://www.mediawiki.org/wiki/Manual:$wgRightsText .)

2a) Just circumvent the "copyright" message entirely and use your own, 
maybe even with an English hardcoded text (and the same for the message 
in action=edit), with a mechanism similar to

$wgHooks['MessageCache::get'][] = 'onMessageCacheGet';
# blabla 

2b) Or, leave $wgRightsText as is but don't really use it beyond the 
API. Edit https://help.libreoffice.org/MediaWiki:Copyright and friends 
to contain only the text you want in the footer, without "$1", and do so 
for all desired languages. MediaWiki:Copyright is one of the few 
messages which still allows raw HTML 
(https://phabricator.wikimedia.org/T45646 ) so watch what your sysops 
put there. :)


More information about the MediaWiki-l mailing list