Difference between revisions of "Template:Pp-meta"

From Ava Zinn Wiki
Jump to: navigation, search
[unchecked revision][unchecked revision]
(created template)
(previous images)
Line 1: Line 1:
{{#if:{{{smalltext|}}}
+
{{#ifeq:{{#switch:{{lc:{{{type}}}}}
| <!--Smalltext-->
+
  |move=<!--
   <div class="metadata plainlinks" id="administrator" style="position:absolute; z-index:100; right:55px; top:9px;">{{{smalltext}}}
+
-->{{#ifeq:
  </div>
+
      {{#switch:{{lc:{{{demolevel|undefined}}}}}
 +
        |semi
 +
        |autoconfirmed=autoconfirmed
 +
        |administrator
 +
        |full
 +
        |sysop=sysop
 +
        |undefined={{PROTECTIONLEVEL:move}}
 +
        |#default=<!--fallback value: null
 +
  -->}}
 +
      |sysop|yes|no
 +
    }}
 +
  |create=<!--
 +
-->{{#if:
 +
      {{#switch:{{lc:{{{demolevel|undefined}}}}}
 +
        |semi
 +
        |autoconfirmed=autoconfirmed
 +
        |administrator
 +
        |full
 +
        |sysop=sysop
 +
        |undefined={{PROTECTIONLEVEL:create}}
 +
        |#default=<!--fallback value: null
 +
  -->}}
 +
      |yes|no
 +
    }}
 +
   |#default<!--includes all other types-->=<!--
 +
-->{{#if:
 +
      {{#switch:{{lc:{{{demolevel|undefined}}}}}
 +
        |semi
 +
        |autoconfirmed=autoconfirmed
 +
        |administrator
 +
        |full
 +
        |sysop=sysop
 +
        |undefined={{PROTECTIONLEVEL:edit}}
 +
        |#default=<!--fallback value: null
 +
  -->}}
 +
      |{{#ifeq:{{#switch:{{lc:{{{disallowlevel|}}}}}
 +
            |semi
 +
            |autoconfirmed=autoconfirmed
 +
            |administrator
 +
            |full
 +
            |sysop=sysop
 +
            |#default=<!--fallback value: null-->}}
 +
        |{{#switch:{{lc:{{{demolevel|undefined}}}}}
 +
            |semi
 +
            |autoconfirmed=autoconfirmed
 +
            |administrator
 +
            |full
 +
            |sysop=sysop
 +
            |undefined={{PROTECTIONLEVEL:edit}}
 +
            |#default=<!--fallback value: null-->}}
 +
        |no|yes
 +
      }}
 +
      |no}}
 +
}}|yes|{{#ifeq:{{lc:{{{small|}}}}}|yes|
 +
<div class="metadata topicon" id="protected-icon">[[File:{{{image|{{#switch:{{lc:{{{type}}}}}
 +
|full=Padlock.svg
 +
|semi=Padlock-silver.svg
 +
|move=Padlock-olive.svg
 +
|indef=Padlock-red.svg
 +
|office=Padlock-black.svg
 +
|create=Padlock-skyblue.svg
 +
|#default=Transparent.gif
 +
}}}}}|22px|link={{{icon-link|Wikibooks:Protection policy#{{lc:{{{type}}}}}}}}|{{{icon-text|This {{pagetype|subjectspace=yes}} is {{#switch:{{lc:{{{type}}}}}
 +
|semi=semi-
 +
|move=move-
 +
|indef=permanently<nowiki> </nowiki>
 +
|create=creation-
 +
|office=<!--null, but should this have a special tag?-->
 +
|full
 +
|#default=<!--null-->
 +
}}protected{{#ifeq:{{lc:{{{type}}}}}|indef||{{#if:{{{expiry|}}}|<nowiki> </nowiki>until {{#time:F j, Y|{{{expiry}}}}}}}}}{{#if:{{{icon-reason|}}}|<nowiki> </nowiki>{{{icon-reason}}}}}.}}}]]</div>
 +
|<!-- else, not small -->
 +
{{mbox
 +
| demospace = {{{demospace|}}}
 +
| type = protection
 +
| image = [[File:{{{image|{{#switch:{{lc:{{{type}}}}}
 +
|full=Padlock.svg
 +
|semi=Padlock-silver.svg
 +
|move=Padlock-olive.svg
 +
|indef=Padlock-red.svg
 +
|office=Padlock-black.svg
 +
|create=Padlock-skyblue.svg
 +
|#default=Transparent.gif
 +
}}}}}|40px|{{{icon-text|This page is {{#switch:{{lc:{{{type}}}}}
 +
|semi=semi-
 +
|move=move-
 +
|indef=permanently<nowiki> </nowiki>
 +
|create=creation-
 +
|office=<!--null, but should this have a special tag?-->
 +
|full
 +
|#default=<!--null-->
 +
}}protected.}}}|link=]]
 +
| text = '''{{{reason-text|{{#switch:{{lc:{{{type}}}}}
 +
|full=This page is currently protected from editing
 +
|semi=Editing of this {{pagetype|subjectspace=yes}} by new or unregistered users is currently disabled
 +
|move=This {{pagetype|subjectspace=yes}} is currently protected from page moves
 +
|indef=This page is protected from editing ''indefinitely''
 +
|office=This {{pagetype|subjectspace=yes}} is currently protected from editing
 +
|create=Re-creation of this {{pagetype|subjectspace=yes}} has been disabled
 +
}}{{#ifeq:{{lc:{{{type}}}}}|indef||{{#if:{{{expiry|}}}|&#32;until {{#time:F j, Y|{{{expiry}}}}}}}}}{{{reason<includeonly>|</includeonly>}}}.}}}'''<br /> {{{explanation-text|{{#ifeq:{{lc:{{{dispute}}}}}|yes|This protection is '''not''' an endorsement of the {{#ifeq:{{{type}}}|move|[{{fullurl:Special:Log|type=move&page={{FULLPAGENAMEE}}}} current title]|[{{fullurl:{{FULLPAGENAMEE}}|action=history}} current version]}}.}} See the [{{fullurl:Special:Log|type=protect&page={{FULLPAGENAMEE}}}} protection log] for more details. {{#switch:{{lc:{{{type}}}}}
 +
|full|indef=Please discuss any changes on the [[{{TALKPAGENAME}}|discussion page]]; you may use the {{tlx|editprotected}} template to ask an [[Wikibooks:Administrators|administrator]] to make the edit if it is supported by consensus. {{#ifeq:{{NAMESPACE}}|{{ns:8}}<!--MediaWiki-->||You may also [[Wikibooks:Reading room/Administrative Assistance|request]] that this page be unprotected.}}
 +
|semi=If you cannot edit this {{pagetype|subjectspace=yes}} and you wish to make a change, you can {{#ifeq:{{NAMESPACE}}|{{TALKSPACE}}||[[Template:Editsemiprotected|request an edit]], [[{{TALKPAGENAME}}|discuss changes on the discussion page]],}} [[Wikibooks:Reading room/Administrative Assistance|request unprotection]], [[Special:Userlogin|log in]], or <span class="plainlinks">[http://en.wikibooks.org/w/index.php?title=Special:Userlogin&type=signup <span style="color:#002bb8;" title="Sign in / create account">create an account</span>].
 +
|move=The page may still be edited but cannot be moved until unprotected. Please discuss any suggested moves on the [[{{TALKPAGENAME}}|discussion page]].  You can also [[Wikibooks:Reading room/Administrative Assistance|request]] that the page be unprotected. 
 +
|office=If you are able to edit this page, please discuss all changes and additions on the [[{{TALKPAGENAME}}|discussion page]] first.
 +
|create=Please see the {{#if:{{{rfd|}}}|'''[[{{{rfd}}}|deletion discussion]]''' or the}} [{{fullurl:Special:Log|type=delete&page={{FULLPAGENAMEE}}}} deletion log] for details of why this page was deleted. If you would like to create a page at this title, you must first [[Wikibooks:Reading room/Administrative Assistance|request]] for it to be unprotected, or contact the administrator who deleted the page for the deleted material to be restored. If unsuccessful, you can make a [[WB:RFU|request for undeletion]].
 +
}}}}}
 +
}}
 +
}}|}}<!--End if small--><includeonly>{{#ifeq:{{lc:{{{categories|no}}}}}|no||{{{categories|}}}}}</includeonly><noinclude>
  
| <!--No smalltext-->
+
{{documentation}}
  {{#switch:
+
<!-- Add categories and interwikis to the /doc subpage, not here! -->
    {{lc:{{#if:{{{demospace|}}}
 
    | {{{demospace}}}
 
    | X{{NAMESPACE}}
 
    }}}}
 
  | main
 
  | x = <!--Main (article) space-->
 
    <table class="ambox ambox-protection metadata plainlinks">
 
    <tr>
 
    <td class="ambox-image">{{{image}}}
 
    <td>{{{text}}}
 
    </table>
 
 
 
  | talk
 
  | xtalk
 
  | xuser talk
 
  | ximage talk
 
  | xtemplate talk
 
  | xhelp talk
 
  | xcategory talk = <!--Any talk space-->
 
    <table class="messagebox standard-talk metadata plainlinks">
 
    <tr>
 
    <td>{{{image}}}
 
    <td>{{{text}}}
 
    </table>
 
 
 
  | #default = <!--Other space-->
 
    <table class="messagebox protected metadata plainlinks" style="border:2px solid #99B; padding:0px; font-size:0.9em;">
 
    <tr>
 
    <td>{{{image}}}
 
    <td>{{{text}}}
 
    </table>
 
 
 
  }}<!--End switch-->
 
}}<!--End if smalltext--><includeonly>{{#ifeq:{{{categories|no}}}|no||{{{categories|}}}}}</includeonly><noinclude>
 
{{pp-template|small=yes}}
 
{{template doc}}
 
<!-- Add categories and inter-wikis to the /doc subpage, not here! -->
 
 
</noinclude>
 
</noinclude>

Revision as of 11:05, 6 May 2012


Documentation icon Template documentation[create]