Paul Williams
Paul Williams

Reputation: 1598

How to edit the license line in a MediaWiki template

I would like to know how and and where do I edit a MediaWiki template so that I can add text to the end of the license text. (The "Creative Commons" content, highlighted in Red.) Screengrab of my wiki

So far I tried to edit several "MediaWiki" including "MediaWiki:License" and "MediaWiki:Footer" but to no avail.

Here's what I would like to do, this is from the actual MediaWiki page:

Example Image

Upvotes: 4

Views: 566

Answers (2)

leo
leo

Reputation: 8528

That message can be altered from MediaWiki:Copyright (and MediaWiki:Copyright/ar, etc. for every other language than your default language).

To find out the names (and corresponding MediaWiki namespace pages) for user interface messages, append ?uselang=qqx to the end of the url, e.g. https://en.wikipedia.org/wiki/Mainpage?uselang=qqx

If you want to keep the message, but change just the license text, that is done in LocalSettings.php, using $wgRightsText:

$wgRightsText = "Open Database license 1.0";

(Other license specific settings are listed here.)

Upvotes: 5

Nemo
Nemo

Reputation: 2544

Assuming you chose one of the standard licenses, you should only set $wgRightsUrl in your LocalSettings.php, for instance

$wgRightsUrl = 'http://creativecommons.org/licenses/by-sa/3.0/';

Upvotes: 2

Related Questions