How can I add wikitext into my skin file?
I tried the following but it didn't work:
global $wgOut; $wgOut->parse( $wikitext );
How can I add wikitext into my skin file?
I tried the following but it didn't work:
global $wgOut; $wgOut->parse( $wikitext );
You possibly can. Where in PHP do you want to add the wikitext? Are you using a skin-related hook? Or are you inside a skin file like Vector.php (or in the according file of your own skin maybe)?
In the template file you can put HTML. If you want to put wikitext there, then you would have to have this wikitext rendered afterwards; meaning you would basically have to render two parts of your skin: The text from the according wiki page and your wikitext from the skin file. That is not good.
If it only is one certain text, you could register it as a language label - that would then also make the text translatable.
If the text should always appear at one fixed place inside/directly above or directly below the actual page content, then I would try with one of the skin hooks - in some of them you can use wikitext.