Template:Protected page text/doc
This is a documentation subpage for Template:Protected page text (see that page for the template itself). It contains usage information, categories and other content that is not part of the original template page. |
Usage
editThis 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
editThis 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}}.