Is it possible on the MediaWiki engine to hide content on a page? I need to add blocks to the articles that only administrators can see, for example:

[контент] [блок №1] Основная информация [end блок №1] [блок №2] Только администратор видит этот текст [end блок №2] [end контент] 
  • Specify - do you need to hide the display, or is it necessary that the text "admin only" is not visible even in the source code of the page? In any case, I recommend digging in the direction of (embedded) templates with conditional content depending on the current value of variables (which thread {{{UserGroup}) ... ... - Akina
  • It is necessary that the text was not visible even in the source code of the page, if the user does not have the right to view it. Thanks for the tip, I'll dig :) - Ivan Ivanov
  • It is necessary that the text was not visible even in the source code of the page. So, study only conditional operators, which, depending on the conditions, give different text to the page, and do not bother with those that control only the display. As an option - try to implement a template that is accessible only to admins, and the code for hiding the error of access to the template for a regular user. - Akina

0