Search code examples
mediawikireadonlywikipediamediawiki-apimediawiki-templates

Making a section of a page readonly in MediaWiki?


I would like to make a section of a page read only while other sections can be editable. Is this possible in mediawiki? I know I can add the NOEDITSECTION tag, and it removes the edit links in the section, but I still can edit it in the main edit page.


Solution

  • Not explicitly, no. But here's what you could do instead:

    Put your read only section on a new page and protect it. Transclude the contents of that protected page onto the primary page. A user would still have the opportunity edit the primary page and entirely remove the section, but they cannot edit the contents of that section.

    If your protected page is named MyProtectedPage, then you'd put {{:MyProtectedPage}} on the primary page to transclude it.