टेम्पलेट:Edit fully-protected: रिवीजन सभ के बीचा में अंतर

Content deleted Content added
sync. w/ sandbox. changes: 1) code whitespace, indentation and documentation; 2) change "can only be made on the talk page" to "should only be made on the talk page"; 3) add support for closure using unnamed parameter
imported>MSGJ
Undid revision 502055166 by Waldir (talk) - mind if we discuss this?
लाइन 1:
{{#ifeq:{{{answered| {{{ans}}} }}}|yes
|{{Edit protected/answered}}
|#default = {{talk other
|{{#switch:{{{1}}}
|{{anchor|editprotected}}{{tmbox
|answered
|image = [[File:Padlock.svg|link=|alt=|60px]]
|completed
|text = '''{{#ifexist:{{SUBJECTPAGENAME}}|It is [[:Category:Wikipedia protected edit requests|requested]] that an edit be made to {{#if: {{{1|}}} | the | {{linked|{{SUBJECTPAGENAME}}|this}} }} {{#ifeq:{{NAMESPACE}}|{{ns:9}}|[[Help:MediaWiki namespace|interface page]]|[[Wikipedia:This page is protected|fully protected]] {{pagetype| {{{1| {{ARTICLESPACE}} }}} }} }}{{#if:{{{1|}}}| at [[{{{1}}}]]}}.|It is [[:Category:Wikipedia protected edit requests|requested]] that {{linked|{{SUBJECTPAGENAME}}| {{#if:{{{1|}}}|the|this}} }} [[Wikipedia:This page is protected|creation protected]] {{pagetype| {{{1| {{ARTICLESPACE}} }}} }}{{#if:{{{1|}}}| at [[{{{1}}}]]}} be created.}}''' {{toolbar
|done
|style=font-size:smaller;
|finished
|{{#ifeq:{{NAMESPACE}}|{{ns:9}}
|fixed
|<!-- MediaWiki pages don't have protection |{{#ifeq:{{NAMESPACE}}|{{ns:9}}|log entries -->0|1}} = [{{fullurl:Special:Log|type=protect&page={{urlencode: {{{1| {{SUBJECTPAGENAMEE}} }}} }} }} protection log]
|fulfilled
 
|resolved
|{{#ifeq:{{NAMESPACE}}|{{ns:9}}|1|2}} = [{{fullurl:{{SUBJECTPAGENAME}}|action=edit}} edit the page]
|responded
|{{#ifeq:{{NAMESPACE}}|{{ns:9}}|2|3}} = {{#ifexist:{{SUBJECTPAGENAME}}/sandbox|[[{{SUBJECTPAGENAME}}/sandbox|sandbox]]}}
|settled
|[[{{SUBJECTPAGENAME}}/sandbox|sandbox]]
|solved={{Edit protected/answered}}
}}
|#default = {{talk other
| separator=dot
|{{anchor|editprotected}}{{tmbox
}}
|image = [[File:Padlock.svg|link=|alt=|60px]]
|text = '''{{#ifexist:{{SUBJECTPAGENAME}}|It is [[:Category:Wikipedia protected edit requests|requested]] that an edit be made to {{#if: {{{1|}}} | the | {{linked|{{SUBJECTPAGENAME}}|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 {{linked|{{SUBJECTPAGENAME}}| {{#if:{{{1|}}}|the|this}} }} [[Wikipedia:This page is protected|creation protected]] {{pagetype| {{{1| {{ARTICLESPACE}} }}} }}{{#if:{{{1|}}}|&#32;at [[{{{1}}}]]}} be created.}}''' {{toolbar
|style = font-size:smaller;<!-- Note for next line: MediaWiki pages (namespace 9) don't have protection log entries -->
|{{#ifeq:{{NAMESPACE}}|{{ns:9}}|0|1}} = [{{fullurl:Special:Log|type=protect&page={{urlencode: {{{1| {{SUBJECTPAGENAMEE}} }}} }} }} protection log]
|{{#ifeq:{{NAMESPACE}}|{{ns:9}}|1|2}} = [{{fullurl:{{SUBJECTPAGENAME}}|action=edit}} edit the page]
|{{#ifeq:{{NAMESPACE}}|{{ns:9}}|2|3}} = {{#ifexist:{{SUBJECTPAGENAME}}/sandbox|[[{{SUBJECTPAGENAME}}/sandbox|sandbox]]}}
|separator = dot
}}<!-- end {toolbar} -->
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.
<div 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.
</div><includeonly>{{{category|[[Category:Wikipedia protected edit requests|{{#if:{{{2|}}}|{{{2}}}| {{#if:{{{1|}}}|{{{1}}}| {{#ifeq: {{TALKSPACE}}|{{ns:Talk}} | Article | {{SUBJECTSPACE}} }} {{PAGENAME}} }} }}]]}}}</includeonly>
}}
}}<!-- end {tmbox} -->
|2=<span class="error">Error: Protected edit requests shouldcan 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 {talk other} -->
}}<!-- end ifeq --><noinclude>
}}<!-- end switch -->
}}<!-- end ifeq --><noinclude>
{{documentation}}
<!-- Add categories and interwiki links to the /doc subpage, not here! -->