跳转到内容

模板:Bot/doc

维基百科,自由的百科全书

参数及使用方法

[编辑]
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
机器人所使用程序语言(例如︰PywikibotperlWikipedia……)
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
|codebase=[[m:perlwikipedia|perlWikipedia]]}}
{{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
|status=active|globalbot=yes}}
{{Bot|John Smith|image=Crystal Clear question bot.svg
|more=此機器人正在測試中。}}

参见

[编辑]