跳转到内容

Template:Bot/doc

维基新闻,自由的新闻源

页面Template:Cmbox/style.css没有内容。

參數及使用方法

[编辑]
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
Template:Tlp
Template:Tlp
Template:Tlp
Template:Tlp
Template:Tlp
Template:Tlp
Template:Tlp
Template:Tlp
Template:Tlp
Template:Tlp

參見

[编辑]