How do I add a global template in all MediaWiki pages?

You could write a small MediaWiki extension that uses a hook to execute a function that modifies the page output after the article content has already been parsed and insert the comment area where you want.

You could write a small MediaWiki extension that uses a hook to execute a function that modifies the page output after the article content has already been parsed and insert the comment area where you want. Based on line 72 here, it looks like all FB-Connect does when you put in the article text is cause the same thing to be outputted in the HTML, and everything else is probably handled by javascript(s) that FB-Connect includes by default. So, you can simply use the SkinAfterContent hook if you want the comment box to appear below the content box (a good example of this is Semantic MediaWiki's Factbox - example) .

If you want the comment box to appear within the article content or especially at a specific place within the article content, then you need one of the page rendering hooks, possibly ParserAfterTidy, though I'm not sure. If you need the hooked function to output a template, or other mediawiki markup, then it's possible to more or less pass some markup and the Page object to a Parser and get the resulting html text.

I know I'm late, but just in case you haven't figured this out yet, there's a useful feature on Mediawiki (Sitenotice) that lets you display defined text at the top of all wiki pages. This should help with your situation.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions