Last modified: 2009-03-18 00:17:56 UTC
Let's discuss EditPage.php's
$copywarn = "<div id=\"editpage-copywarn\">\n" .
wfMsg( $wgRightsText ? 'copyrightwarning' : 'copyrightwarning2',
'[[' . wfMsgForContent( 'copyrightpage' ) . ']]',
$wgRightsText ) . "\n</div>";
'copyrightwarning' => ... released under the $2 (see $1 for details)....
(Note the hardwired '[[', ']]' perhaps hackish looking code above.)
Well, it turns out if one makes e.g.,
$ GET 'http://radioscanningtw.jidanni.org/index.php?title=MediaWiki:Copyrightpage&action=raw'
One will get ugly '[]':
$ w3m -dump 'http://radioscanningtw.jidanni.org/index.php?title=User:Jidanni&action=edit&uselang=en' |fgrep [[1
the GNU許可 (see [] for details). If you don't want your writing to be
That's right, EditPage.php makes the big assumption that
MediaWiki:Copyrightpage can only be an internal link.
Therefore the outer [ and ] of [] end up being not parsed as part
of the link... just page clutter. Also the inner  itself is
probably not flexible if one wants to make it show up differently.
Yes, it's meant to be an internal link.
<Sniff>, all I wanted to do was make MediaWiki:Copyrightpage = $wgRightsUrl.
I suppose I did the best I could without resorting to fiddle with MediaWiki:Copyrightwarning.
For anybody reading looking for a workaround to Edit.php's hardwired
expecting of internal links ('[[' . wfMsgForContent( 'copyrightpage' ) . ']]'),
the workaround is to just make MediaWiki:Copyrightpage have:
Sure it will be rendered "[[Googoo]]" instead of "Googoo", but it is better
than just "".