Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

Jump to content

Template talk:Infobox Wikipedia bot

Page contents not supported in other languages.
Add topic
From Wikipedia, the free encyclopedia
Latest comment: 7 years ago by Adamw in topic Source and configuration repo links


Example used

[edit]

Please feel free to choose a better example - I chose the bot that I just recently created. Perhaps an approved bot would be better. Anonymous DissidentTalk 06:24, 6 July 2007 (UTC)Reply

This is very nice! I have some more examples at User:Polbot, and I'll try to keep them up-to-date with the latest syntax. – Quadell (talk) (random) 00:23, 10 July 2007 (UTC)Reply

Source Code Published?

[edit]

How about adding another section that asks if the source code has been published or not? It would look like this:

{| class="infobox" cellspacing="5" style="width: 21em; font-size: 90%; text-align: left;"
|-
| colspan="2" style="text-align: center; font-size: 130%; font-weight: bold;" | {{{Bot name}}} [[Image:Crystal Clear action run.png|24px|this user is a Bot]]
|-
| colspan="2" style="text-align: center; font size: 95%;" | [[{{FULLPAGENAME}}|{{PAGENAME}}]] ([[{{TALKSPACE}}:{{BASEPAGENAME}}|Talk]] · [[Special:Contributions/{{PAGENAME}}|Contribs]])
{{#if:{{{logo|}}}|
<tr><td colspan="2" style="text-align: center;">{{{logo|}}}</td></tr>
}}{{#if:{{{image|}}}|
<tr><td colspan="2" style="text-align: center;">{{{image|}}}<br />{{{caption}}}</td></tr>
}}{{#if:{{{operator|}}}|
<tr><th>'''Operator''':</th><td>{{{operator|}}}</td></tr>
}}{{#if:{{{author|}}}|
<tr><th>'''Author'''</th><td>{{{author|}}}</td></tr>
}}{{#if:{{{approval|}}}|
<tr><th>'''[[Wikipedia:Bots/Requests for approval|Approved]]'''?</th><td>{{{approval|}}}</td></tr>
}}{{#if:{{{flag|}}}|
<tr><th>'''Flagged'''?</th><td>{{{flag|}}}</td></tr>
}}{{#if:{{{tasks|}}}|
<tr><th>'''[[Wikipedia:Bot requests|Task/s]]''':</th><td>{{{tasks|}}}</td></tr>
}}{{#if:{{{edit rate|}}}|
<tr><th>'''Edit rate''':</th><td>{{{edit rate|}}}</td></tr>
}}{{#if:{{{period|}}}|
<tr><th>'''Edit period/s''':</th><td>{{{period|}}}</td></tr>
}}{{#if:{{{process|}}}|
<tr><th>'''Automatic or manual'''?</th><td>{{{process|}}}</td></tr>
}}{{#if:{{{language|}}}|
<tr><th>'''[[Programming language]]/s''':</th><td>{{{language|}}}</td></tr>
}}{{#if:{{{Excl. comp.|}}}|
<tr><th>'''Exclusion compliant'''?</th><td>{{{Excl.Comp.|{{ #if: yes| Yes [[Category:Exclusion compliant bots]] }}}}}</td></tr>
}}{{#if:{{{source|}}}|
<tr><th>'''[[Source code]] published?'''?</th><td>{{{source|{{ #if: yes| Yes [[Category:Bots with{{#if: {{{language|}}} |  {{{language|}}} }} source code published]] }}}}}</td></tr>
}}{{#if:{{{shutoff|}}}|
<tr><th>'''Emergency shutoff-compliant'''?</th><td>{{{shutoff_compliant|{{#if:yes|Yes }}}}}</td></tr>
}}
{{#if:{{{other|}}}|
<tr><th>'''Other information''':</th><td>{{{other|}}}</td></tr>
}} 

|}

A lot of times, I am looking for bots with a certain language of source code if they have published, but there is no category for it. What do people think? Soxred93 has a boring sig 18:03, 2 December 2007 (UTC)Reply

Great idea, but it might be worth it to use a #switch statement to avoid including bots in non-existing categories, e.g.
<tr><th>'''[[Source code]] published?'''?</th><td>{{{source|{{ #if: yes| Yes [[Category:Bots with {{#switch:{{{language}}}|C++|Java|PHP|C#={{{language}}} |#default= }}source code published]] }}}}}</td></tr>
GracenotesT § 20:57, 2 December 2007 (UTC)Reply
I've added the code for some common Wikipedia bot languages, and created a few categories. Hopefully they'll fill up soon. GracenotesT § 22:03, 2 December 2007 (UTC)Reply
Hm, I nearly forgot: the parameter didn't exist until a couple of minutes ago. Well, bot owners can feel free to add the parameter to their parameters. GracenotesT § 22:12, 2 December 2007 (UTC)Reply
I've added C++, Python, Perl, Java, PHP, and C#. I won't create the categories until someone needs them. If you have any comments/criticisms about my implementation of your suggestion, please say so. GracenotesT § 22:32, 2 December 2007 (UTC)Reply

Exclusion Compliant category isn't sorting

[edit]

This template puts bots that say "yes" to the exclusion complaint field in Category:Exclusion compliant bots, but it doesn't sort them. Is there any way that this could be put in? Simply using {{BASEPAGENAME}} doesn't work, but perhaps I did it wrong. Thanks, Robert Skyhawk So sue me! (You'll lose) 03:50, 13 February 2009 (UTC)Reply

[edit]

I propose that we add parameters source_repository and config_repository, which link to a source control browser for the bot's source and configuration. This will make bot operation more transparent, by giving us a chance to review the code. It should also improve collaboration. Adamw (talk) 08:53, 26 August 2019 (UTC)Reply