-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256
Hello everybody,
because of some legal requirements we at the The Document Foundation have to add a bit more complicated text for the copyright at the bottom of our mediawiki installation.
I was experimenting really long for the correct configuration to get a) the legal text at the bottom correct b) the same legal text correctly displayed at the bottom of the edit fie ld
and this for logged in users and logged out users.
I get only the possibility to get the display correct either when logged in or when logged out. We have to include some HTML/wikimarkup text.
So I found out that both texts might be interpreted correctly (but not at the same time) or simply displayed as "escaped" text (so that the < and the > get html codes for displaying and thus not working)
Can anybody point me to the correct documentation or how to change the variables so that all three instances were correctly displayed (logged out users aren't able to edit)
Regards,
Dennis Roczek
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 https://help.libreoffice.org/api.php?action=query&siprop=rightsinfo&... 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 = 'https://www.gnu.org/graphics/lgplv3-88x31.png';
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 (https://git.wikimedia.org/blob/mediawiki%2Fextensions%2FWikimediaMessages/17... )
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. :)
Nemo
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256
Hi Nemo,
Am 28.10.2015 um 21:38 schrieb Federico Leva (Nemo):
Main docs are at https://www.mediawiki.org/wiki/Manual:$wgRightsUrl
I do know them. :-(
I assume you're talking of https://help.libreoffice.org/Main_Page
I'm talking about https://wiki.documentfoundation.org , but the helpwiki is having the same problem.
and friends, a tricky situation indeed. :) Given https://help.libreoffice.org/api.php?action=query&siprop=rightsinfo&...
ta=siteinfo
and https://help.libreoffice.org/MediaWiki:Copyright it seems you are successfully passing your custom copyright text to the message, but yo
u
are lacking a copyright URL and a copyright icon (unless it was an intentional skin modification?). So you have a couple things to do.
It is indeed intentional at the moment. If you set this, you won't get any possibility to get a correct a message for logged-out users. :-( At least with our preconditions.
- 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 = 'https://www.gnu.org/graphics/lgplv3-88x31.png';
So how to change it for wikis which do use multi-license? (not used at the moment)
- Do something about the lego mixup which also generates mixed-langua
ge
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 messag
e
in action=edit), with a mechanism similar to
$wgHooks['MessageCache::get'][] = 'onMessageCacheGet'; # blabla (https://git.wikimedia.org/blob/mediawiki%2Fextensions%2FWikimediaMess
ages/17c9434c5615808153b6aa3f06c7cd732e2c58ae/WikimediaMessages.hooks.ph p
)
I believe I do understand what you want to do here, but I do not understand how to do it correctly... :-(
2b) Or, leave $wgRightsText as is but don't really use it beyond the API.
It's not an API problem (or I miss understood anything)
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.
But that won't help if you use html/wikitext to get some links in. :-(
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. :)
Luckily crazy admins is really not a problem at our wiki. :-)
Nemo
Thanks for your lengthy answer.
Regards,
Dennis Roczek
mediawiki-l@lists.wikimedia.org