Difference between revisions of "Template:Edit fully-protected/sandbox"

From blackwiki
Jump to navigation Jump to search
imported>Mr. Stradivarius
(Urlencode fixes)
imported>Mr. Stradivarius
(Indent and comment the code to make it (hopefully) easier to read)
Line 1: Line 1:
{{#ifeq:{{{answered|{{{ans}}}}}}|yes
+
<!--
|{{Edit protected/answered}}
 
|{{talk other
 
|{{anchor|editprotected}}{{tmbox
 
  |image = [[File:Padlock.svg|link=|alt=|60px]]
 
  |text = '''{{#ifexist:{{SUBJECTPAGENAME}}|It is [[Wikipedia:Edit requests|requested]] that an edit be made to {{#if:{{{1|}}}|the|this}} {{#ifeq:{{NAMESPACE}}|{{ns:9}}|[[Help:MediaWiki namespace|interface page]]|[[Wikipedia:This page is protected|fully protected]] {{pagetype|{{{1|{{ARTICLESPACE}}}}}}}}}{{#if:{{{1|}}}|&#32;at [[{{{1}}}]]}}.|It is [[:Category:Wikipedia protected edit requests|requested]] that {{#if:{{{1|}}}|the|this}} [[Wikipedia:This page is protected|creation protected]] {{pagetype|{{{1|{{ARTICLESPACE}}}}}}}{{#if:{{{1|}}}|&#32;at [[{{{1}}}]]}} be created.}}''' {{nowrap begin}}{{toolbar
 
|style=font-size:smaller;
 
|1={{linked|{{{1|{{SUBJECTPAGENAME}}}}}|view}}
 
|2=[{{fullurl:{{urlencode:{{{1|{{SUBJECTPAGENAME}}}}}|WIKI}}|action=edit}} edit]
 
|3=[{{fullurl:{{urlencode:{{{1|{{SUBJECTPAGENAME}}}}}|WIKI}}|action=history}} history]
 
|4={{#ifexist: {{{1|{{SUBJECTPAGENAME}}}}}/sandbox
 
  | [[{{{1|{{SUBJECTPAGENAME}}}}}/sandbox|sandbox]]{{int:dot-separator}}[{{fullurl:{{urlencode:{{{1|{{SUBJECTPAGENAME}}}}}|WIKI}}/sandbox|action=edit}} edit sandbox]{{int:dot-separator}}[{{fullurl:{{urlencode:{{{1|{{SUBJECTPAGENAME}}}}}|WIKI}}/sandbox|action=history}} sandbox history]{{int:dot-separator}}[{{fullurl:Special:ComparePages|page1={{urlencode:{{{1|{{SUBJECTPAGENAME}}}}}|WIKI}}&page2={{urlencode:{{{1|{{SUBJECTPAGENAME}}}}}|WIKI}}/sandbox}} sandbox diff]
 
  }}
 
|5={{#ifexist: {{{1|{{SUBJECTPAGENAME}}}}}/testcases | {{linked|{{{1|{{SUBJECTPAGENAME}}}}}/testcases|test cases}} }}
 
|6={{#ifeq:{{NAMESPACE}}|{{ns:11}}|[http://toolserver.org/~jarry/templatecount/index.php?lang=en&name={{urlencode:{{{1|{{SUBJECTPAGENAME}}}}}}}#bottom transclusion count]}}
 
|7={{#ifeq:{{NAMESPACE}}|{{ns:9}}|<!-- MediaWiki pages don't have protection log entries -->|[{{fullurl:Special:Log|type=protect&page={{urlencode:{{{1|{{SUBJECTPAGENAME}}}}}|WIKI}}}} protection log]}}
 
|separator=dot
 
}}{{nowrap end}}
 
  
This template should be followed by a '''complete and specific description''' of the request, so that an editor unfamiliar with the subject matter could complete the requested edit immediately.
+
-->{{#ifeq: {{{answered|{{{ans}}}}}} | yes
<p style="font-size:smaller; line-height:1.3em;">This template should be used only to request edits to [[Wikipedia:Protection policy|fully protected pages]] that are either '''uncontroversial''' or supported by [[Wikipedia:Consensus|consensus]]. If the proposed edit might be controversial, discuss it on the protected page's talk page '''before''' using this template. {{#ifeq:{{SUBJECTSPACE}}|MediaWiki|Note that MediaWiki interface pages cannot be unprotected|To request that a page be protected or unprotected, make a [[Wikipedia:Requests for page protection|protection request]]}}. When the request has been completed or denied, please add the {{para|answered|<var>yes</var>}} parameter to deactivate the template.
+
    | {{Edit protected/answered}}
</p><includeonly>{{{category|[[Category:Wikipedia protected edit requests|{{#if:{{{2|}}}|{{{2}}}|{{#if:{{{1|}}}|{{{1}}}|{{#ifeq: {{TALKSPACE}}|{{ns:Talk}}|Article|{{SUBJECTSPACE}}}} {{PAGENAME}}}}}}]]}}}</includeonly>
+
    | {{talk other
}}
+
        | {{anchor|editprotected}}<!--
|2=<span class="error">Error: Protected edit requests can only be made on the talk page.</span>[[Category:Wikipedia protected edit requests| {{#ifeq:{{NAMESPACE}}|{{ns:0}}|A}}{{FULLPAGENAME}}]]<!-- If used on a non-talk page, add the page to [[:Category:Wikipedia protected edit requests]] anyway so that [[User:VeblenBot]] can list it at [[User:VeblenBot/PERtable]] for tracking purposes. It will also allow other users to easily get to the page where this template is being used so the template can be removed. -->[[Category:Non-talk pages requesting an edit to a protected page|{{NAMESPACE}} {{FULLPAGENAME}}]]
+
      -->{{tmbox
|demospace=<noinclude>Talk</noinclude>
+
          |image = [[File:Padlock.svg|link=|alt=|60px]]
}}
+
          |text = <!--
}}<noinclude>
+
=========================
 +
    Start tmbox text
 +
=========================
 +
          -->'''<!--
 +
          -->{{#ifexist: {{SUBJECTPAGENAME}}
 +
              | It is [[Wikipedia:Edit requests|requested]] that an edit be made to {{#if: {{{1|}}} | the | this }} <!--
 +
            -->{{#ifeq: {{NAMESPACE}} | {{ns:9}}
 +
                | [[Help:MediaWiki namespace|interface page]]
 +
                | [[Wikipedia:This page is protected|fully protected]] {{pagetype|{{{1|{{ARTICLESPACE}}}}}}}
 +
                }}<!--
 +
            -->{{#if: {{{1|}}}
 +
                | &#32;at [[{{{1}}}]]
 +
                }}.
 +
              | It is [[:Category:Wikipedia protected edit requests|requested]] that {{#if: {{{1|}}} | the | this }} [[Wikipedia:This page is protected|creation protected]] {{pagetype|{{{1|{{ARTICLESPACE}}}}}}}{{#if: {{{1|}}} | &#32;at [[{{{1}}}]] }} be created.
 +
            }}''' <!--
 +
          -->{{nowrap begin}}<!--
 +
          -->{{toolbar
 +
              |style=font-size:smaller;
 +
              | 1 = {{linked|{{{1|{{SUBJECTPAGENAME}}}}}|view}}
 +
              | 2 = [{{fullurl:{{urlencode:{{{1|{{SUBJECTPAGENAME}}}}}|WIKI}}|action=edit}} edit]
 +
              | 3 = [{{fullurl:{{urlencode:{{{1|{{SUBJECTPAGENAME}}}}}|WIKI}}|action=history}} history]
 +
              | 4 = <!--
 +
            -->{{#ifexist: {{{1|{{SUBJECTPAGENAME}}}}}/sandbox
 +
                | [[{{{1|{{SUBJECTPAGENAME}}}}}/sandbox|sandbox]]<!--
 +
                -->{{int:dot-separator}}<!--
 +
                -->[{{fullurl:{{urlencode:{{{1|{{SUBJECTPAGENAME}}}}}|WIKI}}/sandbox|action=edit}} edit sandbox]<!--
 +
                -->{{int:dot-separator}}<!--
 +
                -->[{{fullurl:{{urlencode:{{{1|{{SUBJECTPAGENAME}}}}}|WIKI}}/sandbox|action=history}} sandbox history]<!--
 +
                -->{{int:dot-separator}}<!--
 +
                -->[{{fullurl:Special:ComparePages
 +
                    |page1={{urlencode:{{{1|{{SUBJECTPAGENAME}}}}}|WIKI}}&page2={{urlencode:{{{1|{{SUBJECTPAGENAME}}}}}|WIKI}}/sandbox
 +
                    }} sandbox diff]
 +
                }}
 +
              | 5 = {{#ifexist: {{{1|{{SUBJECTPAGENAME}}}}}/testcases | {{linked|{{{1|{{SUBJECTPAGENAME}}}}}/testcases|test cases}} }}
 +
              | 6 = <!--
 +
            -->{{#ifeq: {{NAMESPACE}} | {{ns:11}}
 +
                | [http://toolserver.org/~jarry/templatecount/index.php?lang=en&name={{urlencode:{{{1|{{SUBJECTPAGENAME}}}}}}}#bottom transclusion count]
 +
                }}
 +
              | 7 = <!--
 +
            -->{{#ifeq: {{NAMESPACE}} | {{ns:9}}
 +
                |<!-- MediaWiki pages don't have protection log entries -->
 +
                |[{{fullurl:Special:Log|type=protect&page={{urlencode:{{{1|{{SUBJECTPAGENAME}}}}}|WIKI}}}} protection log]
 +
                }}
 +
              | separator = dot
 +
            }}<!--
 +
          -->{{nowrap end}}<!--
 +
===========================
 +
  Continue tmbox text
 +
===========================
 +
-->
 +
 
 +
<!--      -->This template should be followed by a '''complete and specific description''' of the request, <!--
 +
          -->so that an editor unfamiliar with the subject matter could complete the requested edit immediately.
 +
<!--      --><p style="font-size:smaller; line-height:1.3em;"><!--
 +
          -->This template should be used only to request edits to [[Wikipedia:Protection policy|fully protected pages]] <!--
 +
          -->that are either '''uncontroversial''' or supported by [[Wikipedia:Consensus|consensus]]. <!--
 +
          -->If the proposed edit might be controversial, discuss it on the protected page's talk page '''before''' using this template. <!--
 +
          -->{{#ifeq: {{SUBJECTSPACE}} | MediaWiki
 +
              | Note that MediaWiki interface pages cannot be unprotected
 +
              | To request that a page be protected or unprotected, make a [[Wikipedia:Requests for page protection|protection request]]
 +
            }}. <!--
 +
          -->When the request has been completed or denied, please add the {{para|answered|<var>yes</var>}} parameter to deactivate the template.
 +
<!--      --></p><!--
 +
          --><includeonly><!--
 +
          -->{{{category|<!--
 +
          -->[[Category:Wikipedia protected edit requests|<!--
 +
          -->{{#if: {{{2|}}}
 +
              | {{{2}}}
 +
              | {{#if: {{{1|}}}
 +
                | {{{1}}}
 +
                | {{#ifeq: {{TALKSPACE}} | {{ns:Talk}}
 +
                    |Article
 +
                    | {{SUBJECTSPACE}}
 +
                  }} <!--
 +
                -->{{PAGENAME}}
 +
                }}
 +
              }}<!--
 +
          -->]]<!--
 +
          -->}}}<!--
 +
          --></includeonly><!--
 +
=========================
 +
      End tmbox
 +
=========================
 +
      -->}}<!--
 +
===========================
 +
  Continue {{talk other}}
 +
===========================
 +
-->
 +
        | 2 = <!--
 +
      --><span class="error">Error: Protected edit requests can only be made on the talk page.</span><!--
 +
      -->[[Category:Wikipedia protected edit requests| {{#ifeq: {{NAMESPACE}} | {{ns:0}} | A }}{{FULLPAGENAME}}]]<!--
 +
 
 +
        --- If used on a non-talk page, add the page to [[:Category:Wikipedia protected edit requests]] anyway ---
 +
        --- so that [[User:VeblenBot]] can list it at [[User:VeblenBot/PERtable]] for tracking purposes.       ---
 +
        --- It will also allow other users to easily get to the page where this template is being used so the ---
 +
        --- template can be removed.                                                                           ---
 +
 
 +
      -->[[Category:Non-talk pages requesting an edit to a protected page|{{NAMESPACE}} {{FULLPAGENAME}}]]
 +
        | demospace = <noinclude>Talk</noinclude>
 +
      }}<!--
 +
=============================
 +
  End "if answered" function
 +
=============================
 +
-->}}<noinclude>
 
{{documentation}}
 
{{documentation}}
 
<!-- Add categories and interwiki links to the /doc subpage, not here! -->
 
<!-- Add categories and interwiki links to the /doc subpage, not here! -->
 
</noinclude>
 
</noinclude>

Revision as of 05:49, 16 March 2013

Template documentation[view] [edit] [history] [purge]

This template is placed on a talk page to request an edit of the corresponding fully protected page. The template should be accompanied by a clear and specific description of the requested change, and consensus should be obtained before the template is added. Please see Wikipedia:Edit requests for guidance, especially if this is the first time you are making an edit request.

To report an error you have noticed on the current main page or tomorrow's main page, please add it to the appropriate section on Wikipedia:Main Page/Errors instead of using this template.

Usage

Basic usage
{{Edit fully-protected}}
Specify pages to be edited
{{Edit fully-protected|First page to be edited|Second page to be edited|...}}
Deactivate a request
{{Edit fully-protected|answered=yes}}
All parameters
{{Edit fully-protected|First page to be edited|Second page to be edited|Third page to be edited|...|answeredTemplate:Y|demoTemplate:Y}}

Parameters

All parameters are optional:

  • positional parameters – Specify pages to be edited. You can add an unlimited number of pages.
  • |answered= or |ans= – Set this to "yes", "y", "true" or "1" to mark the edit request as answered. This removes the page from the edit request category.
  • |demo= – Set this to "yes", "y", "true" or "1" to demonstrate the template. This suppresses categories and namespace checks.

Responding to requests

See Wikipedia:Edit requests#Responding to requests.

See also