Template talk:ImageNote

Latest comment: 4 months ago by Xaosflux in topic Protection

Protection edit

Hi @Jo-Jo Eumerus:, I missed your discussion at User_talk:Jo-Jo_Eumerus/Archive_79#Unprotection_request; according to Special:GadgetUsage this would be in use with 25,000+ places, not 8 - due to the gadget loading. @HouseBlaster: is there any special ongoing tasks requiring frequent changes to this page that led you to start this unprotection request? If not we should just update the protection reason to reference the uncounted load in via the interace though MediaWiki:Gadget-ImageAnnotator.js. — xaosflux Talk 00:43, 29 December 2023 (UTC)Reply

Unless this gadget transcludes the template into its code (and perusing the code, I do not think it does, but feel free to correct me if I'm wrong), I do not think that gadget installs should be added to the count. For example, Twinkle has 40,000 users and is deeply interconnected with hundreds of maintenance templates and other templates, but I do not think those templates receive extra protection. –Novem Linguae (talk) 01:37, 29 December 2023 (UTC)Reply
Have to review that one a bit, not sure exactly what the gadget is doing with this yet. — xaosflux Talk 02:05, 29 December 2023 (UTC)Reply
I don't think that the number of uses shown on GadgetUsage is necessarily an useful metric, anyway - there will be a lot of misclicked checkboxes and inactive or blocked users among that 25000 thousand, which would explain why there are only 8 transclusions. Jo-Jo Eumerus (talk) 07:27, 29 December 2023 (UTC)Reply
The only reason I asked for unprotection was because TPE seemed excessive for eight transclusions. If I am understanding the code correctly, the gadget needs the template to work and vice versa.
On the one hand, no matter what someone does to the local copy, the Commons template will still function. In other words, the worst-case scenario is the gadget stops working for the eight local transclusions. On the other hand, I am guessing that most "improvements" would break the gadget unless MediaWiki:Gadget-ImageAnnotator.js were updated at the same time. Thus, maybe full protection is warranted? I would lean towards leaving it unprotected, because it can easily be protected later if the need arises. (If the template is to be protected, I would argue it should be fully protected given the protection rationale.) HouseBlastertalk 04:36, 29 December 2023 (UTC)Reply

I installed the gadget edit

I installed the gadget and explored it a bit so I could talk about this a bit more knowledgably. Unless I am missing something, this gadget seems kind of glitchy.

I missed this above, but it does look like MediaWiki:Gadget-ImageAnnotator.js is trancluding this template directly into its code somewhere, at least according to Special:WhatLinksHere. I wonder if this is a bug arising from forgetting to enclose the code in nowiki tags. I experimented just now on testwiki with transcluding the template Novem into my common.js file, and giving the template Novem the wikitext console.log('Test');, and it did not execute the transcluded code, so that's good. Therefore, I'm not sure if template transclusions work as an attack vector.

Anyway, with all that said, I guess I am wondering why this gadget had so many installs on enwiki if practically no files are using it? Does it have other features besides this ImageNote template? –Novem Linguae (talk) 10:18, 29 December 2023 (UTC)Reply

@Novem Linguae some people just turn on lots of gadgets, with no clue of what they do. — xaosflux Talk 11:18, 29 December 2023 (UTC)Reply