Template talk:Bots
This is the talk page for discussing improvements to the Bots template. |
|
Archives: 1 |
Syntax
[edit]It could have parameters except= or theseones=
e.g.
{nobots|except=werdnabot, RamBot}
or
{nobots|theseones=hangermanBot, smackBot}
Rich Farmbrough, 20:58 12 December 2006 (GMT).
Better idea from Hagerman on template page. Rich Farmbrough, 00:03 18 December 2006 (GMT).
Placement on a page
[edit]Where is this tag placed on a page? At the very beginning, or somewhere else? Also, perhaps a stupid question, does the tag need to be placed explicitly on the page that one wants to deny a bot from, or can it being placed on a talk page also affect the bot's parsing of the associated article, or does it have to be placed on each page one wants to deny the bot from parsing? Its position is not explicitly mentioned in WP:SECTIONORDER. - Cameron Dewe (talk) 21:43, 17 January 2023 (UTC)
- The placement of the template shouldn't matter as bots will, in general, scan all templates on the page for {{bots}} or {{nobots}}. Bots will likely not go out of their way to check the associated talk page of an main page and vice versa - only the page they are editing there and then will be checked. Aidan9382 (talk) 09:14, 22 May 2023 (UTC)
- @Cameron Dewe and Aidan9382: Editors are also not going to think to check the talk page for the template.
- I came here looking for an answer to Cameron Dewe's question. IMHO it should placed at position 5.5 in MOS:ORDER—after Deletion / protection tags and before Maintenance, cleanup, and dispute tags. DocWatson42 (talk) 07:36, 30 July 2024 (UTC)
- That position makes sense for me too. If the template is placed in the first few lines of the page, editors, and bots, should be able to find it easily, too. I also assume from this that to deny a bot from a talk page the template must also be placed explicitly on the talk page, not the article page. Perhaps the documentation here, or at MOS:ORDER and WP:TALKORDER, should also say the tag should be placed above the meaningful visible content of a page, or above the talk page banners, so that it can be spotted easily by editors and processed by bots before the page content is. I see the template's placement as a human thing, as part of a standardized layout for editors; not really a bot thing, which should stop processing a page upon encountering the tag, wherever it may be. - Cameron Dewe (talk) 18:24, 30 July 2024 (UTC)
- I apologize for my late reply—apparently I forgot to subscribe to this section. What you wrote makes sense to me. (Ella Stewart Udall had the template buried next to the last link in the "Further reading" section.) —DocWatson42 (talk) 05:27, 15 December 2024 (UTC)
- That position makes sense for me too. If the template is placed in the first few lines of the page, editors, and bots, should be able to find it easily, too. I also assume from this that to deny a bot from a talk page the template must also be placed explicitly on the talk page, not the article page. Perhaps the documentation here, or at MOS:ORDER and WP:TALKORDER, should also say the tag should be placed above the meaningful visible content of a page, or above the talk page banners, so that it can be spotted easily by editors and processed by bots before the page content is. I see the template's placement as a human thing, as part of a standardized layout for editors; not really a bot thing, which should stop processing a page upon encountering the tag, wherever it may be. - Cameron Dewe (talk) 18:24, 30 July 2024 (UTC)
The following is used in the section:
<nowiki>{{nobots}}</nowiki>
and is coded as: <code><nowiki><no</nowiki><nowiki>wiki>{{nobots}}</now</nowiki><nowiki>iki></nowiki></code>
.
This could be replaced by <code><nowiki><nowiki>{{nobots}}</nowiki></nowiki></code>
, which yields the same result. ExclusiveEditor Notify Me! 14:53, 16 May 2024 (UTC)
- You could wrap it in
<syntaxhighlight>...</syntaxhighlight>
tags:<syntaxhighlight lang="wikitext" inline="1"><nowiki>{{nobots}}</syntaxhighlight></nowiki>
<nowiki>{{nobots}}</nowiki>
- Prettier and not so much obfuscation.
- —Trappist the monk (talk) 11:54, 17 May 2024 (UTC)
Extra blank line
[edit]This template seems to be adding an extra blank line on the page Grammatical number. I would fix it myself, but I'm not sure where to start, e.g. the test cases don't check the raw template output, and I don't know enough Lua to read Module:String. — W.andrea (talk) 21:50, 2 February 2025 (UTC)
- Module:String itself isn't to blame here, this is just an issue with templates when they emit nothing afaict. I'm pretty sure just adding
<nowiki/>
would fix that, but I'm not 100% sure that's side effect free, and someone else already considered doing that before reverting themselves, so I won't go trying it myself. Aidan9382 (talk) 23:34, 2 February 2025 (UTC)- Ah, I see! I moved {{bots}} to the end of the article then, is that good? The blank line is still there, but at least it's out of the way at the bottom. — W.andrea (talk) 04:30, 3 February 2025 (UTC)