Difference between revisions of "Template:Protected"

From Team Fortress Wiki
Jump to: navigation, search
(reduce footprint, simplify code, add documentation)
m
Line 1: Line 1:
{{#if:{{{small|yes}}}|<div align="right" style="right:25px; top: 14px; display:none; font-size: 90%;" class="topicon">[[File:Ambox padlock gray.png|20px]]&nbsp;''This page is protected from editing.''</div>|
+
{{#if:{{{small|}}}|<div align="right" style="right:25px; top: 14px; display:none; font-size: 90%;" class="topicon">[[File:Ambox padlock gray.png|20px]]&nbsp;''This page is protected from editing.''</div>|
 
{{Ambox
 
{{Ambox
 
  | image      = Ambox padlock gray.png
 
  | image      = Ambox padlock gray.png

Revision as of 09:10, 19 August 2010

Documentation for Protected

Parameters

  • {{Protected
  • | vandalism = "to prevent vandalism." [default]
  • | unreleased = "until the item is officially released."
  • | template = "permanently as it is transcluded on thousands of pages."
  • | none = will display nothing as the reason.

  • | small = 1 – changes width, text size and image size to show a smaller version of the message.
  • | style = any additional valid CSS style.

  • | talkpage = Talk:Gameplay – name of discussion page without brackets to override the default talk page link (if you want to keep discussion centralized on one page, for example)
  • | hidetalk = 1 – hides the "please discuss on talk page" message.
  • }}