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 343:
When I was creating [[Template:WikiProject Gilgit-Baltistan]], I found that the flag image is oversized, and I can't be able to resize it à la [[Template:WikiProject India]]. Please fix it. --[[User:Soumya-8974|Soumya-8974 (he)]] <sup>[[User talk:Soumya-8974|talk]]</sup> <sub>[[Special:Contributions/Soumya-8974|contribs]]</sub> <sup>[[Special:PrefixIndex/User:Soumya-8974|subpages]]</sup> 07:17, 25 November 2020 (UTC)
:Fixed it. You can use the {{para|IMAGE_LEFT_LARGE}} parameter to set the size of the image. — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 08:23, 25 November 2020 (UTC)
== Category parameter ==
Since 2009 we have normlised the category parameter like this:
<pre>|category = {{yesno|{{{category|¬}}}|¬=¬|blank=¬|yes=¬}}</pre>
This means that a blank category parameter does not suppress categories, so the syntax on banner templates can be simply <code><nowiki>|category = {{{category|}}}</nowiki></code> which is more user friendly. However I have recently found out that not all the hooks behave the same way, and it is necessary to use <code><nowiki>|category = {{{category|¬}}}</nowiki></code>. I don't like the inconsistency, and I really don't see why ¬ is needed in this case. (We often use it in the meta-template to detect whether a parameter has been passed or not, which is very useful, but that does not apply here.) Any thoughts? — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 14:52, 18 November 2020 (UTC)
:The way this parameter works is not obvious to me since starting Lua work. Also the use of yesno seems like overkill TBH. Also also ¬ is annoying to see. ;) --[[User:Izno|Izno]] ([[User talk:Izno|talk]]) 15:31, 18 November 2020 (UTC)
::Yesno probably is overkill, but it would be a bit weird if {{para|category|yes}} were to suppress categories. So the Lua work has begun? :) — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 16:47, 18 November 2020 (UTC)
:::[[Module:WikiProject]] and [[Template:WPBannerMeta/Lua]] and [[Template:WPBannerMeta/Lua/testcases]]. --[[User:Izno|Izno]] ([[User talk:Izno|talk]]) 22:05, 18 November 2020 (UTC)
::::Do we really have to go the Lua route? That will seriously screw up my ongoing project of ensuring that all WikiProject banners have documentation, and that every parameter is documented accurately. I am ''still'' finding unusual codings in banners, and switching over to Lua will bring a complete stop to my work. In the last month, I've already lost another major workflow, which has put me on something of a downer. --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] 🌹 ([[User talk:Redrose64|talk]]) 23:16, 18 November 2020 (UTC)
:::::Honestly this is a learning experience for me too as I work on this. I don't think conversion is going to go quick by any means as I have other stuff I'm working on simultaneously. So far I've honestly found the conversion process from wikitext to Lua simple. There's even a guide from 5 years ago about similar constructs that I've been using. You shouldn't have to trace, as below. Knowing whether a category is supposed to be output should be something that's easy to know, and right now it's horrific to know because of how decentralized category handling is (and there's really no other option in wikitext without painful duplication). I don't antipate your documenting of child modules needs to stop just because of the conversion, so you're safe on that front for the time being even should you decide that Lua is impossible for you. --[[User:Izno|Izno]] ([[User talk:Izno|talk]]) 03:09, 19 November 2020 (UTC)
::::I think [https://en.wikipedia.org/w/index.php?title=Module:WikiProject&diff=987887406&oldid=987879784 this] is my favourite edit summary so far ... — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 23:34, 18 November 2020 (UTC)
::::: I live to please. --[[User:Izno|Izno]] ([[User talk:Izno|talk]]) 03:09, 19 November 2020 (UTC)
::As for the purpose of {{para|category}} -
{{WPBannerDoc|category}}
::Just one example of what I have done, through careful examination of the template code, tracing it through the various subtemplates. I simply ''cannot'' do that with Lua modules. --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] 🌹 ([[User talk:Redrose64|talk]]) 23:16, 18 November 2020 (UTC)
:It might not be possible to simplify all the way - {{diff|Template:WPBannerMeta/importancescale/sandbox|prev|989588103|this edit}} may not work, because {{para|category|no}} will be treated the same as {{para|category|¬}}. --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] 🌹 ([[User talk:Redrose64|talk]]) 09:30, 20 November 2020 (UTC)
::The parameter is normalised in [[Template:WPBannerMeta]] before passing to any of the subtemplates. I propose to change this to use [[Template:Yesno-yes]] so that any non-negative input (including "yes" but also blank or "¬") results in a "yes" which will trigger the categories. Don't worry I will fully test everything first ... — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 10:33, 20 November 2020 (UTC)
::Initial tests working well. I need to check all the hooks next ... — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 22:54, 20 November 2020 (UTC)
::Testing is now complete and everything is working as expected. I may deploy shortly. It will require dozens of edits simultaneously, so there may be some unexpected categorisation for half an hour or so after I start. — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 16:02, 5 December 2020 (UTC)
::{{done}}. I really hope I copied everything over correctly, but there were so many subtemplates affected that it is always possible something slipped through. — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 22:43, 5 December 2020 (UTC)
|