Template:Bot:修订间差异

删除的内容 添加的内容
enwiki>Axolitl
hide block notice if bot is already blocked, also fix indenting which makes image not work on preview
云云​(留言 | 贡献)
无编辑摘要
 
第1行:
{{mbox
<templatestyles src="Bot/styles.css" />{{subpage other||{{User other|{{#if:{{{1|}}}|{{#if:{{{2|}}}{{{3|}}}||{{short description|Wikipedia editing bot run by {{Trim|{{{1|}}}}}|noreplace}}}}}}}}}}{{Ombox
|image = [[File:{{{image|{{#ifswitch:{{yesno|{{{banner|}}approved}}}
|yes|y|1=[[File:Bot Mark (Green).svg|40px|link=|alt=]]
|Emblem-system-2-blue.svg
|no|n|0=[[File:Bot Mark (Red).svg|40px|link=|alt=]]
|{{#switch:{{lc:{{{status|}}}}}
|test=[[File:Bot Mark (Orange).svg|40px|link=|alt=]]
|active |approved = Emblem-system-2-check.svg
|exempt=[[File:Bot Mark (Blue).svg|40px|link=|alt=]]
|inactive = Emblem-system-2-clock.svg
|#default=[[File:Bot Mark (Red).svg|40px|link=|alt=]]
|retired = Emblem-system-2-clock-yellow.svg
|expired = Emblem-system-2-clock-red.svg
|blocked |unapproved = Emblem-system-2-deletion.svg
|trial = Emblem-system-2-question.svg
|#default = Emblem-system-2-blue.svg
}}
}}}}}|75px|{{{caption|{{ucfirst:{{{status|This is a}}}}} bot account.}}}|alt={{{alt|}}}{{#if:{{{image|}}}||{{!}}link{{=}}}}]]
|text = <strong>This [[Wikipedia:Sockpuppetry#Legit|user account]] is a [[Wikipedia:Bots|bot]]<!--
 
CODEBASE? -->{{#if:{{{codebase|}}}
|&#32;that uses {{#switch:{{lc:{{{codebase}}}}}
|pywiki |pywikipedia |pywikibot=[[mw:Manual:Pywikibot|Pywikibot]]
|perl |perlwikipedia=[[meta:Perlwikipedia|perlWikipedia]]
|#default={{{codebase}}}
}}{{#ifeq:{{yesno-no|{{{awb}}}}}|yes
|&#32;and [[Wikipedia:AutoWikiBrowser|AutoWikiBrowser]]
}},
|{{#ifeq:{{yesno-no|{{{awb}}}}}|yes
|&#32;that uses [[Wikipedia:AutoWikiBrowser|AutoWikiBrowser]],
}}
}}&#32;operated by <!--
 
USER1-->{{{by|[[:{{{site|en}}}:User:{{Trim|{{{1}}}}}|{{Trim|{{{1}}}}}]] ([[:{{{site|en}}}:User talk:{{{talklink|{{Trim|{{{1}}}}}}}}|talk]])}}}<!--
 
USER2-->{{#if:{{{2|}}}|{{#if:{{{3|}}}|,&#32;|&#32;and&#32;}}{{{by2|[[:{{{site2|en}}}:User:{{Trim|{{{2}}}}}|{{Trim|{{{2}}}}}]] ([[:{{{site2|en}}}:User talk:{{{talklink|{{Trim|{{{2}}}}}}}}|talk]])}}}<!--
 
USER3-->{{#if:{{{3|}}}|, and {{{by3|[[:{{{site3|en}}}:User:{{Trim|{{{3}}}}}|{{Trim|{{{3}}}}}]] ([[:{{{site3|en}}}:User talk:{{{talklink|{{Trim|{{{3}}}}}}}}|talk]])}}}
}}}}.</strong> <!--
 
PURPOSE-->It is used to make repetitive [[Wikipedia:Bots/Dictionary#Automated editing|automated]] or [[Wikipedia:Bots/Dictionary#Assisted editing|semi-automated]] edits that would be extremely tedious to do manually, in accordance with the [[Wikipedia:Bot policy|bot policy]]. {{#if: {{yesno|{{{banner|}}}}}
|<!--banner=yes-->{{#if:{{#switch:{{lc:{{{status|}}}}}|blocked|active|approved|inactive|retired|trial|expired|unapproved = 1|#default =}}
|{{Ombox
|image=[[File:{{{bannerimage|{{{statusimage|{{#switch: {{lc:{{{status|}}}}}
|active |approved = Check icon.svg
|inactive = Ambox clock.svg
|retired = Ambox clock yellow.svg
|expired = Ambox clock red.svg
|blocked |unapproved = Deletion icon.svg
|trial = Ambox question.svg
|#default = Blank.svg
}}}}}}}}|40px|alt={{{status}}}{{#if:{{{bannerimage|{{{statusimage|}}}}}}||{{!}}link{{=}}}}]]
| style = margin: auto; {{{bannerstyle|{{{statusstyle|}}}}}}
| class = bot-banner-{{#switch:{{lc:{{{status}}}}}|active|approved|inactive|retired|blocked|expired|unapproved|trial={{lc:{{{status}}}}}|#default=unknown}}
| text = {{Bot/messages
| status = {{lc:{{{status|}}}}}
| brfa = {{{brfa|}}}
| globalbot = {{{globalbot|}}}
| username = {{{username|}}}
| overridebrfa = {{{overridebrfa|}}}
| approvalneeded = {{{approvalneeded|}}}
| nocat = {{{nocat|<includeonly>¬</includeonly>}}}
}} {{{more|}}}
}}|{{#if:{{{more|}}}|{{ombox|image={{#if:{{{bannerimage|{{{statusimage|}}}}}}|[[File:{{{bannerimage|{{{statusimage}}}}}}|40px]]|none}}|style={{{bannerstyle|{{{statusstyle|}}}}}}|text={{{more}}}}}}}}}
|<!--banner=no-->{{Bot/messages
| status = {{lc:{{{status|}}}}}
| brfa = {{{brfa|}}}
| globalbot = {{{globalbot|}}}
| username = {{{username|}}}
| overridebrfa = {{{overridebrfa|}}}
| approvalneeded = {{{approvalneeded|}}}
| nocat = {{{nocat|<includeonly>¬</includeonly>}}}
}} {{{more|}}}<br/>
}}
|text=本账户属于机器人账户,由{{#if:{{{user|}}}|[[User:{{{user|}}}|{{{user|}}}]]|{{error|请输入用户名}}}}操作并运行。<br>
<small>{{#ifeq:{{yesno-no|{{{awb}}}}}|yes
<small>{{#switch:{{{approved}}}
|{{#ifeq:{{lc:{{{status|}}}}}|blocked||To stop this bot until restarted by the bot's owner, edit its {{no redirect|User talk:{{PAGENAME}}|talk page}}. {{#if:{{is redirect|User talk:{{PAGENAME}}|talk=yes}}|(Edit the redirect, not its target.)}}
|yes|y|1=本机器人账户的运行自主声明已获许可。
}}}}{{#ifeq:{{lc:{{{status|}}}}}|blocked||<span class="sysop-show"><em>&#32;Administrators: if this bot {{#ifeq: {{lc:{{{status}}}}}|unapproved
|no|n|0=
|is making edits that appear to be unassisted to pages not in the operator's or its own userspace
|test=本机器人账户正在进行测试,其运行已获得[[User:云云|云云]]许可。
|{{#ifeq:{{yesno-no|{{{awb}}}}}|yes
|exempt=本机器人账户无需取得许可即可运行。<br>本机器人账户不得进行大规模运作,运行期间也不得脱离操作者监视。
|continues causing harm after receiving a message
|#default=
|is malfunctioning or causing harm
}}</small>
}}
}}<includeonly>{{{nocat|[[Category:轻之舟百科机器人]]}}}</includeonly><noinclude>{{doc|content=
}}, please [{{fullurl:Special:Block|wpTarget={{PAGENAMEE}}&wpExpiry=indefinite&wpHardBlock=0&wpAutoBlock=0&wpCreateAccount=0&wpReason=other&wpReason-other=Bot%20malfunctioning:%20}} block it].</em></span>}}</small>
{{mbox|text={{Br separated entries|本模板用于标记机器人账户的用户页。|'''请不要在一般用户的页面上引用此模板!'''}}}}
|imageright={{#ifeq:{{yesno-no|{{{awb}}}}}|yes
<templatedata>
|[[File:AWB_logo_draft.svg|75px]]{{#ifeq: {{{nocat|¬}}} |¬ |[[Category:Wikipedia bots using AutoWikiBrowser]]}}}}
{
}}<includeonly>{{#ifeq: {{{nocat|¬}}} |¬ |[[Category:All Wikipedia bots]]{{#if:{{yesno|{{{globalbot|}}}}}|[[Category:Global Wikipedia bots]][[Category:Interwiki bots]]|}}}}</includeonly><noinclude>
"params": {
{{documentation}}
"user": {
"label": "操作者",
"description": "操作者的用户名",
"example": "User:Example",
"type": "string"
},
"approved": {
"label": "批准状况",
"type": "string",
"default": "no",
"description": "该机器人是否被批准:是(yes)/否(no)/豁免(exempt)/测试(test)"
}
},
"description": "用于机器人的用户页上进行提示。",
"format": "inline"
}
</templatedata>
}}
[[Category:轻之舟百科机器人]]
</noinclude>