[Mediawiki-l] Raw HTML in protected templates
Martin Jambon
martin_jambon at emailuser.net
Wed Feb 8 00:45:08 UTC 2006
Hello,
Consider the following extension which allows raw HTML in protected pages
only:
$wgExtensionFunctions[] = "RawHtmlExtension";
function RawHtmlExtension() {
global $wgParser;
$wgParser->setHook("rawhtml", "renderRawHtml");
}
function renderRawHtml($input) {
global $wgTitle;
$result = $wgTitle->isProtected() ? $input : '';
return $result;
}
Is there a simple way of including a protected template which uses this
rawhtml extension so that it actually displays the HTML correctly? A
regular unprotected page refuses to display the raw HTML from the
template although the template itself is protected.
Well, it's not such a big problem, but maybe other people already have a
nice solution to that problem.
Thanks
Martin
--
Martin Jambon, PhD
http://martin.jambon.free.fr
Visit http://wikiomics.org, the Bioinformatics Howto Wiki
More information about the MediaWiki-l
mailing list