Module talk:Disambiguation: Difference between revisions

Content deleted Content added
m Bot: create edit request to update disambiguation template list
 
(29 intermediate revisions by 7 users not shown)
Line 397:
 
Would there be any comments about creating a similar module (or adding a function to this one) to detect [[wp:set index articles|set index articles]]? I assume a similar method could be used, with a different set of templates. &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 10:51, 17 October 2023 (UTC)
 
:Would like to pursue this idea. Rather than having to scan and parse the text of an article twice, would it be possible to write a function which would return "disambig" or "sia" if either of those types of template are found on the page? Would the bot be able to keep a list of sia templates up-to-date in the same way as [[Module:Disambiguation/templates]]? &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 22:31, 1 December 2023 (UTC)
 
== Request update of template list (19 October 2023) ==
 
{{edit fully-protected|Module:Disambiguation/templates|answered=noyes}}
 
Bot comment: StradBot has detected that [[Module:Disambiguation/templates]] needs to be updated. This is due to a disambiguation template being added or removed from [[:Category:Disambiguation message boxes]], or to a redirect to one of those templates being added or removed. The bot has saved the new page content in [[Module:Disambiguation/templates/sandbox]] ([https://en.wikipedia.org/w/index.php?title=Special:ComparePages&page1=Module%3ADisambiguation%2Ftemplates&page2=Module%3ADisambiguation%2Ftemplates%2Fsandbox diff]). Please review this and update the module if necessary. [[User:StradBot|StradBot]] ([[User talk:StradBot|talk]]) 06:45, 19 October 2023 (UTC)
:{{done}}<!-- Template:EP --> &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 07:06, 19 October 2023 (UTC)
 
== Request update of template list (20 December 2023) ==
 
{{edit fully-protected|Module:Disambiguation/templates|answered=yes}}
Bot comment: StradBot has detected that [[Module:Disambiguation/templates]] needs to be updated. This is due to a disambiguation template being added or removed from [[:Category:Disambiguation message boxes]], or to a redirect to one of those templates being added or removed. The bot has saved the new page content in [[Module:Disambiguation/templates/sandbox]] ([https://en.wikipedia.org/w/index.php?title=Special:ComparePages&page1=Module%3ADisambiguation%2Ftemplates&page2=Module%3ADisambiguation%2Ftemplates%2Fsandbox diff]). Please review this and update the module if necessary. [[User:StradBot|StradBot]] ([[User talk:StradBot|talk]]) 06:45, 20 December 2023 (UTC)
:{{done}}<!-- Template:EP --> &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 09:39, 20 December 2023 (UTC)
 
== Request update of Module:Disambiguation/templates (20 February 2024) ==
 
{{edit fully-protected|Module:Disambiguation/templates|answered=yes}}
 
Bot comment: StradBot has detected that [[Module:Disambiguation/templates]] needs to be updated. This is due to a template being added or removed from [[:Category:Disambiguation message boxes]], or to a redirect to one of those templates being added or removed. The bot has saved the new page content in [[Module:Disambiguation/templates/sandbox]] ([https://en.wikipedia.org/w/index.php?title=Special:ComparePages&page1=Module%3ADisambiguation%2Ftemplates&page2=Module%3ADisambiguation%2Ftemplates%2Fsandbox diff]). Please review this and update the module if necessary. [[User:StradBot|StradBot]] ([[User talk:StradBot|talk]]) 15:38, 20 February 2024 (UTC)
:Note: this edit request is a result of me changing the sorting algorithm governing the order that redirects are displayed in (upper case strings should now be sorted in alphabetical order). There is no difference in the templates used, so this would be a purely cosmetic edit. As such, I am deactivating the edit request. Future bot runs will only create new edit requests if the module sandbox changes, so it is fine to leave the main module as it is. — '''''[[User:Mr. Stradivarius|<span style="color: #194D00; font-family: Palatino, Times, serif">Mr.&nbsp;Stradivarius</span>]]''''' <sup>[[User talk:Mr. Stradivarius|♪&nbsp;talk&nbsp;♪]]</sup> 15:49, 20 February 2024 (UTC)
 
== Request update of Module:Disambiguation/templates (21 March 2024) ==
 
{{edit fully-protected|Module:Disambiguation/templates|answered=yes}}
Bot comment: StradBot has detected that [[Module:Disambiguation/templates]] needs to be updated. This is due to a template being added or removed from [[:Category:Disambiguation message boxes]], or to a redirect to one of those templates being added or removed. The bot has saved the new page content in [[Module:Disambiguation/templates/sandbox]] ([https://en.wikipedia.org/w/index.php?title=Special:ComparePages&page1=Module%3ADisambiguation%2Ftemplates&page2=Module%3ADisambiguation%2Ftemplates%2Fsandbox diff]). Please review this and update the module if necessary. [[User:StradBot|StradBot]] ([[User talk:StradBot|talk]]) 06:46, 21 March 2024 (UTC)
:{{done}}<!-- Template:EP --> &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 12:29, 21 March 2024 (UTC)
 
== Request update of Module:Disambiguation/templates (10 August 2024) ==
 
{{edit fully-protected|Module:Disambiguation/templates|answered=yes}}
 
Bot comment: StradBot has detected that [[Module:Disambiguation/templates]] needs to be updated. This is due to a template being added or removed from [[:Category:Disambiguation message boxes]], or to a redirect to one of those templates being added or removed. The bot has saved the new page content in [[Module:Disambiguation/templates/sandbox]] ([https://en.wikipedia.org/w/index.php?title=Special:ComparePages&page1=Module%3ADisambiguation%2Ftemplates&page2=Module%3ADisambiguation%2Ftemplates%2Fsandbox diff]). Please review this and update the module if necessary. [[User:StradBot|StradBot]] ([[User talk:StradBot|talk]]) 06:45, 10 August 2024 (UTC)
: {{done}} [[User:Pppery|* Pppery *]] [[User talk:Pppery|<sub style="color:#800000">it has begun...</sub>]] 01:24, 11 August 2024 (UTC)
 
== Request update of Module:Disambiguation/templates (16 August 2024) ==
 
{{edit fully-protected|Module:Disambiguation/templates|answered=yes}}
Bot comment: StradBot has detected that [[Module:Disambiguation/templates]] needs to be updated. This is due to a template being added or removed from [[:Category:Disambiguation message boxes]], or to a redirect to one of those templates being added or removed. The bot has saved the new page content in [[Module:Disambiguation/templates/sandbox]] ([https://en.wikipedia.org/w/index.php?title=Special:ComparePages&page1=Module%3ADisambiguation%2Ftemplates&page2=Module%3ADisambiguation%2Ftemplates%2Fsandbox diff]). Please review this and update the module if necessary. [[User:StradBot|StradBot]] ([[User talk:StradBot|talk]]) 06:45, 16 August 2024 (UTC)
:{{done}}<!-- Template:EP --> &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 19:18, 18 August 2024 (UTC)
 
== Request update of Module:Disambiguation/templates (19 August 2024) ==
 
{{edit fully-protected|Module:Disambiguation/templates|answered=yes}}
Bot comment: StradBot has detected that [[Module:Disambiguation/templates]] needs to be updated. This is due to a template being added or removed from [[:Category:Disambiguation message boxes]], or to a redirect to one of those templates being added or removed. The bot has saved the new page content in [[Module:Disambiguation/templates/sandbox]] ([https://en.wikipedia.org/w/index.php?title=Special:ComparePages&page1=Module%3ADisambiguation%2Ftemplates&page2=Module%3ADisambiguation%2Ftemplates%2Fsandbox diff]). Please review this and update the module if necessary. [[User:StradBot|StradBot]] ([[User talk:StradBot|talk]]) 06:45, 19 August 2024 (UTC)
:{{done}}<!-- Template:EP --> &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 07:15, 19 August 2024 (UTC)
 
== Request update of Module:Disambiguation/templates (16 September 2024) ==
 
{{edit fully-protected|Module:Disambiguation/templates|answered=yes}}
Bot comment: StradBot has detected that [[Module:Disambiguation/templates]] needs to be updated. This is due to a template being added or removed from [[:Category:Disambiguation message boxes]], or to a redirect to one of those templates being added or removed. The bot has saved the new page content in [[Module:Disambiguation/templates/sandbox]] ([https://en.wikipedia.org/w/index.php?title=Special:ComparePages&page1=Module%3ADisambiguation%2Ftemplates&page2=Module%3ADisambiguation%2Ftemplates%2Fsandbox diff]). Please review this and update the module if necessary. [[User:StradBot|StradBot]] ([[User talk:StradBot|talk]]) 06:45, 16 September 2024 (UTC)
:{{done}}<!-- Template:EP --> [[User:Elli|Elli]] ([[User_talk:Elli|talk]] &#124; [[Special:Contributions/Elli|contribs]]) 23:20, 26 September 2024 (UTC)
 
== Edit request 18 January 2025 - Speed improvements ==
 
{{edit fully-protected|answered=yes}}
Replaces the recently added nowiki/comment removal code with a module that does the same thing but a bit faster (~30% faster overall, though the general performance hit isn't much anyways). Normally wouldn't worry about it too much, but this module is decently used and might have good reason to be invoked more than one time on a page. [[User:Aidan9382|Aidan9382]] <sub>([[User talk:Aidan9382|talk]])</sub> 20:46, 18 January 2025 (UTC)
 
:@[[User:Aidan9382|Aidan9382]]It feels counter-intuitive to import over a whole module to see a slight performance gain, maybe you could copy over only the relevant parts ? and replace the gsub code ? [[User:Sohom Datta|<b class="skin-invert" style="color:#795cb2; display: inline-block; transform: rotate(1deg)">Sohom</b>]] ([[User talk:Sohom Datta|<span class="skin-invert" style="color: #36c;">talk</span>]]) 14:56, 22 January 2025 (UTC)
::{{ping|Sohom Datta}} The entire point of the module used is that "doing it fast" is an involved process, since there's no gsub that can reasonably capture both nowiki and html comments at the same time, so you instead have to do some rather involved matching to do it in just one scan of the content. Copying over the relevant parts is something I want to directly avoid because it's a decent chunk of code and duplicating it everywhere would get incredibly messy fast, and that's why I made that module in the first place. And I don't get what you mean by "replacing the gsub code", since that's what the module is doing here, so I've already done that(?). Not quite sure what you mean there. [[User:Aidan9382|Aidan9382]] <sub>([[User talk:Aidan9382|talk]])</sub> 15:23, 22 January 2025 (UTC)
:::Fair enough, but my primary concern is that we are transforming a slightly slow but maintainable and readable module into one that requires specialized Lua knowledge to debug. By introducing a dependency on a highly complex and intricate module, we risk increasing the likelihood that errors related to <code>PrepareText</code> will be hard to debug for passing administrators and instead demand the expertise of someone really familiar with the inner working of the Wikitext parsing module. [[User:Sohom Datta|<b class="skin-invert" style="color:#795cb2; display: inline-block; transform: rotate(1deg)">Sohom</b>]] ([[User talk:Sohom Datta|<span class="skin-invert" style="color: #36c;">talk</span>]]) 16:58, 22 January 2025 (UTC)
::::That's fair. I've annotated it with a comment to at least explain what it does functionally so that any person reading it should be able to figure out why something might be (intentionally) not getting picked up. If you're worried about the parsing module itself bugging, it's already used in a couple commonly used modules with no bugs reported yet, so it shouldn't be the direct cause of any bugs itself, though I understand the concern. I'm fine with this being rejected if you think the simplicity is worth, since the performance hit isn't incredibly significant. [[User:Aidan9382|Aidan9382]] <sub>([[User talk:Aidan9382|talk]])</sub> 17:31, 22 January 2025 (UTC)
:::::I am intending to deploy the code, unless anyone objects. The current code is doing something which can be done better by an existing module. I'm not seeing a huge benefit in trying to keep this module simple &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 20:52, 28 January 2025 (UTC)
:{{done}}<!-- Template:EP --> &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 08:22, 4 February 2025 (UTC)
 
== Request update of Module:Disambiguation/templates (4 February 2025) ==
 
{{edit fully-protected|Module:Disambiguation/templates|answered=yes}}
Bot comment: StradBot has detected that [[Module:Disambiguation/templates]] needs to be updated. This is due to a template being added or removed from [[:Category:Disambiguation message boxes]], or to a redirect to one of those templates being added or removed. The bot has saved the new page content in [[Module:Disambiguation/templates/sandbox]] ([https://en.wikipedia.org/w/index.php?title=Special:ComparePages&page1=Module%3ADisambiguation%2Ftemplates&page2=Module%3ADisambiguation%2Ftemplates%2Fsandbox diff]). Please review this and update the module if necessary. [[User:StradBot|StradBot]] ([[User talk:StradBot|talk]]) 06:45, 4 February 2025 (UTC)
:{{done}}<!-- Template:EP --> this is just a reordering of the same list, but I have done it to keep the bot happy &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 08:21, 4 February 2025 (UTC)
 
== Request update of Module:Disambiguation/templates (1 March 2025) ==
 
{{edit fully-protected|Module:Disambiguation/templates|answered=yes}}
 
Bot comment: StradBot has detected that [[Module:Disambiguation/templates]] needs to be updated. This is due to a template being added or removed from [[:Category:Disambiguation message boxes]], or to a redirect to one of those templates being added or removed. The bot has saved the new page content in [[Module:Disambiguation/templates/sandbox]] ([https://en.wikipedia.org/w/index.php?title=Special:ComparePages&page1=Module%3ADisambiguation%2Ftemplates&page2=Module%3ADisambiguation%2Ftemplates%2Fsandbox diff]). Please review this and update the module if necessary. [[User:StradBot|StradBot]] ([[User talk:StradBot|talk]]) 06:45, 1 March 2025 (UTC)
: {{done}} [[User:Pppery|* Pppery *]] [[User talk:Pppery|<sub style="color:#800000">it has begun...</sub>]] 21:17, 5 March 2025 (UTC)
 
== Request update of Module:Disambiguation/templates (28 July 2025) ==
 
{{edit fully-protected|Module:Disambiguation/templates|answered=yes}}
 
Bot comment: StradBot has detected that [[Module:Disambiguation/templates]] needs to be updated. This is due to a template being added or removed from [[:Category:Disambiguation message boxes]], or to a redirect to one of those templates being added or removed. The bot has saved the new page content in [[Module:Disambiguation/templates/sandbox]] ([https://en.wikipedia.org/w/index.php?title=Special:ComparePages&page1=Module%3ADisambiguation%2Ftemplates&page2=Module%3ADisambiguation%2Ftemplates%2Fsandbox diff]). Please review this and update the module if necessary. [[User:StradBot|StradBot]] ([[User talk:StradBot|talk]]) 06:48, 28 July 2025 (UTC)
: {{done}} [[User:Pppery|* Pppery *]] [[User talk:Pppery|<sub style="color:#800000">it has begun...</sub>]] 14:49, 28 July 2025 (UTC)