On 06/01/12 22:44, Harmageddon wrote:
Hi everyone!
Somebody in the MediaWiki IRC channel on freenode told me to ask my
questions in this list, so here I am.
I've created an extension that provides two parser functions (only one
has got any output). This output is shown in the article, at the place
where the parser function is called. Is it possible to place this output
not in the article content area, but in the sidebar or the sitenotice?
It's not designed to do that, but I think that through some quirks it
can be done.
Also, I'd like the admins of the wiki using this
extension to be able to
change the output layout (divs or tables, bold, italic and so on)
without having to edit the extension's php files, for example with a
MediaWiki:Somewhat page that would look like this:
{| style="..."
| $1
|-
| style="..." | $2
|}
Is this possible?
Sure. You would use wfMsg('somewhat', 'myvar1', 'myvar2') then
pass the
resulting wikitext to recursiveTagParse (since tags return html).