Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Wikipedia: Mediawiki

Parser question - using $wgOut->parse() when $wgRawHTML = true

 

 

Wikipedia mediawiki RSS feed   Index | Next | Previous | View Threaded


jlerner at gmail

Jul 4, 2008, 2:41 PM

Post #1 of 1 (140 views)
Permalink
Parser question - using $wgOut->parse() when $wgRawHTML = true

Hi - Extension:Call has the following:

// call the template and produce output
$wgOut->addHtml($wgOut->parse("{{".$wikitext."}}"));

$wikitext contains something like "Form,field=value", where "Form"
refers to Template:Form. Template:Form contains raw HTML inside
<html>..</html>. $useRawHTML is set to true, and just visiting
[[Template:Form]] directly works fine.

However, calling Template:Form via something like
http://localhost/wiki/Special:Call/Form,field=value returns a page
that displays raw HTML. It seems that the preprocessor that handles
raw HTML (when $useRawHTML to true) doesn't get executed when using
$wgOut->parse().

Is there anyway to have the parser respect $useRawHTML when used this way?

Thanks in advance,

Joshua (User:Jlerner)

_______________________________________________
MediaWiki-l mailing list
MediaWiki-l[at]lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

Wikipedia mediawiki RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.