Difference between revisions of "Template:Infobox Wikipedia bot"
imported>Rjanag (making caption optional) |
imported>DemonDays64 (Undid revision 929935351 by DemonDays64 (talk)) |
||
| (51 intermediate revisions by 21 users not shown) | |||
| Line 1: | Line 1: | ||
| − | {| | + | <includeonly>{{Infobox |
| − | + | | title = {{{Bot name}}} | |
| − | | | + | | above = {{#if: {{{isbot|}}}|{{#switch:{{{isbot|}}}|no|No=|#default=This user is a bot}}|This user is a bot}} |
| − | | | + | | subheader = ([[{{{talkpagespace|{{TALKSPACE}}}}}:{{{username|{{{Bot name}}}}}}|talk]] · [[Special:Contributions/{{{username|{{{Bot name}}}}}}|contribs]]) |
| − | {{# | + | | image1 = {{#invoke:InfoboxImage|InfoboxImage|image={{{logo|}}}}} |
| − | + | | image2 = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}}} | |
| − | }}{{# | + | | caption2 = {{{caption|}}} |
| − | + | ||
| − | + | | label1 = Status | |
| − | < | + | | data1 = {{{status|{{#switch:{{lc:{{{active|}}}}}|true|yes='''<span style="color:#008000">Active</span>'''|false|no='''<span style="color:#800000">Inactive</span>'''|#default=}}}}} |
| − | }} | + | | label2 = Operator |
| − | + | | data2 = {{{operator|}}} | |
| − | + | | label3 = Author | |
| − | + | | data3 = {{{author|}}} | |
| − | + | | label4 = [[Wikipedia:Bots/Requests for approval|Approved]]? | |
| − | + | | data4 = {{#switch:{{{approval|}}}|yes|Yes=[[Wikipedia:Bots/Requests for approval/{{#if:{{{brfa|}}}|{{{brfa|}}}|{{PAGENAME}}}}|{{{approval|}}}]]|yesnolink=Yes|#default={{{approval|}}}}} | |
| − | + | | label5 = [[Wikipedia:User_access_levels#Bots|Flagged]]? | |
| − | + | | data5 = {{{flag|}}} | |
| − | + | | label6 = Task(s) | |
| − | + | | data6 = {{{tasks|}}} | |
| − | + | | label7 = Edit rate | |
| − | + | | data7 = {{{edit rate|}}} | |
| − | + | | label8 = Edit period(s) | |
| − | + | | data8 = {{{period|}}} | |
| − | + | | label9 = Automatic or manual? | |
| − | + | | data9 = {{{process|}}} | |
| − | + | | label10 = [[Programming language]](s) | |
| − | + | | data10 = {{{language|}}} | |
| − | }}{{# | + | | label11 = [[:Category:Wikipedia bots which are exclusion compliant|Exclusion compliant]]? |
| − | + | | data11 = {{#if:{{yesno|{{{Excl. comp.|}}}|def=}}|Yes{{#ifeq:{{{nocat}}}|yes||[[Category:Wikipedia bots which are exclusion compliant|{{PAGENAME}}]]}}|No}} | |
| − | | | + | | label12 = Source code published? |
| − | + | | data12 = {{{source|}}} {{#switch:{{lc:{{{source|}}}}}|no|=|#default={{#ifeq:{{{nocat}}}|yes|| [[Category:Wikipedia bots with {{#switch:{{lc:{{delink|{{#if:{{{lang_cat|}}}|{{{lang_cat}}}|{{{language|}}}}}}}}} | |
| − | + | | wp:awb | |
| − | + | | autowikibrowser | |
| − | + | | awb = AutoWikiBrowser | |
| − | + | | ruby = Ruby | |
| − | | | + | | pywikipedia |
| − | | | + | | pywikibot |
| − | + | | pywiki | |
| − | | | + | | python = Python |
| − | |Python | + | | perl = Perl |
| − | |Perl | + | | java = Java |
| − | |Java | + | | javascript = Javascript |
| − | | | + | | php = PHP |
| − | | | + | | c# |
| − | | | + | | c sharp = C Sharp |
| − | |#default= | + | | #default = |
| − | + | }} source code published|{{PAGENAME}}]]}}}} | |
| − | + | | label13 = Emergency shutoff-compliant? | |
| − | }} | + | | data13 = {{{shutoff|{{{shutoff_compliant|{{#if:yes|Yes}}}}}}}} |
| − | {{# | + | | label14 = Other information |
| − | + | | data14 = {{{other|}}} | |
| − | }} | + | |
| − | |}<noinclude> | + | }}{{#ifeq:{{{nocat}}}|yes||{{#switch:{{lc:{{{active|}}}}}|true|yes=[[Category:Active Wikipedia bots]]|false|no=[[Category:Inactive Wikipedia bots]]}}}}</includeonly><noinclude>{{Documentation}}<!-- PLEASE ADD CATEGORIES AND INTERWIKIS TO THE /doc SUBPAGE, THANKS. --></noinclude> |
| − | {{Documentation}} | ||
| − | <!-- PLEASE ADD CATEGORIES AND INTERWIKIS TO THE /doc SUBPAGE, THANKS --> | ||
| − | </noinclude> | ||
Latest revision as of 05:23, 9 December 2019
Infobox
The complete infobox:
{{Infobox bot
| Bot name =
| image =
| caption =
| status =
| operator =
| author =
| approval =
| flag =
| tasks =
| edit rate =
| process =
| language =
| period =
| Excl. comp. =
| source =
| lang_cat =
| shutoff =
| other =
| nocat =
| brfa =
| active =
}}
|
Values for lang_cat are AWB, C Sharp, Java, Javascript, Perl, PHP, Python, and Ruby.
Status
Setting |active=yes will set the "Status" field to Active and, unless |nocat=yes, place the page into Category:Active Wikipedia bots. Setting |active=no will set the "Status" field to Inactive and, unless |nocat=yes, place the page into Category:Inactive Wikipedia bots. Setting the |status= parameter to any value will override the automatic value in the status field.
If the bot uses a status or automatic shutoff page, you can use it to automatically categorize the bot. If the status page consists only the word "true"/"false" (or "yes"/"no"), you can use:
active={{lc:{{NAME OF STATUS PAGE}}}}
If it uses something other than "true"/"false" or "yes"/"no", but there are still only one possible contents of the status page when the bot is running, use:
active={{#ifeq:{{lc:{{NAME OF STATUS PAGE}}}}|LOWER CASE TEXT IF BOT IS ACTIVE|yes|no}}
If your bot has multiple lines on the status page for multiple bot tasks, and you want to display as active if any of them are running (indicated by "true" in this example), use:
active={{#iferror:{{#invoke:String|match|s={{NAME OF STATUS PAGE}}|pattern=true}}|no|yes}}
Example
| This user is a bot | |
|---|---|
| (talk · contribs) | |
![]() SkyBot 1 at top-speed | |
| Operator | Anonymous Dissident (t) |
| Approved? | Not yet |
| Flagged? | No |
| Task(s) | (Will) Work at WP:CFD/W, Wikiproject tagging. |
| Edit rate | (Proposed) 10 per minute |
| Edit period(s) | Periodically |
| Automatic or manual? | Automatic |
| Programming language(s) | Works through AWB |
| Exclusion compliant? | Yes |
| Source code published? | no |
| Emergency shutoff-compliant? | Yes |
| Other information | SkyBot 1 may later be assigned the task of delivering newsletters. |
{{Infobox bot
|Bot name = SkyBot 1
|image = [[File:F-105 Thunderchief underside.jpg|300px|SkyBot 1]]
|caption = '''SkyBot 1 at top-speed'''
|operator = [[user:Anonymous Dissident|Anonymous Dissident]] [[User talk:Anonymous Dissident|(t)]]
|approval = Not yet
|flag = No
|tasks = (Will) Work at [[WP:CFD/W]], Wikiproject tagging.
|edit rate = (Proposed) 10 per minute
|period = Periodically
|process = Automatic
|language = Works through [[WP:AWB|AWB]]
|Excl. comp. = yes
|source = no
|other = SkyBot 1 may later be assigned the task of delivering newsletters.
}}
| The above documentation is transcluded from Template:Infobox Wikipedia bot/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |
