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

Content deleted Content added
m Archiving 1 discussion(s) from Template talk:WPBannerMeta) (bot
m Archiving 1 discussion(s) from Template talk:WPBannerMeta) (bot
Line 27:
:I put a test on [[Template:WPBannerMeta/testcases]]. The alignment is slightly different in the new version, but it is not an issue. &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 08:42, 20 May 2020 (UTC)
:[[File:Yes check.svg|20px|link=|alt=]] '''Done'''<!-- Template:EP --> no other comments so I have made the change. If the alignment change is worrying anyone we can revert/discuss &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 11:16, 22 May 2020 (UTC)
 
== Detecting conflicts in class values ==
 
Is there a way to identify conflicts between a page's assigned class value and what would otherwise be automatically detected? E.g., a redirect or a page in the Category namespace tagged as stub-class. --[[User:Paul 012|Paul_012]] ([[User talk:Paul 012|talk]]) 23:58, 9 March 2020 (UTC)
:Not currently, but it would be simple enough to code on a particular project's banner &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 21:47, 10 March 2020 (UTC)
::Thanks. It's not needed so much that I'd ask for an actual implementation; just something that I thought would be nice to have. --[[User:Paul 012|Paul_012]] ([[User talk:Paul 012|talk]]) 14:54, 12 March 2020 (UTC)
:::We've only used automatic detection of a page's class value if no class is defined. (If the class is defined then this will always be used.) I think this is the right approach in general, but any project can change this default behaviour by using a custom class mask. &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 23:03, 5 May 2020 (UTC)
::::{{ping|MSGJ}} There probably are a few other cases where it might be useful to do automatic detection. For example, if an article is in mainspace but is tagged as "Draft class", it certainly means that whoever moved it to mainspace forgot to remove that it was a draft, and it should be treated as if the class were left undefined. --[[User:Ahecht|Ahecht]] ([[User talk:Ahecht|<span style="color:#FFF;background:#04A;display:inline-block;padding:1px;vertical-align:-.3em;font:bold 50%/1 sans-serif;text-align:center">TALK<br />PAGE</span>]]) 21:30, 31 May 2020 (UTC)