Protected template

Template:Protected

From MEpedia, a crowd-sourced encyclopedia of ME and CFS science and history
template icon Template documentation[view] [edit] [history] [purge]

Usage

Examples

  • {{protected|semi}}
  • {{protected|full}}
  • {{protected|interface}}
  • {{protected}}

Parameters

  • Image (left image) - Ombox defaults to the semi-protection image, which is set in the module, but set here too for completion. The Red padlock is set by Template:Fmbox, which doesn't use the module
  • Demospace is only needed to indicate the name space for mbox, we are using ombox and fmbox so don't need it
  • Template to call in switch statement can be:
    • Ambox - article
    • Imbox - image
    • Cmbox - category
    • Tmbox - talk page
    • Fmbox - interface messages
    • Ombox - other (but improved layout for article protection pages too), also can be used for templates
  • Black padlock - unused at the moment

Alternative version

content hidden

An alternative version using a different padlock images and based on a previous version of Template:Protected used the following code for semi-protection, with the default image set by Module:Message box:

|semi-protected ={{mbox
|type=protection
|textstyle=font-size:130%;
|style=padding:auto 5em;border-style:solid; border-color:{{meactionlgray}}
|text=This page is currently '''semi-protected''' and can be edited only by [[MEpedia:Autoconfirmed users|established]] registered users.
}}

result:

See also