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 2 discussion(s) from Template talk:WPBannerMeta) (bot
Line 907:
:Either works. I just did the latter and it does look better &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 12:13, 10 June 2023 (UTC)
::{{ty}} --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] &#x1f339; ([[User talk:Redrose64|talk]]) 16:00, 10 June 2023 (UTC)
 
== Module: Format ==
{{moved from|Module talk:WikiProject banner|2=<span class="nowrap">&#8212;'''[[User:CX Zoom|CX Zoom]]'''[he/him]</span> <sup class="nowrap">([[User talk:CX Zoom|let's talk]] • {[[Special:Contributions/CX Zoom|C]]•[[User:CX Zoom/X|X]]})</sup> 17:30, 22 June 2023 (UTC)}}
:''Moved from module code so it can be discussed more easily'' &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small>
Deprecate/swap "format" to "style" in live template since that seems to be the only use of this parameter from what I can see, maybe even just `background` [https://en.wikipedia.org/w/index.php?title=Special:Search&limit=50&offset=0&ns10=1&search=insource%3AFORMAT+insource%3A%2FFORMAT%5B%5EN%5D%2F+-intitle%3A%2F%28%5C%2Ftestcases%7C%5C%2Fsandbox%7C%5C%2Fdoc%29%2F] - only used by like 6 templates, do they really need it? BIO, Turtles, US Roads, MILHIST, Ships, Amphibians/Reptiles
-- this may need/want to be a public template, not local
:Probably not needed, but could I suggest that it would be best to match functionality as much as possible before making the transition to Lua. Then we can discuss whether things like this are needed or not. &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 22:14, 1 June 2023 (UTC)
::I think we can make the lesser change to the wikitext version today (restricting it down to style or even just background as is the use out there) and sort out whether it's all that valuable later as you suggest. [[User:Izno|Izno]] ([[User talk:Izno|talk]]) 23:13, 1 June 2023 (UTC)
:::I think format is a synonym for style in this case. Not sure what you are proposing exactly? Are any projects using it for anything other than background changes? &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 17:09, 4 June 2023 (UTC)
::::It is not a synonym, which is why it sticks out like a sore thumb to me. Format is currently implemented in the various templates as something along the lines of {{para|FORMAT|style{{=}}"background: X"}}. No, that's not a typo, somebody thought you should be able to add whatever attribute you want to the HTML element.
::::My observation was that it was being used only to change the background of the note image (which is the only cell it can change). [[User:Izno|Izno]] ([[User talk:Izno|talk]]) 17:14, 4 June 2023 (UTC)
:::::Okay I understand completely why you want to get rid of FORMAT! Can't see any use for it except for the style. &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 22:50, 8 June 2023 (UTC)
 
== Reimplementation in Lua in progess ==
 
At [[Module:WikiProject banner]]. Figured I should given people a heads up now rather than it coming as a surprise or ''fait accompli'' later. [[User:Pppery|* Pppery *]] [[User talk:Pppery|<sub style="color:#800000">it has begun...</sub>]] 20:31, 28 May 2023 (UTC)
 
:Hope to have this ready in the next couple of weeks. One main advantage will be support for an infinite number of task forces and notes, so hooks will no longer be required on most banners. &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 08:15, 12 June 2023 (UTC)
:Coding is more or less complete on [[Module:WikiProject banner]] and I would be grateful if anyone can help test it. It's in use on the following templates:
:* [[Template:WikiProject Football/sandbox]]
:* [[Template:WikiProject Norway/sandbox]]
:* [[Template:WikiProject Biography/sandbox]]
:* [[Template:WikiProject United States/sandbox]]
:* [[Template:WikiProject Afghanistan/sandbox]]
:* [[Template:WikiProject Portals/sandbox]]
:I'm still working on [[Module:WikiProject banner/templatepage]] so the display on the actual template may not be quite right yet. &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 13:37, 15 June 2023 (UTC)
:Module is now ready to deploy. &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 11:09, 22 June 2023 (UTC)
::# Appears QUALITY_CRITERIA isn't fully implemented; the wikitext 2010 editor's preview shows a warning on templates that use it like [[Template:MILHIST/sandbox]], though the category is still populated
::# There are also <s>nine</s> four templates showing up in [[:Category:WikiProject banners with formatting errors|the errors category]], not sure if the switchover is responsible.
::# [[Template:WikiProject Malta]]'s the Gozo articles are now in categories like [[:Category:Top-importance the Gozo task forcearticles]] instead of [[:Category:Top-importance the Gozo task force articles]], without apparent issues with the template code.
::# Some projects, like WikiProject Mathematics, use "priority" instead of importance, which affects categorisation and isn't currently supported; see e.g. [[Talk:3-sphere]] now populates [[:Category:High-importance mathematics articles]] instead of the correct one "High-priority..."
::[[User:DFlhb|DFlhb]] ([[User talk:DFlhb|talk]]) 15:12, 22 June 2023 (UTC) <ins><small>now only 4 showing up as errors 15:15, 22 June 2023 (UTC)</small></ins>
:::I'll check now. &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 15:14, 22 June 2023 (UTC)
:::#Fixed by [https://en.wikipedia.org/w/index.php?title=Module:WikiProject_banner/config&diff=prev&oldid=1161416269 adding] this parameter to the list of recognised parameters. It ''should'' be functioning properly.
:::#I think the previous template ignored templates in user space, so will look at doing that.
:::#[https://en.wikipedia.org/w/index.php?title=Module:WikiProject_banner/sandbox&diff=prev&oldid=1161415873 Added] the space
:::#[https://en.wikipedia.org/w/index.php?title=Module:WikiProject_banner/sandbox&diff=prev&oldid=1161415218 Fixed]
:::&mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 15:28, 22 June 2023 (UTC)
::::Great, I'll let you know if I find any more bugs. [[User:DFlhb|DFlhb]] ([[User talk:DFlhb|talk]]) 16:47, 22 June 2023 (UTC)
As a demonstration of the new capabilities I have simplified [[Template:WikiProject South America]] so the 17 task forces do not need any hooks &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 21:13, 22 June 2023 (UTC)