Module talk:WikiProject banner/Archive 15: Difference between revisions

Content deleted Content added
m Archiving 1 discussion(s) from Module talk:WikiProject banner) (bot
m Archiving 1 discussion(s) from Module talk:WikiProject banner) (bot
 
Line 781:
:Okay, I guess this makes sense. Are there any bots updating PIQA ratings? &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 14:17, 15 December 2024 (UTC)
::I have no idea. [[User:Gonnym|Gonnym]] ([[User talk:Gonnym|talk]]) 14:28, 15 December 2024 (UTC)
 
== Punctuated WPs not recognizing duplication ==
 
{{tl|WP Anti-war}}, {{tl|WP New York (state)}}, {{tl|WP U.S. Roads}}, etc. don't show in {{cat|Pages using WikiProject banner shell with duplicate banner templates}} if duplicated. &nbsp;&nbsp;<b>~</b>&nbsp;<span style="font-family:Monotype Corsiva; font-size:16px;">[[User:Tom.Reding|Tom.Reding]] ([[User talk:Tom.Reding|talk]] ⋅[[WP:DGAF|dgaf]])</span>&nbsp; 11:28, 13 December 2024 (UTC)
 
:The current pattern for capturing is <code><nowiki>'<span class="wpb%-project">([%w%s]*)</span>'</nowiki></code> and %w does not include punctuation marks. Could be updated in [[Module:Banner shell/sandbox]] &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 11:52, 13 December 2024 (UTC)
::{{Done}} &nbsp;&nbsp;<b>~</b>&nbsp;<span style="font-family:Monotype Corsiva; font-size:16px;">[[User:Tom.Reding|Tom.Reding]] ([[User talk:Tom.Reding|talk]] ⋅[[WP:DGAF|dgaf]])</span>&nbsp; 12:14, 13 December 2024 (UTC)
:::Would it be simpler to use something like <code>[^<]*</code> (any characters except <)? &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 12:30, 13 December 2024 (UTC)
::::Indeed it would...though I'd use <code>[^<>]*</code> just to be slightly safer. &nbsp;&nbsp;<b>~</b>&nbsp;<span style="font-family:Monotype Corsiva; font-size:16px;">[[User:Tom.Reding|Tom.Reding]] ([[User talk:Tom.Reding|talk]] ⋅[[WP:DGAF|dgaf]])</span>&nbsp; 13:06, 13 December 2024 (UTC)
Why isn't the essays banner recognised as a duplicate on [[Wikipedia talk:Nationality of people from the United Kingdom]]? &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 13:03, 17 December 2024 (UTC)
:Is it a namespace issue? {{tl|WP Wikipedia essays}} registers as a dup if applied in mainspace. &nbsp;&nbsp;<b>~</b>&nbsp;<span style="font-family:Monotype Corsiva; font-size:16px;">[[User:Tom.Reding|Tom.Reding]] ([[User talk:Tom.Reding|talk]] ⋅[[WP:DGAF|dgaf]])</span>&nbsp; 13:59, 17 December 2024 (UTC)
::Possibly, but I'm not immediately seeing any code that would exclude other talk namespaces &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 14:15, 17 December 2024 (UTC)
:::Am I missing something? I don't see two of that banners there. [[User:Gonnym|Gonnym]] ([[User talk:Gonnym|talk]]) 14:37, 17 December 2024 (UTC)
::::I'm being an idiot. I meant to ask why it is not identifying it as being outside the banner shell &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 14:45, 17 December 2024 (UTC)
:::::It's because it's using the redirect name. You'll need to check the code to see how you are tracking this. [[User:Gonnym|Gonnym]] ([[User talk:Gonnym|talk]]) 14:55, 17 December 2024 (UTC)
:::::Yeah, redirects aren't recognized, only canonical names. &nbsp;&nbsp;<b>~</b>&nbsp;<span style="font-family:Monotype Corsiva; font-size:16px;">[[User:Tom.Reding|Tom.Reding]] ([[User talk:Tom.Reding|talk]] ⋅[[WP:DGAF|dgaf]])</span>&nbsp; 14:56, 17 December 2024 (UTC)