Thread:Project:Support desk/How to insert some template to article which can be deleted only by administrator/reply

Hi!

I would say: What you want is not possible. MediaWiki only allows you either to protect a page or not to protect it. If you do not protect a page, then everyone can edit it (and so also remove a template, which you included). If you do protect it, then people will not be able to remove the template (and they won't be able to edit the whole page).

A solution would be to add the template not inside the different pages, but directly via PHP: Use a hook, which is called before the page is rendered. In PHP create a list of pages, which should get this template (maybe it is even possible to read this list from a wiki page) and then add the inclusion of the template to the page, if it is in this list.

I don't know, if it's worth the hassle... ;-)