Template:Protected page text/doc

Usage

edit

This template displays text that users see when they're not allowed to operate on a page. It should be called from MediaWiki:Protectedpagetext. Parameters:

  • mode — selects a table containing customizing field values for the display.
  • right — name of right needed for the operation.
  • action — attempted action.

Customizing field values are taken from page Template:Protected page text/lookup/<mode>. If no mode is provided, the page doesn't exist, or a given field isn't specified by the page, the field value is taken instead from Template:Protected page text/lookup/default.

Internals

edit

This template extracts the contents of the mode and default tables via {{Protected page text/get}}, giving those tables access to parameters right and action, and passes the extracted contents of the tables to {{Protected page text/core}}.