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

Content deleted Content added
m Archiving 1 discussion(s) from Module talk:WikiProject banner) (bot
m Archiving 2 discussion(s) from Module talk:WikiProject banner) (bot
Line 360:
 
Propose renaming B_MAIN_CAT to B_INCOMPLETE_CAT as a more accurate description of its actual purpose (a category for B-class checklist which are incomplete) &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 14:55, 11 September 2023 (UTC)
 
== Additional taskforce categories ==
Several of the large projects use extra categories inside taskforces, which they hook using TF_n_HOOK parameters with [[Template:WPBannerMeta/hooks/cats]]. I'm wondering if we could add better support for this, e.g. {{para|tf 1 cat 1}} and {{para|TF_1_CAT_1}} &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 08:09, 13 September 2023 (UTC)
 
:This is now coded in the [[Module:WikiProject banner/sandbox|sandbox]] &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 09:03, 14 September 2023 (UTC)
:{{done}} - deployed and documented &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 11:52, 15 September 2023 (UTC)
 
=== Needs-infobox by task force ===
Greetings. Most pages in [[:Category:Physics articles needing infoboxes]] are also members of [[:Category:Physics biographies articles]]. Would it be possible to create the intersection, [[:Category:Physics biographies needing infoboxes]], please? Notice bio is a task force of WP Phys ([[Template:WikiProject_Physics#Usage]]). Thanks! [[User:Fgnievinski|fgnievinski]] ([[User talk:Fgnievinski|talk]]) 04:09, 15 September 2023 (UTC)
:This very timely request can now be implemented using the new "additional taskforce category" feature. It is so new that I haven't even documented it yet &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 07:43, 15 September 2023 (UTC)
::Very nice! Could you give me some pointers so that I can try to implement it in WP Phys, please? [[User:Fgnievinski|fgnievinski]] ([[User talk:Fgnievinski|talk]]) 01:26, 17 September 2023 (UTC)
:::Already done [https://en.wikipedia.org/w/index.php?title=Template:WikiProject_Physics&diff=prev&oldid=1175470194 here]. You just need to create the category &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 19:29, 17 September 2023 (UTC)
::::Created: [[:Category:Physics biographies needing infoboxes]] -- thanks! Would it be possible to diffuse [[:Category:Physics articles needing infoboxes]], please? I'd like to isolate the non-biography articles needing infoboxes, especially [[physical quantities]] and [[physical units]] needing infobox. [[User:Fgnievinski|fgnievinski]] ([[User talk:Fgnievinski|talk]]) 04:02, 19 September 2023 (UTC)
:::::You can create categories based on the task forces that you have defined in your template. For example, for relativity articles needing an infobox you could add the code {{para|tf 1 cat 1|<nowiki>{{{needs-infobox|}}}</nowiki>}} and {{para|TF_1_CAT_1|Name of the category}} &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 07:55, 19 September 2023 (UTC)
 
== Collapsed taskforces ==
Some projects have their taskforces in a separate collapsible section. Currently this is not possible without using an complicated method with [[Template:WPBannerMeta/hooks/collapsed]] and [[Template:WPBannerMeta/hooks/taskforces]]. I am proposing parameters {{para|TF_COLLAPSE}} and {{para|TF_HEADER}} that would do this instead. &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 08:12, 13 September 2023 (UTC)
:Suggested implementation. If either {{para|TF_COLLAPSE}} or {{para|TF_HEADER}} is defined then taskforces will be put in a collapsible section. In that case,
:* if {{para|TF_COLLAPSE}} is not specified then it will default to zero, i.e. section will always collapse
:* if {{para|TF_HEADER}} is not defined then it will default to "Associated task forces"
:Any input welcome &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 21:31, 17 September 2023 (UTC)
:This now coded on the sandbox and there is a demo on [[Template:WikiProject France/sandbox]] &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 09:30, 18 September 2023 (UTC)
::That page, and a few others that use the /sandbox module, are currently showing Linter errors, specifically misnested table and tr elements. [[Special:ExpandTemplates]] should be able to show you the expanded code. Ping me if you need help with diagnosis. – [[User:Jonesey95|Jonesey95]] ([[User talk:Jonesey95|talk]]) 12:59, 18 September 2023 (UTC)
:::Thanks for the note. Seems to be fixed now &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 13:43, 18 September 2023 (UTC)
::::Yes, all cleaned up. Thanks. – [[User:Jonesey95|Jonesey95]] ([[User talk:Jonesey95|talk]]) 14:34, 18 September 2023 (UTC)
I propose two default thresholds for collapsing:
* 0 if {{para|TF_HEADER}} is defined (i.e. we assume that task forces should always collapse if the header is defined)
* 5 if {{para|TF_HEADER}} is not defined (i.e. any banner with 5 or more task forces will collapse by default, to take up less space on the page)
The default can be changed with the {{para|TF_COLLAPSE}} parameter &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 07:58, 19 September 2023 (UTC)