Template talk:Db-meta

(Redirected from Template talk:Db-empty)
Latest comment: 3 days ago by Zackmann08 in topic Update to Template:Db-xfd

Update db-gs for South Asia EC-restricted topics

edit

While Wikipedia:Contentious topics/South Asia isn't EC-restricted as a whole, two subtopics (Indian military history, and social groups including castes) are, and they should be added to {{db-gs}} (which currently doesn't recognize them as valid codes). Chaotic Enby (talk · contribs) 14:42, 30 July 2025 (UTC)Reply

Done by HouseBlaster. * Pppery * it has begun... 00:48, 31 July 2025 (UTC)Reply
Small detail, Wikipedia:Contentious topics/South Asia still uses "GSCASTE" as the code for South Asian social groups, would it be useful to have it work as an alternate code? That would mostly be for people adding the templates manually, as the Twinkle update will use the "SASG" code. Chaotic Enby (talk · contribs) 13:09, 10 August 2025 (UTC)Reply

Edit request 13 August 2025

edit

On the {{Db-g4}} and {{Db-xfd}} templates (only these two have this problem), the discussion link should include the "a". So instead of the link just being "a deletion discussion", it should be changed to "a deletion discussion". This is already the stardard for templates linking to a discussion.

This helps the reader understand they're not just being sent to some article about deletion discussions, but the specific discussion for the article in question. FaviFake (talk) 22:16, 13 August 2025 (UTC)Reply

  Not done: The link is to Wikipedia:Deletion discussions which makes sense to link as "deletion discussion" without the a. Primefac (talk) 22:46, 13 August 2025 (UTC)Reply
Oh, I was confused then. Thank you. Maybe there's a better way to make it clear, but I have no ideas in mind. FaviFake (talk) 23:30, 13 August 2025 (UTC)Reply

Modify Db-meta template to hide "Contest this speedy deletion" button to non-extended-confirmed users on pages with ARBECR restriction.

edit

Per Wikipedia:Village pump (technical)#User Intarface encourages actions that are against rules and can have unintended consquences for new users, the {{Db-meta}} template will sometimes encourage non-extended-confirmed users to start topics on talk pages where they technically able to but are prohibited from doing so by a WP:ARBECR restriction. I have modified the sandbox version at Special:Diff/1304550237/1313339641 to check the talk page for the Wikipedia pages subject to the extended confirmed restriction category and, if it is present, hide the "Contest this speedy deletion" button and related instructions from non-extended-confirmed users. Any objections to including it in the main template? --Ahecht (TALK
PAGE
)
19:03, 28 September 2025 (UTC)Reply

ARBECR allows non-EC editors to make edit requests. Contesting a speedy deletion is essentially an edit request to remove the deletion tag. I do not see why this would need changing. Primefac (talk) 00:56, 6 October 2025 (UTC)Reply
@Primefac Interesting, and I suppose it makes sense since you are essentially requesting an edit to remove the speedy-delete tag, but that wasn't how people interpreted it at VPT. Are you saying this on behalf of ArbCom? If so, should this be clarified somewhere in the templates or documentation? --Ahecht (TALK
PAGE
)
13:27, 7 October 2025 (UTC)Reply
I do not necessarily know if ArbCom is aware of this thread or the VPT, I am just replying based on the language and meaning behind the restriction (i.e. I am not wearing any hats). Primefac (talk) 22:07, 8 October 2025 (UTC)Reply
I believe I commented earlier about this, but Primefac raised an angle I didn't consider and they flagged it for the clerks. I don't have an Official Position (and this is certainly not a "For ArbCom, HB" message). I'm of two minds for this request. One is that it is not exactly an edit request and the spirit of WP:BMB applies, and do we really think that a non-XC contester is going to be successful? But maybe we take this idea and run with it, and say that all non-XC editors should only use the contest button (currently non-XC editors other than the initial creator are instructed to remove the tag). HouseBlaster (talk • he/they) 01:25, 9 October 2025 (UTC)Reply
@HouseBlaster and Primefac: Thanks, I submitted a clarification request at Wikipedia:Arbitration/Requests/Clarification and Amendment#Clarification request: Extended confirmed restriction. --Ahecht (TALK
PAGE
)
15:33, 9 October 2025 (UTC)Reply

Template-protected edit request on 15 October 2025

edit

Please implement my changes in the sandbox, which adds a convenience link to the appropriate page to log the deletion after it is carried out. Aasim (話すはなす) 19:11, 15 October 2025 (UTC)Reply

Can you please demonstrate the difference on the testcases page, or on a sandbox page if substing is required? Here's the live/sandbox diff for other template editors. – Jonesey95 (talk) 20:23, 15 October 2025 (UTC)Reply
I just created Template:Db-gs/testcases. The changes are invisible by default (as the parameter generates text with the CSS class sysop-show), but it can still be checked by locally editing the CSS to remove display: none;. Also noting that page sanctions for PIA are logged on a separate page. Chaotic Enby (talk · contribs) 10:42, 18 October 2025 (UTC)Reply
  Done Chaotic Enby (talk · contribs) 10:49, 18 October 2025 (UTC)Reply
@Awesome Aasim, was there a specific reason to make the logging link not work (with the <noinclude> tags) if no code was provided? I presume it makes sense (as there isn't a default page where they can be logged – AE doesn't work for community GS), but the visibly broken link is something that could be fixed if you want to keep working on this template. Chaotic Enby (talk · contribs) 10:54, 18 October 2025 (UTC)Reply
You're right - there isn't. That is kind of the problem.
I was thinking maybe the link should be to WP:AELOG but not all of these G5 deletions fall under arbitration restrictions (some are under community restrictions). I do wish there was a central contentious topic log (that would solve this issue) but there isn't. Aasim (話すはなす) 17:51, 18 October 2025 (UTC)Reply
For now, I've made it so that the link doesn't display at all when no code is given, as the broken [[|here]] link could be confusing otherwise. Chaotic Enby (talk · contribs) 17:52, 18 October 2025 (UTC)Reply

Template-protected edit request on 18 October 2025

edit

Please incorporate this change (also stated below) from the sandbox, which will only add a period to the {{{1}}} or {{{2}}} parameter if it isn't terminated (e.g., ends with a period, question mark, exclamation mark). Adding punctuation unconditionally to user-provided strings is silly, and just leads to people ending CSD reason parameters with ".." because they didn't memorize which templates add punctuation in which cases.

(Also yes technically this will make the period for {{{2}}} italic when it wasn't before, but I think we'll survive.)

Perryprog (talk) 19:51, 18 October 2025 (UTC)Reply

@Perryprog, this sounds like a great change on principle, and I don't see any downsides to it. Most templates derived from db-meta don't have free-form text parameters, but some like {{db-g15}} do have them, and it will be useful in these cases. I'll test this on Template:db-g15/testcases to see if it gives us expected behavior, as the main template output at Template:db-meta/testcases appears unchanged. Chaotic Enby (talk · contribs) 20:58, 18 October 2025 (UTC)Reply
  Done Chaotic Enby (talk · contribs) 21:05, 18 October 2025 (UTC)Reply
Cheers! And yeah, G15 was precisely the one I got affected by. I remember a while ago UAA reports (presumably via Twinkle) had the same issue which drove me nuts, so when I noticed it here I wanted to make sure that no one else would fall into the same trap. Perryprog (talk) 21:42, 18 October 2025 (UTC)Reply

Zak Smith

edit

Add Zak Smith with code zs, per WP:CT/ZS. –LaundryPizza03 (d) 05:48, 6 December 2025 (UTC)Reply

@LaundryPizza03: I'm not sure what this involves, therefore,   Not done: please make your requested changes to the template's sandbox first; see WP:TESTCASES. --Redrose64 🌹 (talk) 10:10, 7 December 2025 (UTC)Reply
@Redrose64: What don't you understand? This is to add a code for a general sanction not in the current template. –LaundryPizza03 (d) 10:44, 7 December 2025 (UTC)Reply

I've deployed a code for the Zak Smith DS, zs, to the sandbox. –LaundryPizza03 (d) 12:23, 7 December 2025 (UTC)Reply

What I didn't understand was exactly what to add and where to add it. The sandbox edit assists greatly, so   Done. --Redrose64 🌹 (talk) 13:11, 7 December 2025 (UTC)Reply

db-t5

edit

Using db-t5 on a module page throws an error This template should be transcluded in the Template namespace(s) only. The namespace detection in the code should also include module pages. Gonnym (talk) 12:45, 9 December 2025 (UTC)Reply

There does seem to be an error of this nature as T5 applies to both templates and modules. I don't know how to fix it myself, so I can't put it in an X to Y format for an edit request. Thryduulf (talk) 04:21, 11 December 2025 (UTC)Reply
I too have tried to fix this and am a loss for how/where it is being produced. @Jonesey95, Primefac, and Redrose64: can any of you help here? Zackmann (Talk to me/What I been doing) 04:26, 11 December 2025 (UTC)Reply
Wait, I think this might actually be an issue with {{db-t5}} itself... the call to {{Single namespace}} seems to be the root cause. Zackmann (Talk to me/What I been doing) 04:39, 11 December 2025 (UTC)Reply
And it appears HouseBlaster had the same idea. I think they just fixed it! Zackmann (Talk to me/What I been doing) 04:40, 11 December 2025 (UTC)Reply
Nice job by HouseBlaster. I looked at the code and tried to figure out what combination of #if trickery would fix it, but I didn't come up with anything clever. Gonnym, let us know if it doesn't work. Module space can be a little squirrely with its handling of non-Lua text. – Jonesey95 (talk) 06:17, 11 December 2025 (UTC)Reply

Adding error messages to some templates

edit

I am here to further discuss adding error messages to templates that don't already have them. See Wikipedia talk:Speedy deletion#Issue regarding the A-series criteria. - BᴏᴅʜıHᴀᴙᴩ (talk, contributions) 22:13, 14 December 2025 (UTC)Reply

Update to Template:Db-xfd

edit

After getting tired of having to manually trim URLs when using this template via TWINKLE, I have updated the code so that now the FULL url can be supplied (I.E. copying and pasting from the address bar). Based on my testing it should still work for the old school way but if anyone sees any weird behavior with this, feel free to let me know or revert if it is causing problems. Zackmann (Talk to me/What I been doing) 20:55, 16 December 2025 (UTC)Reply