Thread:Project:Support desk/Display template on every page/reply (7)

With the PersonaUrls hook you can "only" output a link. Maybe you can leave out the link target, so that it does not actually link anywhere, but you cannot render wiki text inside that hook. You could check, if the special snytax of MediaWiki:Sidebar allows you to add, what you want, but I don't know if it supports conditions.

In order to render wiki text, you must pick a hook, which gives you access to the article object or to the output object.

I think I would try like that:

Use the hook ArticleViewHeader, in there use global $wgOut; and then do a  $wgOut->addWikiText(); ''. So add this to LocalSettings.php:

This adds the contents from the template page AdditionalHeader in your wiki to the output text. In the template you can then set the conditions and stuff as you need so that the template creates the desired output. You can also wrap the whole output into a div and then place that div with position: absolute; at the place you want it to show up.