Content deleted Content added
m Archiving 1 discussion(s) from Template talk:WPBannerMeta) (bot |
IronGargoyle (talk | contribs) m Reverted edits by 78.172.216.105 (talk): page blanking (HG) (3.4.10) |
||
(48 intermediate revisions by 9 users not shown) | |||
Line 1:
{{Old RfD|date=22 December 2022 |result='''Delete''' |page=2022 December 22#Template:WPBannerMeta/Archive 13}}
{{Aan}}
Line 11 ⟶ 12:
:{{ping|Evolution and evolvability}} just wondering if my answer made any sense? — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 08:10, 5 May 2020 (UTC)
::{{re|MSGJ}}. Woops, I meant to use {{para|TF_n_IMP}} rather than {{para|TF_n_QUALITY}} as the example. Because currently, if {{para|TF_n}} isn't filled in, the template will ignore {{para|TF_n_IMP}}. The template I'm working on is {{tlx|WikiProject_Molecular_Biology}}.
::Example: <code><nowiki>{{WikiProject Molecular Biology
{{WikiProject Molecular Biology|category=no
::but should really return:
{{WikiProject Molecular Biology|category=no
::So the query is more about whether we can automatically assume {{para|TF_n}} is yes if any of the {{para|TF_n_XYZ}} parameters are filled. [[User:Evolution and evolvability|T.Shafee(Evo<small>&</small>Evo)]]<sup>[[User talk:Evolution and evolvability|talk]]</sup> 12:26, 5 May 2020 (UTC)
:::Ah, I understand your point now. Typically the only taskforce parameter that is set at the article level is the importance. So you are saying that if {{para|biophysics-imp}} is set to any value, then we should assume that {{para|biophysics|yes}}? That would be fairly simple to implement. Are there any possible side effects of doing this? What if {{para|biophysics-imp|cheesecake}}, i.e. an unrecognised value - should that trigger the taskforce as well? — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 13:38, 5 May 2020 (UTC)
Line 45 ⟶ 46:
The following is extremely jarring when encountered
{{WikiProject banner shell|1=
{{WikiProject Skepticism|class=NA|category=no}}
{{WikiProject Homeopathy
{{WikiProject Alternative medicine
{{WikiProject Alternative Views
}}
The inactive project should be center-aligned just like the active ones. And the '''([[Wikipedia:WikiProject_Council/Guide#Dealing_with_inactive_WikiProjects|Inactive]])''' links should be at the same place as the '''(Raged X-class)'''.  <span style="font-variant:small-caps; whitespace:nowrap;">[[User:Headbomb|Headbomb]] {[[User talk:Headbomb|t]] · [[Special:Contributions/Headbomb|c]] · [[WP:PHYS|p]] · [[WP:WBOOKS|b]]}</span> 16:06, 1 October 2020 (UTC)
Line 67 ⟶ 66:
::{{Re|MSGJ}}, the code you moved from the core to the main template needs to stay in core as the class and importance param values are normalised before being passed to the core template. See example below. -- [[User:WOSlinker|WOSlinker]] ([[User talk:WOSlinker|talk]]) 20:04, 1 October 2020 (UTC)
{{WikiProject banner shell|category=no|1=
{{WikiProject British Museum|class=xxx|importance=zzz|category=no}}
{{WikiProject British Museum/sandbox|class=xxx|importance=zzz|category=no}}
Line 86 ⟶ 85:
===Couple more===
There is one that still stands out, [[Template:MILHIST]]
{{WikiProject Military history|class=NA|category=no}}
{{WikiProject Military history/sandbox|class=NA|category=no}}
Line 95 ⟶ 90:
{{WikiProject Physics|class=NA|category=no}}
{{WikiProject U.S. Roads|class=NA|category=no}}
{{
{{WikiProject Citizendium Porting|category=no}}
}}
 <span style="font-variant:small-caps; whitespace:nowrap;">[[User:Headbomb|Headbomb]] {[[User talk:Headbomb|t]] · [[Special:Contributions/Headbomb|c]] · [[WP:PHYS|p]] · [[WP:WBOOKS|b]]}</span> 14:35, 4 October 2020 (UTC)
Line 139 ⟶ 133:
When the image is narrower than the class rating, and notes are used, the columns do not align nicely.
{{WikiProject Portals|category=no|importance=low
On my browser the indentation for the final row is much less than for the other rows in the table. Is there a good way to fix this? — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 14:25, 26 October 2020 (UTC)
: It's because the /Note template, or one of its immediate parent templates, creates its own sub-table in a cell which is 3 cells wide. That means it does not inherit the same widths as the cells in the rest of the table. --[[User:Izno|Izno]] ([[User talk:Izno|talk]]) 15:35, 26 October 2020 (UTC)
:The pertinent code is
<pre><tr><td colspan="3" style="padding:0;">{{#ifexpr:{{#switch:{
{{#ifeq:{{{attention}}}|yes|1|0}}+
{{#ifeq:{{{infobox}}}|yes|1|0}}+
Line 166 ⟶ 160:
::::I may have a play in the sandbox then — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 08:47, 27 October 2020 (UTC)
Testing sandbox code below. Uncollapsed version does not start a new table, so columns line up. — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 22:23, 27 October 2020 (UTC)
{{WikiProject Portals/sandbox|category=no|importance=low
{{ping|Izno}} would you double-check my code please ([https://en.wikipedia.org/w/index.php?title=Template:WPBannerMeta/core/sandbox&diff=prev&oldid=985778587 diff])? — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 13:31, 28 October 2020 (UTC)
:{{ping|MSGJ}} Yes, looks fine. (Rough, but such is the nature of wikitext.) --[[User:Izno|Izno]] ([[User talk:Izno|talk]]) 14:09, 28 October 2020 (UTC)
Line 332 ⟶ 325:
WikiProject Japan (well actually just Nihonjoe at the moment) are exploring putting some additional information in the collapsed banner, e.g. when a photo has been requested:
{{
I think it would be neater to have that icon after the quality/importance ratings. Would it cause any problems to just move the hook to be after the bracketed portion, because I don't think there is any banner using both of these simultaneously yet? — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 14:45, 18 November 2020 (UTC)
:See also [[User:Headbomb/Sandbox/Banner#If_there_are_issues]] (3rd mockup, If there are issues), from a 2017 mockup. As well as 'Projects expanded' from mockup 2.  <span style="font-variant:small-caps; whitespace:nowrap;">[[User:Headbomb|Headbomb]] {[[User talk:Headbomb|t]] · [[Special:Contributions/Headbomb|c]] · [[WP:PHYS|p]] · [[WP:WBOOKS|b]]}</span> 02:48, 19 November 2020 (UTC)
Line 405 ⟶ 398:
== Argh ==
One of my long term projects has been to turn {{tl|WikiProject Politics}} into '''[[Special:Permalink/995474531|this]]''' while preserving all the pre-existing categories. {{re|MSGJ}} Can you please help me and fix my spaghetti code? &
:If I knew what you were trying to achieve then I might be able to help! — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 09:11, 21 December 2020 (UTC)
:{{ping|MJL}} what is your intention in creating [[Template:WPBannerMeta/notes/category]]? — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 06:38, 3 January 2021 (UTC)
Line 429 ⟶ 422:
#:<code><nowiki>|PROJECT_STATUS = {{{PROJECT_STATUS|{{#if:{{{status|}}}|{{{status}}}|inactive}}}}}</nowiki></code>
This has been tested at [[Template:Inactive WikiProject banner/testcases]]. The change adds a new class to the banner which would allow users to hide inactive WikiProject at their own discretion. &
:{{done}}, but I've added a class also for the actives also. --[[User:Izno|Izno]] ([[User talk:Izno|talk]]) 04:33, 9 February 2021 (UTC)
Line 437 ⟶ 430:
{{edit fully-protected|Template:WPBannerMeta/core|answered=yes}}
Remove the line <code><nowiki><td class="mbox-empty-cell"></td></nowiki></code> from [[Template:WPBannerMeta/core]] to resolve an issue with the border when the template is inside {{tl|WikiProject banner shell}}. It was orginally added by [[User:Happy-melon]] in revision [[Special:Permalink/301387726|301387726]] ([[Special:Diff/301387726/prev|diff]]) so the header and the body would have the same number of table cells since the header also had a <code>mbox-empty-cell</code> table cell that was used to contain the metadata. But now that the metadata was moved and the <code>mbox-empty-cell</code> in the header was removed by [[User:WOSlinker]] in revision [[Special:Permalink/982121201|982121201]] ([[Special:Diff/982121201/prev|diff]]), there is one extra table cell in the text row, causing the border issue. To fix this, the <code>mbox-empty-cell</code> should in the text row should also be removed. Here's the effect of the change (notice the border in the top right):
<!--<div class="wpbs-inner">
{{Center|Current}}
{{WPBannerMeta/core|PROJECT_NAME=CURRENT}}
{{Center|Proposed}}
{{WPBannerMeta/core/sandbox|PROJECT_NAME=SANDBOX}}
</div>--><span class="nowrap">– [[User:BrandonXLF|<span style="color:blue;">Brandon</span><span style="color:green;">XLF</span>]] ([[User talk:BrandonXLF|talk]])</span> 05:15, 31 March 2021 (UTC)
:{{done}} -- [[User:WOSlinker|WOSlinker]] ([[User talk:WOSlinker|talk]]) 07:46, 31 March 2021 (UTC)
Line 456 ⟶ 449:
:{{ping|Happy-melon}} - any comments on this before we remove it? — [[User:Xaosflux|<span style="color:#FF9933; font-weight:bold; font-family:monotype;">xaosflux</span>]] <sup>[[User talk:Xaosflux|<span style="color:#009933;">Talk</span>]]</sup> 02:27, 15 April 2021 (UTC)
::{{done}} I've removed this now as there have been no objections. -- [[User:WOSlinker|WOSlinker]] ([[User talk:WOSlinker|talk]]) 13:13, 20 April 2021 (UTC)
== Question about duplication of banners when using a banner wrapper template to redirect ==
We're trying to merge [[:Template:WPUS50]] into [[:Template:WikiProject United States]]. The problem is with moving the transcluded pages from the WPUS50 template to WPUSA. If we change Template:WPUS50 to a banner wrapper template, using code like in [[:Template:WikiProject Iowa]], this will change the banners to the WPUSA, but it oftens leaves two WPUSA banners on the talk pages. Is there any way to prevent this from happening, or to combine the two WP banners on the talk pages? Thanks, --[[User:Funandtrvl|Funandtrvl]] ([[User talk:Funandtrvl|talk]]) 18:14, 27 April 2021 (UTC)
:Never mind, a bot would need to do the work. --[[User:Funandtrvl|Funandtrvl]] ([[User talk:Funandtrvl|talk]]) 23:29, 27 April 2021 (UTC)
== Cosmetic problem in a narrow browser window ==
''Edit: problem now solved, no further action required.''
There is a cosmetic problem when a WP banner appears within a narrow browser window. I reproduce an example banner from this template's documentation to help discuss this.
{{#invoke:WikiProject banner|main
|PROJECT = Tulips
|BANNER_NAME = Template:WikiProject Tulips
|category=no
|IMAGE_LEFT = Tulipa suaveolens floriade to Canberra.jpg
|QUALITY_SCALE = extended
|ASSESSMENT_LINK = Wikipedia:WikiProject Tulips/Article grading
|class=Template
}}
<------- minimum width for correct behaviour ------------->
This is intended to display in two columns, a narrow left column with graphics, and a wide right column with lots of text. This works correctly if the banner is wider than the "mininum" I've marked. However if the browser window is too narrow, the first row collapses to a single column (containing both graphics and text) but the other rows continue as two columns, resulting in a wide left column and a narrow right column, the opposite of what was intended. Can this be fixed? --<span style="box-shadow:2px 2px 6px #999">[[User:Dr Greg|<b style="color:#FFF8C0;background:#494"> Dr Greg </b>]][[User talk:Dr Greg|<span style="color:#494;background:#FFF8C0"> <small>talk</small> </span>]]</span> 21:05, 5 June 2021 (UTC)
:I find that I can get it down to
<----------- this width ----------->
:before a problem occurs. Beyond that point, the two columns remain, but the image vanishes. Maybe it's a browser thing - I use firefox. --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] 🌹 ([[User talk:Redrose64|talk]]) 21:23, 5 June 2021 (UTC)
::I'm on Firefox too, on a Windows 10 laptop, with text at 100%. Can't get the image to disappear.
::I've just tried MS Edge, and Internet Explorer, and neither my problem nor yours occurs with either of them. --<span style="box-shadow:2px 2px 6px #999">[[User:Dr Greg|<b style="color:#FFF8C0;background:#494"> Dr Greg </b>]][[User talk:Dr Greg|<span style="color:#494;background:#FFF8C0"> <small>talk</small> </span>]]</span> 21:45, 5 June 2021 (UTC)
:::'''Problem solved:''' I'm using a gadget "Improved appearance for mobile, narrow and wide screens" [[User:TheDJ/responsiveContent]], and when I disable that, the problem goes away. So there's no problem with this template that needs solving. But I'll leave this conversation here for the record. --<span style="box-shadow:2px 2px 6px #999">[[User:Dr Greg|<b style="color:#FFF8C0;background:#494"> Dr Greg </b>]][[User talk:Dr Greg|<span style="color:#494;background:#FFF8C0"> <small>talk</small> </span>]]</span> 22:08, 5 June 2021 (UTC)
== [[MOS:EGG]] tweak ==
I propose that, when linking to project discussion pages, we link over "the discussion" rather than the current "discussion". This would solve the small [[WP:EGG]] issue by making it more clear that we're linking to a specific discussion (that of the project) rather than a page about discussions in general. Does this sound good? <span style="color:#AAA"><small>{{u|</small><span style="border-radius:9em;padding:0 5px;background:#088">[[User:Sdkb|<span style="color:#FFF">'''Sdkb'''</span>]]</span><small>}}</small></span> <sup>[[User talk:Sdkb|'''talk''']]</sup> 22:01, 2 July 2021 (UTC)
:(As an aside, I'll note that I still ultimately think we [[wikipedia:Village_pump_(idea_lab)/Archive_34#Thinking_about_a_radical_reduction_of_talk_page_banners|should move away]] from having this sort of language repeated a bunch of times on every talk page for every project.) <span style="color:#AAA"><small>{{u|</small><span style="border-radius:9em;padding:0 5px;background:#088">[[User:Sdkb|<span style="color:#FFF">'''Sdkb'''</span>]]</span><small>}}</small></span> <sup>[[User talk:Sdkb|'''talk''']]</sup> 22:02, 2 July 2021 (UTC)
=== Protected edit request on 6 July 2021 ===
{{edit fully-protected|Template:WPBannerMeta/core|answered=yes}}
Proceeding from the above, please adopt [https://en.wikipedia.org/w/index.php?title=Template:WPBannerMeta/core/sandbox&diff=1032349091&oldid=1017917914&diffmode=source this edit] from the sandbox. Thanks! <span style="color:#AAA"><small>{{u|</small><span style="border-radius:9em;padding:0 5px;background:#088">[[User:Sdkb|<span style="color:#FFF">'''Sdkb'''</span>]]</span><small>}}</small></span> <sup>[[User talk:Sdkb|'''talk''']]</sup> 22:06, 6 July 2021 (UTC)
:{{done}}<!-- Template:EP --> if you have any other suggestions to improve/overhaul these templates I'm all ears — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 07:12, 7 July 2021 (UTC)
== Protected edit request on 29 July 2021 ==
{{edit fully-protected|Template:WPBannerMeta/core|answered=yes}}
Please adopt <s>[[Special:Diff/1036079353]]</s> <s>[[Special:Redirect/revision/1036080299]]</s> [[Special:Redirect/revision/1036081222]] from the sandbox to stop file talk pages from being reported as linking to the file which confuses [[User:Alexis Jazz/LuckyRename|LuckyRename]]. — <span style="color:#e08020">Alexis Jazz</span> ([[User talk:Alexis Jazz|talk]] or ping me) 10:38, 29 July 2021 (UTC)
:{{Re|Alexis Jazz}} Shouldn't <code>#if:</code> be <code>#ifeq:</code> in your changes? -- [[User:John of Reading|John of Reading]] ([[User talk:John of Reading|talk]]) 10:46, 29 July 2021 (UTC)
::{{u|John of Reading}}, you are [[Special:Diff/1036080299|absolutely right]], sorry. — <span style="color:#e08020">Alexis Jazz</span> ([[User talk:Alexis Jazz|talk]] or ping me) 10:51, 29 July 2021 (UTC)
:Wouldn't the correct fix be in the [[Module:Pagetype]]? Seems the above change now makes it check manually the page type and also with the pagetype module. [[User:Gonnym|Gonnym]] ([[User talk:Gonnym|talk]]) 10:54, 29 July 2021 (UTC)
::{{u|Gonnym}}, it actually skips the pagetype module in case of file talk pages. I'm not sure if it'll be fixable in [[Module:Pagetype]], but I'd welcome anyone to try. — <span style="color:#e08020">Alexis Jazz</span> ([[User talk:Alexis Jazz|talk]] or ping me) 11:03, 29 July 2021 (UTC)
:::I meant this template in general now uses two different page type checks which in general is bad design. You should really post on that module page and ask its maintainer or one of the watchers if they can fix it. [[User:Gonnym|Gonnym]] ([[User talk:Gonnym|talk]]) 11:19, 29 July 2021 (UTC)
::::{{u|Gonnym}}, there are no active maintainers and fewer than 30 watchers. And I suspect (but I don't know) that the module checks for the existence of a subject page, which may cause MediaWiki to think it's being linked.
::::
::::If you insist on using one method, for the purposes of this template {{tl|Pagetype2}} is probably functionally identical. — <span style="color:#e08020">Alexis Jazz</span> ([[User talk:Alexis Jazz|talk]] or ping me) 11:32, 29 July 2021 (UTC)
:::::Yes, an existence check adds an entry to the link table. Here are two such tests: {{#ifexist:Talk:The Glenn Miller Story (album)|Yes|No}}; {{#ifexist:Talk:The Max Miller Story (album)|Yes|No}} - go to [[Special:Permalink/1036091748]] and try out the two "WhatLinksHere" links. --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] 🌹 ([[User talk:Redrose64|talk]]) 12:45, 29 July 2021 (UTC)
::::::{{u|Redrose64}}, I figured, so it's unfixable. — <span style="color:#e08020">Alexis Jazz</span> ([[User talk:Alexis Jazz|talk]] or ping me) 14:38, 29 July 2021 (UTC)
:[[File:Red information icon with gradient background.svg|20px|link=|alt=]] '''Not done for now:''' please establish a [[Wikipedia:Consensus|consensus]] for this alteration '''[[Wikipedia:Edit requests|before]]''' using the {{tlx|edit protected}} template.<!-- Template:EP --> [[User:Izno|Izno]] ([[User talk:Izno|talk]]) 12:33, 29 July 2021 (UTC)
== Need help on updating Template:WikiProject Weather ==
Hi, if you could check the diff in the template's sandbox [https://en.wikipedia.org/w/index.php?title=Special%3AComparePages&page1=Template%3AWikiProject+Weather&page2=Template%3AWikiProject+Weather%2Fsandbox here], to see if the proper corrections were made for:
::a) standardizing the Image left parameter when "small" is no longer used;
::b) adding back the main cat for TF1 so that article alerts and the JL-bot will draw from that category;
::c) adding "quality=subpage" to the TF hook;
::d) removing the 'nested' parameters from TF hook and adding them to 'tfnested'; and
::e) capitalizing the 2nd parameter of several of the TFs, because otherwise they are duplicates of each other.
Also, is it necessary to have the "WPBannerMeta/hooks/qualitycats" hook in the template? It does not seem to be doing anything. Where does it apply to?
Thanks in advance! --[[User:Funandtrvl|Funandtrvl]] ([[User talk:Funandtrvl|talk]]) 00:26, 12 August 2021 (UTC)
== Protected edit request on 19 August 2021 ==
{{edit fully-protected|Template:WPBannerMeta/importancescale|answered=yes}}
Please sync with [[:Template:WPBannerMeta/importancescale/sandbox]] ([https://en.wikipedia.org/w/index.php?title=Special%3AComparePages&page1=Template%3AWPBannerMeta%2Fimportancescale&page2=Template%3AWPBannerMeta%2Fimportancescale%2Fsandbox diff]). This is a minor edit that gets these pages off of [https://en.wikipedia.org/w/index.php?title=Special:LintErrors/stripped-tag&namespace=10 this Linter report]. We're trying to eliminate as many errors from Template space as possible, no matter how trivial. And boy howdy, is this one trivial!
It's gnomey, I know. I would do it myself, but I do not have or want permissions to edit fully protected pages. Thanks. – [[User:Jonesey95|Jonesey95]] ([[User talk:Jonesey95|talk]]) 00:47, 19 August 2021 (UTC)
:{{admin note}} - up to 10,000,000 pages use this - {{ping|Jonesey95}} want to be very careful. Any benefit you see to noincluding the page on itself vs including extra table tags on that? — [[User:Xaosflux|<span style="color:#FF9933; font-weight:bold; font-family:monotype;">xaosflux</span>]] <sup>[[User talk:Xaosflux|<span style="color:#009933;">Talk</span>]]</sup> 11:02, 19 August 2021 (UTC)
::Sorry, I do not understand your question. The requested template has {{tag|tr}} tags without opening and closing {{tag|table}} tags, which confuses the Linter. When it is properly transcluded, it does not appear to cause any errors, but because the template is a syntactically incomplete fragment, it shows up on the error list. I have used this technique on dozens of fragment templates without issue (see [https://en.wikipedia.org/w/index.php?title=Template:ONintfiller&diff=prev&oldid=1038760041 this edit] for an example), and I expect that it will work here in the same way. There are a handful of templates in this family that are on the same report, and I expect that we could remove them from the report with similar techniques. A side benefit of adding these noincludes is that it often makes the template fragment display better on its own page. – [[User:Jonesey95|Jonesey95]] ([[User talk:Jonesey95|talk]]) 15:09, 19 August 2021 (UTC)
:::There's the option to {{tag|includeonly}} the whole template rather than adding the table tags in noinlcudes. Using the table tags means that the template is still visible to those looking at it directly. -- [[User:WOSlinker|WOSlinker]] ([[User talk:WOSlinker|talk]]) 15:29, 19 August 2021 (UTC)
::::If that works, it would be fine with me as well. – [[User:Jonesey95|Jonesey95]] ([[User talk:Jonesey95|talk]]) 21:52, 19 August 2021 (UTC)
:{{done}}<!-- Template:EP --> I have made the requested change — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 08:25, 20 August 2021 (UTC)
== Merging one banner into another ==
Hello, I was wondering if there was anyone here who might be able to assist with merging [[Template:WikiProject Philippine History]] into [[Template:WikiProject Tambayan Philippines]], so that Philippine History appears similarly to the task forces on [[Template:WikiProject Military History]]. I am hoping the coding for such a task is standard enough that it's an easy copy paste, and would look to know if there are any other technical aspects that need looking into (eg. categories), and if the existing templates can be adapted through automation or if they would have to be changed manually. Thanks, [[User:Chipmunkdavis|CMD]] ([[User talk:Chipmunkdavis|talk]]) 04:38, 14 August 2021 (UTC)
:It's not a copy paste at all. BTW, don't attempt to base ''anything'' on the MilHist template, it is extremely non-standard with a number of quirks, and all attempts to harmonise it have, so far, failed.
:The parent project (I guess that is Tambayan Philippines) retains the existing template with its underlying {{tlx|WPBannerMeta}} code. The child project (Philippine History) then becomes task force parameters within that. See [[Template:WPBannerMeta#Task forces]]. --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] 🌹 ([[User talk:Redrose64|talk]]) 09:46, 14 August 2021 (UTC)
::Thanks Redrose. Probably a miscommunication about copying and pasting, but I've tried to implement the parameters you link at [[Template:WikiProject Tambayan Philippines/sandbox]]. A few questions:
::* What is the difference between TF_1_ASSESSMENT_CAT and TF_1_MAIN_CAT? I've put both in following the doc example, but I think that the current [[Template:WikiProject Philippine History]] only has an Assessment cat.
::* Was my implementation of TF_1_QUALITY correct in a way that would maintain the table listed [[Wikipedia:Tambayan Philippines/Task force Philippine History#Statistics|here]]? I'm not entirely sure what the field does, is it creating a separate rating if not used?
::* What code needs to be written on the Wikipedia Talk page to activate the code. Would it be |history=yes ?
::Any other comments are appreciated. There is a profusion of category-related warnings on [[Template:WikiProject Tambayan Philippines/sandbox]] that don't appear at [[Template:WikiProject Philippine History]], is that just a display difference? Some categories such as [[:Category:GA-Class Philippine History articles]] do exist, and I think the syntax I used correctly points to them. [[User:Chipmunkdavis|CMD]] ([[User talk:Chipmunkdavis|talk]]) 10:23, 14 August 2021 (UTC)
::I have created the various categories for other classifications of "Category: X-Class Philippine History articles". The only alert remaining on the sandbox is [[:Category:Philippine History articles]]. Is this needed? I note there is no [[:Category:Philippine-related articles]], despite there being [[:Category:GA-Class Philippine-related articles]] etc. [[User:Chipmunkdavis|CMD]] ([[User talk:Chipmunkdavis|talk]]) 14:20, 14 August 2021 (UTC)
:::Oh dear. {{u|Chipmunkdavis}}, you shouldn't have created those categories until after the changes had been put live. I've not had a chance to properly go through your sandboxed edits yet, and might not for a few days because of work commitments. If we need to make changes, those categories may need to be moved, or even deleted then recreated. Anyway:
:::*{{para|TF_1_MAIN_CAT}} - all pages having the taskforce parameter set to "yes" will be put in here
:::*{{para|TF_1_ASSESSMENT_CAT}} - this is used to construct the category names for e.g. Category:FA-Class ''Foo'' articles, and similar.
:::*{{para|TF_1_QUALITY}} this is a binary parameter, any non-blank value counts as "yes". Tables such as [[User:WP 1.0 bot/Tables/Project/Philippine History]] are bot-built, I need to look up how they're configured.
:::Nearly midnight here, I need to be out by 08:50. --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] 🌹 ([[User talk:Redrose64|talk]]) 23:00, 14 August 2021 (UTC)
Question - [[User:Chipmunkdavis|CMD]], are you planning to separately assess all the articles tagged with Phillipine history or just rely on the quality assessments from WikiProject Tambayan Philippines ? - <b>[[User:Jc37|jc37]]</b> 19:08, 14 August 2021 (UTC)
::::My impression was the categories worked under the current tag anyway. At any rate please G7 them if needed. Regarding assessment, as this is an existing banner they should all theoretically have quality assessments already. The main issue is the current tagging is inconsistent, some have only the history banner, and some have both the history and the main banner. [[User:Chipmunkdavis|CMD]] ([[User talk:Chipmunkdavis|talk]]) 02:02, 15 August 2021 (UTC)
:::::Ok, I went ahead and removed the task force-specific assessment parameters. You or [[User:Redrose64]] are of course welcome to revert my edits there.
:::::I ''think'' this should also fix the needs for the task force-specific categories, which now should be able to be deleted.
:::::Question to you both, does this resolve the template issues so that [[User:Chipmunkdavis|CMD]] (and whomever else) can now implement it (outside of the sandbox)? - <b>[[User:Jc37|jc37]]</b> 02:21, 15 August 2021 (UTC)
::::::I am not sure how the categories and bots interact exactly, but to be clear I am trying to maintain the ability to look at just the History articles as is done at [[Wikipedia:Tambayan Philippines/Task force Philippine History#Statistics]]. Essentially trying to make this merger almost cosmetic, leaving existing operations intact. [[User:Chipmunkdavis|CMD]] ([[User talk:Chipmunkdavis|talk]]) 02:52, 15 August 2021 (UTC)
:::::::Indeed, but I still haven't yet got the time for a proper judgement (four times in the last six days I've stayed on at work for as much as four hours to cover the absence of other staff). What I want to ensure is that the use of {{tlx|Tambayan Philippines|2=history=yes}} puts a page into exactly the same categories that {{tlx|Tambayan Philippines}}{{tlx|Philippine History}} do when used together - this will minimise disruption during the transition phase where some pages have two templates, and some use the combined format. If a template's sandbox shows categories as redlinks with apparent error messages, that's a clear sign that the template code needs adjusting - it doesn't mean that the categories needed to be created. --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] 🌹 ([[User talk:Redrose64|talk]]) 07:34, 16 August 2021 (UTC)
::::::::If you are keeping all the assessment categories then you'll need to add back the {{para|tf 1 importance}} parameter. -- [[User:WOSlinker|WOSlinker]] ([[User talk:WOSlinker|talk]]) 07:40, 16 August 2021 (UTC)
:<small>I happily defer to your (plural) experience : ) - <b>[[User:Jc37|jc37]]</b> 21:28, 16 August 2021 (UTC)</small>
:::::::::I took the existence of there being ''some'' redlink error messages, but ''not'' error messages for the categories that existed (eg. [[:Category:GA-Class Philippine History articles]]), as an indication that the categories were simply not created for the old template. [[User:Chipmunkdavis|CMD]] ([[User talk:Chipmunkdavis|talk]]) 02:14, 17 August 2021 (UTC)
:::::::::{{Ping|Redrose64}} Gentle reminder here if you have time. Best, [[User:Chipmunkdavis|CMD]] ([[User talk:Chipmunkdavis|talk]]) 16:32, 6 September 2021 (UTC)
== TF quality cat issue ==
Why won't [[File talk:Roald Amundsen2.jpg]] go into {{cl|FM-Class Norwegian Antarctica articles|count=yes}} instead of {{cl|File-Class Norwegian Antarctica articles|count=yes}}? It seems to go into {{cl|FM-Class Antarctica articles|count=yes}} ok.
And why won't [[Talk:Mount Kirkpatrick Formation]] go into {{cl|Redirect-Class Ross Dependency articles|count=yes}} instead of {{cl|NA-Class Ross Dependency articles|count=yes}}? It seems to go into {{cl|Redirect-Class Antarctica articles|count=yes}} ok.
Is this because the {{tl|Class mask}} in {{tl|WikiProject Antarctica/class}} can only handle six topics? Is there a workaround? --[[User:Awkwafaba|awkwafaba]] ([[User talk:Awkwafaba|📥]]) 17:08, 8 September 2021 (UTC)
:Fixed with [https://en.wikipedia.org/w/index.php?title=Template:WikiProject_Antarctica&diff=1043169169&oldid=1043160910 this edit]. -- [[User:WOSlinker|WOSlinker]] ([[User talk:WOSlinker|talk]]) 18:14, 8 September 2021 (UTC)
:: {{Ping|WOSlinker}} thanks for the help. I looked at that edit and the one I did earlier and then realised there were two places to change to subpage. Glad it’s working out. <!-- Template:Unsigned --><span class="autosigned" style="font-size:85%;">— Preceding [[Wikipedia:Signatures|unsigned]] comment added by [[User:Awkwafaba|Awkwafaba]] ([[User talk:Awkwafaba#top|talk]] • [[Special:Contributions/Awkwafaba|contribs]]) 01:58, 9 September 2021 (UTC)</span>
== To DEFAULTSORT or not to DEFAULTSORT ==
A big portion of pages in [[:Category:Pages with DEFAULTSORT conflicts]] are caused by multiple {{para|listas}} applied to WikiProject banners. I [https://en.wikipedia.org/w/index.php?target=Andrybak&namespace=1&&offset=20210912131400&limit=40&title=Special%3AContributions have tried fixing some of those], however I noticed that some talk pages can indeed be legitimately sorted differently for purposes of different WikiProjects. E.g. [[Talk:List of Azerbaijani writers]] could be sorted as "Writers, List of" for [[Wikipedia:WikiProject Azerbaijan|WikiProject Azerbaijan]] and as "Azerbaijani writers, List of" for other WikiProjects.
Should something like [[Special:Diff/1032406316/1043881411]] (probably better approach exists) be applied to all subtemplates of {{tl|WPBannerMeta}} (importancescale, /qualityscale, etc) and {{para|listas}} passed down to subtemplates so that
# [[:Category:Pages with DEFAULTSORT conflicts]] could be less polluted, and thus more useful
# different WikiProjects could use different values for {{para|listas}}
? [https://en.wikipedia.org/wiki/Special:Search?search=DEFAULTSORT&prefix=Template+talk%3AWPBannerMeta%2F&fulltext=Search+archives&fulltext=Search&ns0=1 DEFAULTSORT has been discussed several times in the past] and brought up last time in 2011, it seems. Maybe the time has come to fix this? —[[User:Andrybak|andrybak]] ([[User talk:Andrybak|talk]]) 13:43, 12 September 2021 (UTC)
:This appears to eliminate the DEFAULTSORT: entirely, with the result that every individual WikiProject banner will now need to have its own {{para|listas}} set if pages like [[Talk:George Washington]] are to sort correctly in [[Talk:George Washington#mw-normal-catlinks|all of these cats]]. --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] 🌹 ([[User talk:Redrose64|talk]]) 19:48, 12 September 2021 (UTC)
:I have just been checking the code more carefully. It seems that the {{para|listas}} parameter will set the sortkey for the MAIN_CAT ''only''; but not all WikiProject banners use that. In my Talk:George Washington example, there are nine WikiProject banners, but only five of them set {{para|MAIN_CAT}} - these are {{tlx|WikiProject Biography}}, {{tlx|WikiProject Politics}}, {{tlx|WikiProject Virginia}}, {{tlx|WikiProject United States}}, and {{tlx|WP1.0}}. So all other categories will pick up the unmodified sort order, that is, for Talk:George Washington the page will sort under W for five categories ({{cl|WikiProject Biography articles}}, {{cl|WikiProject Politics articles}}, {{cl|WikiProject Virginia articles}}, {{cl|WikiProject United States articles}}, {{cl|Wikipedia Version 1.0 articles}}) and under G for all of the others. I do not think that this is a beneficial change. --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] 🌹 ([[User talk:Redrose64|talk]]) 20:45, 12 September 2021 (UTC)
::I don't think your answer is correct. Currently ''listas'' just sets the DEFAULTSORT, so every category is affected not just MAIN_CAT. I can see the benefit of {{ul|Andrybak}}'s suggestion, but we would probably need a bot to go round setting DEFAULTSORT on each page first, otherwise a lot of existing categories will lose their current sorting. — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 11:28, 1 October 2021 (UTC)
:::Where I wrote "I have just been checking the code more carefully.", this was the ''sandbox'' code as per {{oldid|Template:WPBannerMeta/core/sandbox|1043881411|this revision}}. There is no DEFAULTSORT in there at all. --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] 🌹 ([[User talk:Redrose64|talk]]) 20:33, 1 October 2021 (UTC)
::::Ah, that makes more sense then! — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 21:22, 1 October 2021 (UTC)
== Need help with Note #4 at [[:Template:WikiProject Cities]] ==
Note 4 is currently auto-categorizing all talk pages into [[:Category:Unclassified articles missing geocoordinate data]]; however, if one of the {{para|in}} parameters are used, then it goes into the proper classified category. How could we change the NOTE_4_CAT to only categorize those talk pages where in, in2 or in3 is not used?
Example code, as it is now:
<pre>
|note 4={{{needs-geocoord|{{{geocoord-needed|{{{geocoord-requested|{{{geocoord|}}}}}}}}}}}}
|NOTE_4_TEXT = This {{pagetype|{{{class|}}}}} lacks Geocoordinate data. {{#if:{{{small|}}}||Once the Geocoordinates data is added, please remove the {{para|needs-geocoord}} parameter from this template.}} <includeonly>{{#if:{{{in|}}}|[[Category:{{{in}}} articles missing geocoordinate data|{{PAGENAME}}]]}}{{#if:{{{in2|}}}|[[Category:{{{in2}}} articles missing geocoordinate data|{{PAGENAME}}]]}}{{#if:{{{in3|}}}|[[Category:{{{in3}}} articles missing geocoordinate data|{{PAGENAME}}]]}}</includeonly>
|NOTE_4_IMAGE = Blank_globe.svg
|NOTE_4_CAT = Unclassified articles missing geocoordinate data
</pre>
--[[User:Funandtrvl|Funandtrvl]] ([[User talk:Funandtrvl|talk]]) 21:27, 19 February 2022 (UTC)
:It looks like {{tl|coord missing}} uses the Unclassified articles category also. --[[User:Funandtrvl|Funandtrvl]] ([[User talk:Funandtrvl|talk]]) 21:30, 19 February 2022 (UTC)
::This could do it. -- [[User:WOSlinker|WOSlinker]] ([[User talk:WOSlinker|talk]]) 21:37, 19 February 2022 (UTC)
<pre>
|NOTE_4_CAT = {{#if:{{{in|}}}{{{in2|}}}{{{in3|}}}||Unclassified articles missing geocoordinate data}}
</pre>
:::{{ping|User:WOSlinker}} thank you! --[[User:Funandtrvl|Funandtrvl]] ([[User talk:Funandtrvl|talk]]) 05:49, 20 February 2022 (UTC)
== Unreasonably massive class/importance boxes on certain screen sizes ==
When visiting pages such as [[Talk:France national football team]] or [[Talk:Feldwebel]] on Firefox using the ''Timeless'' WP skin on desktop, with a window of width less than 830px, the colored class/importance boxes (e.g. "Start", "B" and "Mid") in templates that are built on top of this template are absolutely massive, (e.g. 681px x 188 px), while the text column to their right is tiny (e.g. 82px x 182 px). I think these widths should be pretty much reversed. The problem appears to be caused by the CSS class {{code|.mw-body-content td.mbox-text}} of the right (text) column having {{code|display: block}} set and disappears when the attribute is removed.
If there's a better place to report this (e.g. if this should be viewed as a problem with the skin rather than with this template), thanks in advance for pointing me towards a better place to report this. -[[User:Ljleppan|''Ljleppan'']] ([[User talk:Ljleppan|talk]]) 08:33, 1 April 2022 (UTC)
:Removing <code>[https://en.wikipedia.org/w/index.php?title=Template:WPBannerMeta/core/sandbox&diff=prev&oldid=1080444420 class="mbox-image"]</code> in the sandbox version seemed to help. See a test [https://en.wikipedia.org/w/index.php?title=User:WOSlinker/bannertest&useskin=timeless here]. -- [[User:WOSlinker|WOSlinker]] ([[User talk:WOSlinker|talk]]) 09:47, 1 April 2022 (UTC)
::This would also seems to fix the issue on my end. In this changeset, the operative CSS attribute being removed appears to be {{code|float: left;}} in {{code|.mw-body-content td.mbox-image.mbox-image}}. The downside would then naturally be that the text won't wrap around the image any more, which is probably fine in most cases but might look weird for very long texts. Meanwhile, removing {{code|class{{=}}"mbox-text"}} from the {{code|<td>}} elements following the class/importance {{code|<td>}} elements doesn't seem to result in any adverse changes at least on my computer. [[User:Ljleppan|''Ljleppan'']] ([[User talk:Ljleppan|talk]]) 10:32, 1 April 2022 (UTC)
:This was reported [[Template_talk:WPBannerMeta/Archive_11#Coloured_blocks_may_be_too_large|a while ago]]. Regardless, removing <code>mbox-</code> would be overall a negative for other use cases. If we need to adjust the actual CSS on that element, we can work on that.
:At some point this template won't use a table for layout so we'll be able to sort these things out a bit easier. [[User:Izno|Izno]] ([[User talk:Izno|talk]]) 19:35, 4 June 2022 (UTC)
==Discussion at [[:Wikipedia:Village pump (idea lab)#Idea: Add affiliates to WikiProject banners|Wikipedia:Village pump (idea lab) § Idea: Add affiliates to WikiProject banners]]==
[[File:Symbol watching blue lashes high contrast.svg|25px|link=|alt=]] You are invited to join the discussion at [[:Wikipedia:Village pump (idea lab)#Idea: Add affiliates to WikiProject banners|Wikipedia:Village pump (idea lab) § Idea: Add affiliates to WikiProject banners]]. [[User:EpicPupper|🐶 EpicPupper]] <sup>(he/him | [[User talk:EpicPupper|talk]])</sup> 01:14, 22 June 2022 (UTC)<!-- [[Template:Please see]] -->
== Subcategorize image requests ==
Would it be reasonable to allow image requests to be put into subcategories? For example, a lot of pages categorized into [[:Category:Wikipedia requested photographs in New Zealand]] should be put at [[:Category:Wikipedia requested images of New Zealand biota]] or [[:Category:Wikipedia requested images of people of New Zealand]], but to do that at the moment you would have to use {{tl|image request}} and remove {{para|needs-infobox}} from this template.
I can think of two ways to solve this: Change {{para|needs-infobox}} to allow more than yesno; or add a {{para|type}} parameter (or similar). <span style="font-family:Avenir, sans-serif">— <span style="border-radius:5px;padding:.1em .4em;background:#faeded">[[User:HTGS|HTGS]]</span> ([[User talk:HTGS|talk]])</span> 01:12, 13 September 2022 (UTC)
:You could look at the code in [[Template:WikiProject Wisconsin]] for an example of adding the ''in'' parameter for images. -- [[User:WOSlinker|WOSlinker]] ([[User talk:WOSlinker|talk]]) 07:15, 13 September 2022 (UTC)
== User sandbox being categorized ==
Please see [[User_talk:Headbomb#A_subpage_of_yours|this discussion]]. It appears that this template, or one of the pages that it calls, is categorizing a User sandbox page into categories like [[:Category:FA-Class Adelaide articles]] and making the page show up on assessment tables. There is probably a namespace check that could prevent this from happening. – [[User:Jonesey95|Jonesey95]] ([[User talk:Jonesey95|talk]]) 15:44, 29 November 2022 (UTC)
:Fixed with {{para|category|no}} — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 16:05, 29 November 2022 (UTC)
== "Template:WPBannerMeta/Archive 13" listed at [[Wikipedia:Redirects for discussion|Redirects for discussion]] ==
[[File:Information.svg|30px]]
An editor has identified a potential problem with the redirect [[:Template:WPBannerMeta/Archive 13]] and has thus listed it [[Wikipedia:Redirects for discussion|for discussion]]. This discussion will occur at {{slink|Wikipedia:Redirects for discussion/Log/2022 December 22#Template:WPBannerMeta/Archive 13}} until a consensus is reached, and readers of this page are welcome to contribute to the discussion. <!-- from Template:RFDNote --> <span class="nowrap">—'''[[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> 14:27, 22 December 2022 (UTC)
== Inactive projects ==
There is currently a wide-ranging discussion about inactive project banners at [[Wikipedia:Village pump (miscellaneous)/Archive 73#Improper handling of assessment for inactive WikiProjects]]. When projects are marked as inactive, the template will stop displaying the quality assessment of articles, and some editors are concerned that article assessments are being lost. My suggestion was for the quality assessment to be displayed but to suppress the categorisation. This would mean that the assessments would be visible but it would not be necessary to recreate hundreds of categories which have long since been deleted. One way to achieve this, would be to recognise the syntax {{para|ASSESSMENT_CAT|none}}. But they may be a better method ... — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 17:37, 8 January 2023 (UTC)
== Protected edit request on 11 January 2023 ==
{{edit fully-protected|Template:WPBannerMeta|answered=yes}}
Please add
<nowiki>|class_values = {{{class_values|}}}</nowiki>
just above the line
<nowiki>|auto={{lc:{{{WikiProject Automobiles|¬}}}}}</nowiki>
This will allow the auto documentation to support an inline quality class. (I already made the corresponding change in {{tlx|WPBannerMeta/templatepage}}).
The client, e.g., [[Template:WikiProject Craft]] would need to add (in this case) a
<nowiki>|class_values={{WPBannerDoc/class mask|category=yes|template=yes}}<!-- For auto documentation --></nowiki>
I'll update WikiProject Craft when this request is done
All the above has been tested on my personal wiki, e.g. on http://en.wikimergic.org/wiki/Template:WPBannerMeta
Thanks. [[User:Dpleibovitz|Dpleibovitz]] ([[User talk:Dpleibovitz|talk]]) 04:16, 11 January 2023 (UTC)
:{{done}}<!-- Template:EP --> — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 09:08, 17 January 2023 (UTC)
== Remove some styles to improve mobile version ==
{{edit fully-protected|Template:WPBannerMeta/styles.css|answered=yes}}
Please remove the following fragment:<syntaxhighlight lang="css">
@media (min-width: 720px) {
.wpb {
width: 80%;
}
}
</syntaxhighlight>These styles are not necessary on desktop (tmbox already has styles to set it to 80% width), and cause this template to display at an unusually narrow width in the new version of mobile talk pages (visit e.g. [https://en.m.wikipedia.org/wiki/Talk:The_Fighting_Temeraire?dtenable=1] on your desktop and click "Learn more about this page" to see). [[User:Matma Rex|Matma Rex]] <small>[[User talk:Matma Rex|talk]]</small> 09:53, 20 January 2023 (UTC)
:It looks okay on my browser, following the link you gave. I'll check on my mobile later — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 13:04, 20 January 2023 (UTC)
:[[File:Red information icon with gradient background.svg|20px|link=|alt=]] '''Not done for now:'''<!-- Template:EP --> per related discussion at [[Template_talk:Article_history#Remove_some_styles_to_improve_mobile_version|template talk:Article history]] [[User:Izno|Izno]] ([[User talk:Izno|talk]]) 22:34, 25 January 2023 (UTC)
== Task force name and case sensitivity ==
Task force names, as processed by {{tl|WPBannerMeta/hooks/taskforces}}, seem case sensitive. If I have a WikiProject banner template with:
<nowiki>|tf 1 = {{{aviation|}}}</nowiki>
It seems that a talk page with <nowiki>{{WikiProject Military history|aviation=y}} </nowiki>, it'll get recognized, but <nowiki></nowiki> won't be.
Is there any way around this, other than :
<nowiki>|tf 1 = {{{aviation|Aviation|}}}}}}</nowiki>
?
The context for this is that I'm trying to create a WPBannerMeta version of the MILHIST talk page banner. Some of its task forces have 15+ parameters, so it would be nice to avoid needing to add multiple variations of capitalization for each TF parameter.
Would there be any ''downsides'' to changing {{tl|WPBannerMeta/hooks/taskforces}} to make these case-insensitive by default? That would be rather nice, and would help catch a lot of errors we couldn't possibly add to templates, like <nowiki></nowiki>
[[User:DFlhb|DFlhb]] ([[User talk:DFlhb|talk]]) 12:40, 11 February 2023 (UTC)
:I don't know how you would do that, and currently the only way is <code><nowiki>|tf 1 = {{{aviation|Aviation|}}}}}}</nowiki></code>. Probaby something that could more easily be done when this template is converted to lua — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 13:38, 11 February 2023 (UTC)
::Lua is another thing frWiki beat us to; their banners have been Lua for a while. [[User:DFlhb|DFlhb]] ([[User talk:DFlhb|talk]]) 22:01, 11 February 2023 (UTC)
::I'm also wondering if it's possible to replicate MILHIST's task force "headings" (like "General topics", "Nations and regions", "Periods and conflicts", see [[Talk:Acra_(fortress)]] for an example) with WPBannerMeta. Any ideas? [[User:DFlhb|DFlhb]] ([[User talk:DFlhb|talk]]) 13:41, 12 February 2023 (UTC)
:{{replyto|DFlhb}} This cannot be done in {{tlx|WPBannerMeta/hooks/taskforces}} or any other template. Whilst it's easy to code for case-insensitive parameter ''values'', the MediaWiki parser always treats parameter names as case-sensitive. It has no means for overriding this other than by coding for each likely variant, which is why the existing template has code like <code><nowiki>{{{B-Class-1|}}}{{{B-1|}}}{{{B1|}}}{{{b-1|}}}{{{b1|}}}</nowiki></code>. This means that {{para|B-1}} is equivalent to {{para|b-1}}, similarly {{para|B1}} is equivalent to {{para|b1}}, ''but'' the lowercase form of {{para|B-Class-1}}, i.e. {{para|b-class-1}} is invalid because it's not explicitly coded for. Please show which task forces {{tq|have 15+ parameters}}. --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] 🌹 ([[User talk:Redrose64|talk]]) 17:45, 11 February 2023 (UTC)
::Europe has 26. [[User:DFlhb|DFlhb]] ([[User talk:DFlhb|talk]]) 22:02, 11 February 2023 (UTC)
:::No, {{para|European}} is the only alias for {{para|European-task-force}}. However, in addition, certain ''other'' taskforce parameters will trigger this one as a side-effect:
:::*{{para|Balkan-task-force}} (and its alias {{para|Balkan}})
:::*{{para|Romanian-task-force}} (and its alias {{para|Romanian}})
:::*{{para|Baltic-task-force}} (and its alias {{para|Baltic}})
:::*{{para|British-task-force}} (and its alias {{para|British}})
:::*{{para|Three-Kingdoms-task-force}} (and its alias {{para|Three-Kingdoms}})
:::*{{para|Dutch-task-force}} (and its alias {{para|Dutch}})
:::*{{para|French-task-force}} (and its alias {{para|French}})
:::*{{para|German-task-force}} (and its alias {{para|German}})
:::*{{para|Italian-task-force}} (and its alias {{para|Italian}})
:::*{{para|Nordic-task-force}} (and its alias {{para|Nordic}})
:::*{{para|Polish-task-force}} (and its alias {{para|Polish}})
:::*{{para|Spanish-task-force}} (and its alias {{para|Spanish|}}}
:::Each of these pairs is for a different traskforce, they are not aliases for {{para|European-task-force}}. --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] 🌹 ([[User talk:Redrose64|talk]]) 23:14, 11 February 2023 (UTC)
::::I don't see what the difference is; everything in these task forces is supposed to automatically get tagged with the European TF too, so they're passed in to the Europe task force in addition to being based in for their own task force (in the sandbox version). Isn't that how it's supposed to be done? [[User:DFlhb|DFlhb]] ([[User talk:DFlhb|talk]]) 09:23, 12 February 2023 (UTC)
:::::See [[Template:WikiProject United States]] for an example of a WikiProject banner which is (a) built around {{tlx|WPBannerMeta}} (b) has lots of task forces (c) makes extensive use of parameter aliases, for example in this code: <syntaxhighlight lang=moin>|tf 2 = {{{USfilm|{{{UScinema|{{{USCinema|{{{USFilm|}}}}}}}}}}}}
|TF_2_LINK = Wikipedia:WikiProject Film/American cinema task force
|TF_2_NAME = WikiProject Film - American cinema task force
|TF_2_PORTAL = Film
|TF_2_IMAGE = United States film.svg
|TF_2_QUALITY = yes
|TF_2_IMPORTANCE = yes
|tf 2 importance={{{USfilm-importance|{{{UScinema-importance|{{{USFilm-importance|{{{USCinema-importance|}}}}}}}}}}}}
|TF_2_ASSESSMENT_CAT = American cinema articles
|TF_2_MAIN_CAT = American cinema task force articles
|TF_2_HOOK = {{WPBannerMeta/hooks/cats
|category={{{category|¬}}}
|BANNER_NAME = Template:WikiProject United States
|cat 1={{{WikiProject Automobiles|}}}
|CAT_1 = Automatically assessed American cinema articles
|cat 2={{{attention|}}}
|CAT_2 = American cinema articles needing attention
|cat 3={{{needs-infobox|{{{infobox-needed|}}}}}}
|CAT_3 = American cinema articles needing an infobox
|cat 4={{{needs-image|{{{image-needed|{{{photo-needed|{{{needs-photo|}}}}}}}}}}}}
|CAT_4 = American cinema articles needing an image
|cat 5={{{unref|}}}
|CAT_5 = Unreferenced American cinema articles
|cat 6={{{needs-geocoord|{{{geocoord-needed|}}}}}}
|CAT_6 = American cinema articles missing geocoordinate data
|cat 8={{Ifexist not redirect|{{FULLPAGENAME}}/to do|yes}}
|CAT_8 = American cinema articles with to-do lists
}}</syntaxhighlight> which has nine parameters, five of which have aliases - three have three aliases each. --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] 🌹 ([[User talk:Redrose64|talk]]) 22:03, 12 February 2023 (UTC)
== Single class rating for article ==
[[File:Article-level assessment example.jpg]]
In case anyone has not been following, there is a proposal at [[Wikipedia:Village pump (idea lab)#Project-independent quality assessments]] which allow class ratings to be placed into the banner shell, and to be hidden inside the individual project banners. This template will still need to read the class rating in order to populate the categories. You might like to review and comment there — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 13:13, 3 February 2023 (UTC)
:This is now a formal proposal at [[Wikipedia:Village pump (proposals)#Project-independent quality assessments]]. Please come along and comment! — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 18:18, 6 February 2023 (UTC)
Just to note that the new system is ready for implementation - probably tomorrow or the next day. Discussion of details has been going on at [[Template talk:WikiProject banner shell]]. Just to summarise: this template will be modified to sometimes suppress the display of the article rating (if it matches the rating given in the banner shell) but should otherwise be unaffected. — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 23:00, 25 March 2023 (UTC)
== Automated NA importance ratings? ==
{{Archive top}}
Q. Is there a way to code a WikiProject banner so that a 'class' of, say, 'Redirect' or 'Category', automatically sets the 'importance' to 'na'? This would simplify our maintenance of the project's quality/importance table. Thanks. [[User:Praemonitus|Praemonitus]] ([[User talk:Praemonitus|talk]]) 19:09, 19 February 2023 (UTC)
:It should already do that. Do you have any example where it does not. -- [[User:WOSlinker|WOSlinker]] ([[User talk:WOSlinker|talk]]) 19:39, 19 February 2023 (UTC)
:: Sure: '[[Talk:Zeta UMi]]'. [[User:Praemonitus|Praemonitus]] ([[User talk:Praemonitus|talk]]) 21:01, 19 February 2023 (UTC)
:::That is a redirect; real page is [[Zeta Ursae Minoris]]. [[User:DFlhb|DFlhb]] ([[User talk:DFlhb|talk]]) 21:05, 19 February 2023 (UTC)
:::: Perhaps I'm not communicating my point. It's a redirect and ''does not need'' an importance rating. I want it to go to 'na', even if somebody set it to 'low'. [[User:Praemonitus|Praemonitus]] ([[User talk:Praemonitus|talk]])
:::::It will auto-assess as NA-importance if the importance is not specified, but you can override the default by using the parameter <!-- Template:Unsigned --><small class="autosigned">— Preceding [[Wikipedia:Signatures|unsigned]] comment added by [[User:MSGJ|MSGJ]] ([[User talk:MSGJ#top|talk]] • [[Special:Contributions/MSGJ|contribs]]) 21:18, 19 February 2023 (UTC)</small>
:::::Generally speaking, unless the subject page is (i) an actual article; (ii) a list or (iii) a dab page, the {{para|class}} and {{para|importance}} parameters should be left blank or omitted entirely, they will then autodetect. For dab pages, you should set {{para|class|dab}}, leaving {{para|importance}} blank or omitted. --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] 🌹 ([[User talk:Redrose64|talk]]) 23:23, 19 February 2023 (UTC)
:::::: Yes, I understand that. What I'm trying to avoid is having to repeatedly fix ratings where somebody added a redirect and set a non-NA importance rating. In this case it was a large quantity, so the result was a good chunk of unnecessarily wasted time. I was just hoping it was something I could code in the template logic, if somebody else had already addressed this. Thanks. [[User:Praemonitus|Praemonitus]] ([[User talk:Praemonitus|talk]]) 00:02, 20 February 2023 (UTC)
:::::::It can be achieved but is it something all WikiProjects would be on board with? <span class="nowrap">—'''[[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> 06:04, 20 February 2023 (UTC)
:::::::: My thinking was it could be set with a configuration flag in this template. Alternatively, there could be some sample code or a macro that individual WP templates could substitute. [[User:Praemonitus|Praemonitus]] ([[User talk:Praemonitus|talk]]) 16:55, 21 February 2023 (UTC)
::::: No, the misunderstanding was fully mine; I blame tiredness. Indeed, it would be nice if it could automatically override inaccurate importance ratings. It's tedious to have to clear those parameters manually. [[User:DFlhb|DFlhb]] ([[User talk:DFlhb|talk]]) 23:25, 19 February 2023 (UTC)
:::::: No worries. Thanks. [[User:Praemonitus|Praemonitus]] ([[User talk:Praemonitus|talk]]) 00:02, 20 February 2023 (UTC)
I did a little more investigating and came up with the following, which might serve for individual WP templates:
<syntaxhighlight lang="moin" line="1">
|importance={{#switch: {{lc:{{{class}}}}}
| category = na
| redirect = na
| file = na
| portal = na
| redirect = na
| template = na
| #default = {{{importance|}}}
}}
</syntaxhighlight>
I don't know how to test it though. [[User:Praemonitus|Praemonitus]] ([[User talk:Praemonitus|talk]]) 16:50, 21 February 2023 (UTC)
:The point about autodetection is that you ''don't'' set class except for true articles, lists and dab pages, so for categories, redirs etc., i.e. pages where {{para|class}} isn't set, the above resolves to <syntaxhighlight lang="moin" line="1">|importance={{{importance}}}</syntaxhighlight> which is an invalid value. --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] 🌹 ([[User talk:Redrose64|talk]]) 22:04, 21 February 2023 (UTC)
:: That resolution is the same as the current setting, so how is that invalid? Anyway, the scenarios of concern are those where autodetect is overridden. [[User:Praemonitus|Praemonitus]] ([[User talk:Praemonitus|talk]]) 23:48, 21 February 2023 (UTC)
:::It's invalid because when the {{para|importance}} parameter is not fed in, the value <code><nowiki>{{{importance}}}</nowiki></code> is taken literally. If you want an absent parameter to resolve to a null value, you need to add a pipe before the closing triple brace. It's also ''not'' the same as the current setting, which uses code to determine the namespace, see [[Template:Importance mask]] and [[Module:Pagetype]]. I also don't see why we would need to write new code for this, when we already have code that has existed for years, is thoroughly tested and extensively used. --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] 🌹 ([[User talk:Redrose64|talk]]) 00:38, 22 February 2023 (UTC)
:::: Okay, pipe added. Well I've experienced this issue for a year now, so I'm looking for a solution and I was hoping this might be a good spot to start. I see there's no point in continuing. [[User:Praemonitus|Praemonitus]] ([[User talk:Praemonitus|talk]]) 03:28, 22 February 2023 (UTC)
{{Archive bottom}}
{{ping|Praemonitus}} if you use a custom importance mask, your project can manage its importance ratings however they wish. Let me know if you need help setting this up. Or if you think this is something every project should have, then do continue to discuss here. [[Template:Class mask]] has a |forceNA setting - we could look at adding such a thing to [[Template:Importance mask]] also — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 20:46, 28 March 2023 (UTC)
== Simplifying this template ==
So because quality assessment will move to the banner shell there will need to be a bot run editing basically all pages with this template. Is there anything else we would like to change here that could benefit from being changed in that huge bot run. I'm not at all familiar with the inner workings of WikiProject banners, but this seems to me like a potentially great opportunity. --[[User:Trialpears|Trialpears]] ([[User talk:Trialpears|talk]]) 05:54, 13 February 2023 (UTC)
:Changed? Yes, convert this into Lua so trying to change something in this series of templates doesn't require checking dozens of templates and getting lost in the process. My personal issue with the current code is that if I need to add a new task force and still want the template to be sorted alphabetically, I need to manually edit dozens of lines. That is a horrible design. [[User:Gonnym|Gonnym]] ([[User talk:Gonnym|talk]]) 13:23, 13 February 2023 (UTC)
::As I have pointed out before, I cannot understand Lua. Therefore, I will no longer be able to:
::* maintain the template suite
::* trace code through to find out why something doesn't happen as expected
::* explain to others why their usage isn't working as expected
::* create and add documentation
::The number of Lua coders is far fewer than the number of people familiar with Wikimarkup, therefore, anybody converting a template to Lua must be willing to take on all of the tasks that I have listed above. --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] 🌹 ([[User talk:Redrose64|talk]]) 11:29, 14 February 2023 (UTC)
::I've been looking at {{tq|if I need to add a new task force and still want the template to be sorted alphabetically, I need to manually edit dozens of lines}}. The present setup already allows additional task forces to ba added without any renumbering being necessary. Consider [[Template:WikiProject Biography]]: the present template (omitting two uses of {{tlx|WPBannerMeta/hooks/cats}}) has <syntaxhighlight lang=moin line> |tf 2={{{filmbio-work-group|}}}
|TF_2_LINK = Wikipedia:WikiProject Actors and Filmmakers
|TF_2_NAME = WikiProject Actors and Filmmakers
|TF_2_IMAGE = Lumierebros.jpg
|TF_2_QUALITY = yes
|tf 2 importance={{{filmbio-priority|{{{priority|{{{importance|}}}}}}}}}
|TF_2_ASSESSMENT_CAT = biography (actors and filmmakers) articles
|TF_2_MAIN_CAT = Actors and filmmakers work group articles
|tf 3={{{musician-work-group|}}}
|TF_3_LINK = Wikipedia:WikiProject Musicians
|TF_3_NAME = WikiProject Musicians
|TF_3_IMAGE = Exquisite-microphone.png
|TF_3_QUALITY = yes
|tf 3 importance={{{musician-priority|{{{priority|{{{importance|}}}}}}}}}
|TF_3_ASSESSMENT_CAT = biography (musicians) articles
|TF_3_MAIN_CAT = Musicians work group articles</syntaxhighlight> Now assume that I want to insert a new task force between these, it might be called Foo work group. I can leave the existing code as it is and insert extra lines as follows: <syntaxhighlight lang=moin line highlight=9-23> |tf 2={{{filmbio-work-group|}}}
|TF_2_LINK = Wikipedia:WikiProject Actors and Filmmakers
|TF_2_NAME = WikiProject Actors and Filmmakers
|TF_2_IMAGE = Lumierebros.jpg
|TF_2_QUALITY = yes
|tf 2 importance={{{filmbio-priority|{{{priority|{{{importance|}}}}}}}}}
|TF_2_ASSESSMENT_CAT = biography (actors and filmmakers) articles
|TF_2_MAIN_CAT = Actors and filmmakers work group articles
|tf 7={{{foo-work-group|}}}
|TF_7_LINK = Wikipedia:WikiProject Foo
|TF_7_NAME = WikiProject Foo
|TF_7_IMAGE = Example.png
|TF_7_QUALITY = yes
|tf 7 importance={{{foo-priority|{{{priority|{{{importance|}}}}}}}}}
|TF_7_ASSESSMENT_CAT = foo articles
|TF_7_MAIN_CAT = Foo work group articles
}}{{WPBannerMeta/hooks/taskforces
|category={{{category|¬}}}
|PROJECT = Biography
|QUALITY_SCALE = subpage
|IMPORTANCE_SCALE_NAME = importance
|TF_SIZE = x25px
|class={{{class|}}}
|tf 3={{{musician-work-group|}}}
|TF_3_LINK = Wikipedia:WikiProject Musicians
|TF_3_NAME = WikiProject Musicians
|TF_3_IMAGE = Exquisite-microphone.png
|TF_3_QUALITY = yes
|tf 3 importance={{{musician-priority|{{{priority|{{{importance|}}}}}}}}}
|TF_3_ASSESSMENT_CAT = biography (musicians) articles
|TF_3_MAIN_CAT = Musicians work group articles</syntaxhighlight> The numbers for {{para|TF ''n''}} etc. need not be consecutive, they just need to be in the range 1-10, so you may leave gaps in the sequence in case of future eventualities. The same goes for the "nested" code later on. --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] 🌹 ([[User talk:Redrose64|talk]]) 23:32, 14 February 2023 (UTC)
:::How can you understand template syntax? You weren't born with the knowledge. I bet when you first saw a template in wikicode it was quite imtimidating. Well, the same might be true of Lua. I am far from an expert, but I have come a long way in the past year. (Probably [[Module:Is instance]] I am most proud of.) It's a steep learning curve, but I can promise that you'll wonder how we ever managed with wikicode and the arcane setup we are using here — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 21:14, 28 March 2023 (UTC)
== WikiProject Military history ==
There are efforts underway to convert this template to use WPBannerMeta. If anyone has spare time and is familiar with custom class masks, etc. please see discussion at [[Template talk:WikiProject Military history]] — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 10:47, 29 March 2023 (UTC)
== Change colour of unassessed ==
There is a proposal at [[Template talk:WikiProject banner shell#Slight change to unassessed ratings|Template talk:WikiProject banner shell]] to change the colour of unassessed class from transparent to #dcdcdc (see {{diffPages|page2=Module:Class/sandbox/styles.css|page1=Module:Class/styles.css|label=diff}}) — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 17:36, 3 May 2023 (UTC)
== bchecklist unintuitive behaviour ==
Re: [[Template:WPBannerMeta/hooks/bchecklist]], and specifically [[Template:WPBannerMeta/hooks/bchecklist/cat]]:
Two behaviors I don't like:
#By default, it treats ''missing'' and ''failing'' B-criteria identically. So <code>|b1=</code> and <code>|b1=no</code> (and <code>|b1</code> being absent altogether) all lead to categorization into things like {{tq|Category:XYZ articles needing attention to referencing and citation}}.
#By default, if ''no'' B-criteria are filled, it puts it in {{tq|XYZ articles with incomplete B-Class checklists}} rather than {{tq|with empty B-Class checklists}}
The first is offensively dumb; the second is just annoying. The first pollutes the categories with unclassified articles rather than articles that really need attention, and is not the behaviour I'd expect. Unsurprisingly, only a handful of projects still use B-checklists (see [[:Category:Articles with incomplete B-Class checklists|cat of these project]]), and most projects either abandoned the B-checklists or coded their own logic (like [[WP:FILM]], [[WP:APPLE]], MILHIST) that avoids this.
Does anyone agree that this isn't expected behavior? Any bots or editors' personal workflows that rely on this weirdness? I think at least #1 should be changed, if not #2. I've solved both at [[WP:APPLE]] by using [[Template:WikiProject Apple Inc./B-checklist categories|this custom logic]] inspired by [[Template:WikiProject Film/B-checklist categories|WP:FILM's logic]]. [[User:DFlhb|DFlhb]] ([[User talk:DFlhb|talk]]) 15:32, 3 April 2023 (UTC)
:I don't think it is unintuitive that a blank value is treated the same as a "no" value. The documentation is clear: "specifies individual categories to use when the individual checklist parameters are blank or set to no". Of course this behaviour could be changed, but that would affect all articles currently using these categories. — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 20:46, 16 April 2023 (UTC)
::The problem is that it makes these categories less useful, because they don't only contain articles that really need attention; by default, they contain 85-90%+ of a project's articles, since that's how many articles lack B-checklists. [[User:DFlhb|DFlhb]] ([[User talk:DFlhb|talk]]) 13:18, 14 May 2023 (UTC)
== Change link to quality scale ==
When project-independent quality ratings are implemented, any project which has not opted out will be assumed to be using the standard quality scale described at [[Wikipedia:Content assessment]]. Currently the {{para|ASSESSMENT_LINK}} parameter is used for this, and if not defined, will default to '''Wikipedia:WikiProject {{{PROJECT}}}/Assessment''' (if that page exists). I propose to change this behaviour so that unless {{para|QUALITY_CRITERIA|custom}} is defined, then [[Wikipedia:Content assessment]] will be used for the quality scale. The {{para|ASSESSMENT_LINK}} will still be used for the importance scale. — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 11:55, 11 May 2023 (UTC)
:I believe the changes required are [https://en.wikipedia.org/w/index.php?title=Template:WPBannerMeta/qualityscale/sandbox&diff=prev&oldid=1154297783] and [https://en.wikipedia.org/w/index.php?title=Template:WPBannerMeta/core/sandbox&diff=prev&oldid=1154297234] — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 15:02, 11 May 2023 (UTC)
:I agree. <span class="nowrap">—'''[[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> 21:19, 11 May 2023 (UTC)
:Good change. I like that this addresses [https://en.wikipedia.org/wiki/Wikipedia:Village_pump_(idea_lab)/Archive_46#c-DFlhb-20230204232600-MSGJ-20230203133000 feedback I raised] at WP:VPR by continuing to link to custom importance scales. [[User:DFlhb|DFlhb]] ([[User talk:DFlhb|talk]]) 22:33, 11 May 2023 (UTC)
::{{done}} — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 18:46, 14 May 2023 (UTC)
== Add tracking categories ==
To help with the implementation of global article quality ratings, I am thinking of adding a couple of tracking categories:
* [[:Category:WikiProjects using a non-standard quality scale]] for pages using {{para|QUALITY_CRITERIA|custom}}
* [[:Category:WikiProjects using the standard quality scale and a custom assessment link]] for pages not using {{para|QUALITY_CRITERIA}} but which have something defined in {{para|ASSESSMENT_LINK}}
— Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 20:50, 16 April 2023 (UTC)
:[[:Category:WikiProjects using the standard quality scale with customised class masks]] added — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 11:31, 22 May 2023 (UTC)
==Discussion at [[:Wikipedia talk:WikiProject Vital Articles#TfD follow-up: Fate of the vital article talk banner|Wikipedia talk:WikiProject Vital Articles § TfD follow-up: Fate of the vital article talk banner]]==
[[File:Symbol watching blue lashes high contrast.svg|25px|link=|alt=]] You are invited to join the discussion at [[:Wikipedia talk:WikiProject Vital Articles#TfD follow-up: Fate of the vital article talk banner|Wikipedia talk:WikiProject Vital Articles § TfD follow-up: Fate of the vital article talk banner]].  Information is particularly sought on whether or not it would be possible to add a parenthetical like {{tq|(Listed at level 3 in People)}} in place of e.g. {{tq|(Rated Mid-Importance)}} without making changes to this template. <span style="color:#AAA"><small>{{u|</small><span style="border-radius:9em;padding:0 5px;background:#088">[[User:Sdkb|<span style="color:#FFF">'''Sdkb'''</span>]]</span><small>}}</small></span> <sup>[[User talk:Sdkb|'''talk''']]</sup> 19:57, 27 May 2023 (UTC)<!-- [[Template:Please see]] -->
== Nested, rated for class, and inactive ==
See [[Talk:Popular culture]], where we find
:'''(Rated C-class)([[Wikipedia:WikiProject Council/Guide#Dealing with inactive WikiProjects|Inactive]])'''
the underlying markup being <syntaxhighlight lang=wikitext>(Rated C-class)([[Wikipedia:WikiProject Council/Guide#Dealing with inactive WikiProjects|Inactive]])</syntaxhighlight> notice the two parentheses are butted up together. I think that we need a space here, but since the two parentheses have different origins, I don't know where the best place is. The first parenthesis originates in [[Template:WPBannerMeta/core]] with these lines: <syntaxhighlight lang=wikitext><th class="wpb-header-assessment">{{#switch:{{#ifeq:{{str left|{{{class|}}}|1}}|H|<!--hide-->|{{str right|{{{class|¬¬}}}|1}}}}
||¬ = {{#switch:{{{importance|}}}
||¬|NA|Unknown = <span class="wpb-iefix"> <!--TO FIX IE--></span>
|#default = (Rated {{{importance|}}}-{{{IMPN}}})
}}
|#default = (Rated {{str right|{{{class|}}}|1}}-class{{#switch:{{{importance|}}}
||¬|NA|Unknown = )
|#default = , {{{importance|}}}-{{{IMPN}}})
}}
}}{{{HOOK_NESTED_ASSESS|}}}
</th></syntaxhighlight> and the second parenthesis is passed into that through {{para|HOOK_NESTED_ASSESS}} from [[Template:Inactive WikiProject banner]] which has the line <syntaxhighlight lang=wikitext> |HOOK_NESTED_ASSESS = ([[Wikipedia:WikiProject Council/Guide#Dealing with inactive WikiProjects|{{#if:{{{status|}}}|{{ucfirst:{{{status}}}}}|Inactive}}]])</syntaxhighlight> Should we add the space in [[Template:WPBannerMeta/core]] as a simple space: <syntaxhighlight lang=wikitext>}} {{{HOOK_NESTED_ASSESS|}}}</syntaxhighlight> or in [[Template:Inactive WikiProject banner]] as an encoded space: <syntaxhighlight lang=wikitext> |HOOK_NESTED_ASSESS =  ([[Wikipedia:WikiProject Council/Guide#Dealing with inactive WikiProjects|{{#if:{{{status|}}}|{{ucfirst:{{{status}}}}}|Inactive}}]])</syntaxhighlight> Opinions? --[[User:Redrose64|<span style="color:#a80000; background:#ffeeee; text-decoration:inherit">Red</span>rose64]] 🌹 ([[User talk:Redrose64|talk]]) 11:22, 10 June 2023 (UTC)
:Either works. I just did the latter and it does look better — Martin <small>([[User:MSGJ|MSGJ]] · [[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]] 🌹 ([[User talk:Redrose64|talk]]) 16:00, 10 June 2023 (UTC)
== Module: Format ==
{{moved from|Module talk:WikiProject banner|2=<span class="nowrap">—'''[[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'' — Martin <small>([[User:MSGJ|MSGJ]] · [[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. — Martin <small>([[User:MSGJ|MSGJ]] · [[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? — Martin <small>([[User:MSGJ|MSGJ]] · [[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. — Martin <small>([[User:MSGJ|MSGJ]] · [[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. — Martin <small>([[User:MSGJ|MSGJ]] · [[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. — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 13:37, 15 June 2023 (UTC)
:Module is now ready to deploy. — Martin <small>([[User:MSGJ|MSGJ]] · [[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. — Martin <small>([[User:MSGJ|MSGJ]] · [[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]
:::— Martin <small>([[User:MSGJ|MSGJ]] · [[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 — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 21:13, 22 June 2023 (UTC)
== Mobile Issue ==
Since the recent update, no WikiProject banners are viewable on mobile, being replaced with horizontal yellow lines. This affects all WikiProjects. Please fix this quickly! [[User:QuicoleJR|QuicoleJR]] ([[User talk:QuicoleJR|talk]]) 15:22, 23 June 2023 (UTC)
:{{ping|PresN}} You seem like you know a lot about the banners. Any ideas here? [[User:QuicoleJR|QuicoleJR]] ([[User talk:QuicoleJR|talk]]) 20:44, 24 June 2023 (UTC)
::I just worked out some configuration, no idea about the code itself. Did it work before, though? There's a big template on the doc page for this template saying "This template does not display in the mobile view of Wikipedia; it is desktop only. Read the documentation for an explanation." The documentation doesn't seem to have an explanation, though? --'''[[User:PresN|<span style="color:green">Pres</span>]][[User talk:PresN|<span style="color:blue">N</span>]]''' 00:25, 25 June 2023 (UTC)
:::That said, that warning was [https://en.wikipedia.org/w/index.php?title=Template:WPBannerMeta/doc&diff=prev&oldid=978417297 put on] by a driveby editor with no further explanation in 2020. Also, I just pulled up [[Talk:Doom (1993 video game)]], and while the wikiproject boxes don't work (just the borders with no content or height), the Vital article template does show up, as does the overall Bannershell box (but with a ''tiny'' icon, so that's a bug too). I guess, {{u|QuicoleJR}} can you verify that it was working for you on mobile before the update? {{u|MSGJ}} was your understanding that mobile is not supported for this template? --'''[[User:PresN|<span style="color:green">Pres</span>]][[User talk:PresN|<span style="color:blue">N</span>]]''' 00:30, 25 June 2023 (UTC)
::::Ok, yeah, [[Template_talk:WPBannerMeta/Archive_10#Mobile]] says that it was suppressed on mobile as far back as 2015. So the issue is not that its broken on mobile suddenly, it's that it shows up at all. --'''[[User:PresN|<span style="color:green">Pres</span>]][[User talk:PresN|<span style="color:blue">N</span>]]''' 00:32, 25 June 2023 (UTC)
:::::It was fully visible before the recent update. [[User:QuicoleJR|QuicoleJR]] ([[User talk:QuicoleJR|talk]]) 00:33, 25 June 2023 (UTC)
::::::Hmm, digging through the code, and it seems like the new Lua code adds class=tmbox to the wikiproject banners (so they get suppressed), but not the overall box, while the old WPBannerMeta/core subtemplate used to put it on the box overall. Don't know why it would show up for you before, though? Either way, I think that it's possibly missing on the overall box, but we should wait for MSGJ to say what they intended to happen on mobile. --'''[[User:PresN|<span style="color:green">Pres</span>]][[User talk:PresN|<span style="color:blue">N</span>]]''' 00:38, 25 June 2023 (UTC)
:::::::There was no intention to change any of the display. I will have a look through the code now. — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 18:37, 25 June 2023 (UTC)
:::::::Please clarify what you mean by "the box overall". Which line of code are you looking at? — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 18:50, 25 June 2023 (UTC)
::::::::Just wondering if it's anything to do with [[Module:WikiProject_banner#L-579|line 579]]? -- [[User:WOSlinker|WOSlinker]] ([[User talk:WOSlinker|talk]]) 22:37, 25 June 2023 (UTC)
:::::::::Not sure where the css('height', '0') came from - looks like it can safely be removed. I can't see any difference in mobile view. @[[User:QuicoleJR|QuicoleJR]]: any chance of a screenshot to show what you are seeing? Which browser are you using, etc.? — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 07:23, 26 June 2023 (UTC)
::::::::::{{multiple image |align = right |image1 = Thin line WPBM banners - inside WPBS.jpg |caption1 = At [[Talk:Doom (1993 video game)]], WP banners inside shell appear as thin lines, just below vital banner. |image2 = Thin line WPBM banners - outside WPBS.jpg |caption2 = At this talk page, the only WP banner appear as thin line, between {{tl|central}} and number of formatting errors. |footer_align=center |footer = Demonstration of thin line problems. }}
::::::::::@[[User:MSGJ|MSGJ]]: Here are some screenshots. <span class="nowrap">—'''[[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> 08:00, 26 June 2023 (UTC)
:::::::::::Thanks for that, very helpful. Not seeing anything like that on Chrome for mobile. What browser is that? — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 08:04, 26 June 2023 (UTC)
::::::::::::I'm on Chrome version 113.0.5672.132 on Android 13, Samsung Galaxy M13 5G. <span class="nowrap">—'''[[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> 08:07, 26 June 2023 (UTC)
::::::::::::BTW, I use the Google app. Not Chrome, just plain Google. [[User:QuicoleJR|QuicoleJR]] ([[User talk:QuicoleJR|talk]]) 14:14, 26 June 2023 (UTC)
::::::::{{re|MSGJ}} I'm wrong, I was referring to how [[Template:WPBannerMeta/core]] puts the tmbox css class on the table element itself and I didn't see that in the Lua code, but it's there in the actual html so I must have just missed it. --'''[[User:PresN|<span style="color:green">Pres</span>]][[User talk:PresN|<span style="color:blue">N</span>]]''' 00:19, 26 June 2023 (UTC)
{{ping|MSGJ|PresN}} It appears to be working now. Thanks for the help! [[User:QuicoleJR|QuicoleJR]] ([[User talk:QuicoleJR|talk]]) 14:18, 26 June 2023 (UTC)
:The only thing I changed was to remove the css('height', '0') so you can thank @[[User:WOSlinker|WOSlinker]] for that — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 14:32, 26 June 2023 (UTC)
== Importance as ??? since module switch ==
{{Ping|MSGJ}} I don't know how wide spread for other project banners, but {{tl|WikiProject Video games}} is showing ???s for importance on all pages that have purged. See [[Talk:Diablo IV]] for an immediate example. {{Ping|Kung Fu Man}} noticed and brought to my attention on Discord. -- [[User:Ferret|ferret]] ([[User_talk:Ferret|talk]]) 00:21, 23 June 2023 (UTC)
:I can see on e.g. [[Talk:Doom (1993 video game)]] that it's not affecting all projects; presumably it is because video games has |QUALITY_CRITERIA=custom in its template while others do not. --'''[[User:PresN|<span style="color:green">Pres</span>]][[User talk:PresN|<span style="color:blue">N</span>]]''' 01:19, 23 June 2023 (UTC)
::Nope, can't be that- [[Talk:Final Fantasy XVI]] has importance not working for Video games but working for Square Enix, but both templates use |QUALITY_CRITERIA=custom. --'''[[User:PresN|<span style="color:green">Pres</span>]][[User talk:PresN|<span style="color:blue">N</span>]]''' 01:31, 23 June 2023 (UTC)
:::It's not that, it's the importance mask subpage ({{tl|WikiProject Video games/importance}}- removing it (as I just did in the template's subpage) fixes it. For some reason, ours was subst'd (by MSGJ, actually) years back instead of using {{tl|Importance mask}} like every other project that has a custom mask, so I'll play with it to figure out how to replicate it (e.g. figure out what we even have custom to start with, there's no doc page). --'''[[User:PresN|<span style="color:green">Pres</span>]][[User talk:PresN|<span style="color:blue">N</span>]]''' 01:50, 23 June 2023 (UTC)
::::Ok, fixed. As far as I can tell, there was something odd in how it got subst'd that meant it returned some parameters as null/nil, and Lua choked on it where the standard template code didn't? Maybe? Anyway normal cases are now looking correct, and we weren't doing anything crazy with importance anyway (turning off Bottom-class and trying to set the default to Unknown, which I think is what it does anyway by default), but I'll keep an eye on it. --'''[[User:PresN|<span style="color:green">Pres</span>]][[User talk:PresN|<span style="color:blue">N</span>]]''' 02:16, 23 June 2023 (UTC)
:Can't really remember what that was for, but there is related discussion at [[Template talk:WikiProject Video games/Archive 2#NA priority for drafts]]. In any case that custom mask does not seem to do anything special so you could probably remove {{para|IMPORTANCE_SCALE|subpage}} from the template and just use the standard mask. — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 06:54, 23 June 2023 (UTC)
=== Astronomy ===
Project ratings, such as at [[Talk:Algol]] for a Top rated article are now displaying as ??? in the banner. Also see Wikipedia:WikiProject Astronomy/Article ratings which is suddenly weird. Is this an effect of the recent update? [[User:StarryGrandma|StarryGrandma]] ([[User talk:StarryGrandma|talk]]) 21:14, 25 June 2023 (UTC)
:Same issue as [[#Importance as ??? since module switch]] above, I presume. <span class="nowrap">—'''[[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> 21:19, 25 June 2023 (UTC)
::Looks like it. Compare the bot generated Astronomy table [[Special:Permalink/1161319714|from June 22]] with that [[Special:Permalink/1161478365|from June 23.]] [[User:StarryGrandma|StarryGrandma]] ([[User talk:StarryGrandma|talk]]) 21:29, 25 June 2023 (UTC)
:Not sure why that template ever worked in the past, but I have now fixed [[Template:WikiProject Astronomy/importance]] and it seems to be working again — Martin <small>([[User:MSGJ|MSGJ]] · [[User talk:MSGJ|talk]])</small> 21:32, 25 June 2023 (UTC)
::Thanks!! [[User:StarryGrandma|StarryGrandma]] ([[User talk:StarryGrandma|talk]]) 21:42, 25 June 2023 (UTC)
=== Chess ===
WikiProject Chess seems to suffer from the same issue, see for example: [[Talk:Blindfold_chess]] --[[User:Mika1h|Mika1h]] ([[User talk:Mika1h|talk]]) 12:46, 1 July 2023 (UTC)
:Fixed. As above, I don't know why or how it would have worked before. – [[User:Jonesey95|Jonesey95]] ([[User talk:Jonesey95|talk]]) 17:05, 1 July 2023 (UTC)
::Working from the results of an insource search, I also fixed six other .../importance pages that had this same problem. That may be all of them. – [[User:Jonesey95|Jonesey95]] ([[User talk:Jonesey95|talk]]) 17:12, 1 July 2023 (UTC)
|