మూస:Edit fully-protected: కూర్పుల మధ్య తేడాలు

వికీపీడియా నుండి
Jump to navigation Jump to search
Update template
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
పంక్తి 1: పంక్తి 1:
{{#ifeq:{{{answered|{{{ans}}}}}}|yes
{{#ifeq:{{{answered| {{{ans}}} }}}|yes
|{{Edit protected/answered}}
|{{Edit protected/answered}}
|{{#switch:{{{1}}}
|{{talk other
|answered
|{{anchor|editprotected}}{{tmbox
|completed
|image = [[File:Padlock.svg|link=|alt=|60px]]
|done
|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
|finished
|style=font-size:smaller;
|fixed
|{{#ifeq:{{NAMESPACE}}|{{ns:9}}
|fulfilled
|<!-- MediaWiki pages don't have protection log entries -->0|1}}=[{{fullurl:Special:Log|type=protect&page={{urlencode:{{{1|{{SUBJECTPAGENAMEE}}}}}}}}} protection log]
|resolved

|responded
|{{#ifeq:{{NAMESPACE}}|{{ns:9}}|1|2}}=[{{fullurl:{{SUBJECTPAGENAME}}|action=edit}} edit the page]
|settled
|{{#ifeq:{{NAMESPACE}}|{{ns:9}}|2|3}}={{#ifexist:{{SUBJECTPAGENAME}}/sandbox
|solved={{Edit protected/answered}}
|[[{{SUBJECTPAGENAME}}/sandbox|sandbox]]
|#default = {{talk other
}}
|{{anchor|editprotected}}{{tmbox
| separator=dot
|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.
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 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>
</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 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}}]]
|2=<span class="error">Error: Protected edit requests should 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>
|demospace=<noinclude>Talk</noinclude>
}}<!-- end {talk other} -->
}}
}}<!-- end switch -->
}}<noinclude>
}}<!-- end ifeq --><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! -->

13:05, 13 జూలై 2012 నాటి కూర్పు