模板:Bot/sandbox
外观
此为机械人帐号,操作者为[[:zh:User:{{{1}}}|{{{1}}}]]([[:zh:User talk:{{{1}}}|讨论]]),属合规附属帐户,以半自动或全自动方式协助用户处理繁琐而重复的工作。 管理员︰若然此机械人失灵或作出有问题编辑,请施予封禁。 |
这是Template:Bot(差异)的沙盒。 |
参数及使用方法
[编辑]- 1
- 第一个参数为机械人操作者。
The first unnamed parameter specifies the operator of the bot. - 2, 3
- 如有需要,第二及第三个参数为其他机械人共同操作者。
The second and third unnamed parameters can be used to specify co-operators of the bot, if required. - site
- 操作者如无本地帐户,则可输入两个字母语言代码。
The two letter code for those operators that do not have an account on the English language Wikipedia (though having a local account is strongly recommended). - status
- active(在用而且已得到批准)、 inactive(得到批准但不在用)、trial(测试中)或unapproved(未批准或许可已撤销)
active (and approved), inactive (but approved), trial or unapproved - awb
- yes (如有使用AWB)或留空(如果并非使用AWB)
yes (if this bot uses AWB), or omit (if it doesn't). - codebase
- 机械人所使用程序语言(例如︰Pywikibot、perlWikipedia……)
The name of the code (programming or scripting language) used to create the bot (e.g., Pywikibot, perlWikipedia, ...) - brfa
- 选填︰如有,就会更改内链连接,否则就会连接到{{BASEPAGENAME}}。
Optional if specified, overrides the name of the request for approval. If not specified, defaults to {{BASEPAGENAME}} - by
- 选填︰如有就会盖过头三个参数,即1,2及3,改为显示此参数所带内容。
Optional if specified, overrides the usual display of the operator's username in the first line generated from the three unnamed parameters. - approvalneeded
- 如果上面status标记为“active/approved”,而且在此参数输入yes,则模板会标示该机械人所执行事项为毋须事先取得批准。
If status indicated active/approved, setting yes will make the template indicate that the bot is running tasks for which no approval is needed. - overridebrfa
- 如果机械人曾经递交过几项申请、得到过几次批准或有几项工作,而预设BRFA连结未能够显示所有已批准申请或工作,则可在此参数输入其他维基百科页面连结。此参数会盖过brfa。
If the bot has multiple requests or approval, or multiple tasks, and the default BRFA link cannot link to a page that contains all the bot's approved requests or tasks, this field allows inputting a link to any Wikipedia page. Specifying this field overrides brfa. - more
- 其他额外资讯,通常不用,因为
|status=
、|brfa=
及|approvalneeded=
已包含大部分资讯。
Any additional information to specify in the mbox. Usually not needed, since|status=
,|brfa=
, and|approvalneeded=
covers most cases. - alt
- 选填︰图档替代文字。
Optional alternate text for the image.
范例
[编辑]Code | Result | |||
---|---|---|---|---|
{{Bot|Example}}
|
| |||
{{Bot|John Smith|site=en}}
|
| |||
{{Bot|John Smith|site=en|awb=yes}}
|
| |||
{{Bot|John Smith|site=en
|
| |||
{{Bot|John Smith|site=en|status=active}}
|
| |||
{{Bot|John Smith|site=en|status=trial}}
|
| |||
{{Bot|John Smith|site=en|status=inactive}}
|
| |||
{{Bot|John Smith|site=en|status=unapproved}}
|
| |||
{{Bot|John Smith|site=en
|
| |||
{{Bot|John Smith|image=Crystal Clear question bot.svg
|
|
参见
[编辑]- {{User bot owner}}