Template talk:WPBannerMeta

Active discussions
WikiProject Council  
This template relates to the WikiProject Council, a collaborative effort regarding WikiProjects in general. If you would like to participate, please visit the project discussion page.

Inactive project layoutEdit

The following is extremely jarring when encountered

The inactive project should be center-aligned just like the active ones. And the (Inactive) links should be at the same place as the (Raged X-class). Headbomb {t · c · p · b} 16:06, 1 October 2020 (UTC)

Okay, looks good to me. Can you code it in the sandbox? — Martin (MSGJ · talk) 16:33, 1 October 2020 (UTC)
It's something to do with Template:Inactive WikiProject banner I think. I figured someone here would know where the code was hosted and have a quick fix, but I suppose I can dig deeper. It will likely take me some time, as I don't know how this template is structured, or how it interacts with {{WPBS}}. Headbomb {t · c · p · b} 17:59, 1 October 2020 (UTC)
So far, this is looking beyond my skills. Headbomb {t · c · p · b} 18:10, 1 October 2020 (UTC)
How's that looking on your browser? — Martin (MSGJ · talk) 19:34, 1 October 2020 (UTC)
@MSGJ: looks tip top on every browser I have tried (Chrome, Firefox). Nothing displays on mobile though, but I believe that's normal behaviour. Headbomb {t · c · p · b} 19:35, 1 October 2020 (UTC)

Okay I think I'll wait for someone (is WOSlinker still around??) to check my changes to these templates:

— Martin (MSGJ · talk) 19:52, 1 October 2020 (UTC)

(If I was clever I would add the diff links, but I'm not) — Martin (MSGJ · talk) 19:53, 1 October 2020 (UTC)
@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. -- WOSlinker (talk) 20:04, 1 October 2020 (UTC)
Ah yes, good catch. I was trying to simplify the logic in /core so I wouldn't need to work out the same thing three times! — Martin (MSGJ · talk) 20:58, 1 October 2020 (UTC)
Reverted to my previous version. Hopefully looking better now. Good to see you by the way. This is like the old days ... — Martin (MSGJ · talk) 21:00, 1 October 2020 (UTC)
Looking good now. -- WOSlinker (talk) 22:32, 1 October 2020 (UTC)
I added further testcases. Feel free to check {{WikiProject Resource Exchange}} / {{WikiProject Resource Exchange/sandbox}}. Headbomb {t · c · p · b} 02:57, 2 October 2020 (UTC)
That's the normal expected behaviour because that template doesn't do any assessments — Martin (MSGJ · talk) 07:12, 2 October 2020 (UTC)
Unless you're suggesting that every project should be right-aligned at the middle? — Martin (MSGJ · talk) 12:13, 2 October 2020 (UTC)
That is actually much easier to implement that way. How are we looking now? — Martin (MSGJ · talk) 12:23, 2 October 2020 (UTC)
Yes, Wikiproject names should always be centered in the usual style. Looks great here. Headbomb {t · c · p · b} 13:26, 2 October 2020 (UTC)

  Deployed, now just sit back and wait for the error reports to come in! — Martin (MSGJ · talk) 21:22, 2 October 2020 (UTC)

Woohoo, party time. Headbomb {t · c · p · b} 21:46, 2 October 2020 (UTC)

Couple moreEdit

There is one that still stands out, Template:MILHIST

Headbomb {t · c · p · b} 14:35, 4 October 2020 (UTC)

Milhist doesn't use this template, so can't do anything about that! — Martin (MSGJ · talk) 15:19, 4 October 2020 (UTC)
Well, it could be converted, or its html adjusted, or whatever. Headbomb {t · c · p · b} 15:23, 4 October 2020 (UTC)
Some changes in the sandbox should anyone wish to review. -- WOSlinker (talk) 16:32, 4 October 2020 (UTC)
Milhist is just one of three remaining WikiProject banners that do not use {{WPBannerMeta}}, the others being, so far as I know, {{Maths rating}} and {{WikiProject U.S. Roads}} - see Template:WPBannerMeta/Conversion. These held out against the general conversion that occurred 10+ years ago, and even though some considerable time has elapsed, these individual WikiProjects should each be asked to show their consensus before the banner is converted to WPBannerMeta (particularly so in the case of milhist which is both one of the oldest WikiProjects and one of those with the greatest activity). In all that time, the only conversions that I am aware of are {{WikiProject Tropical cyclones}} in July 2011, {{WikiProject Ships}} in August 2012, {{WikiProject Systems}} in September 2012, and {{WikiProject Anime and manga}} in August 2020 - almost eight years since the last one. --Redrose64 🌹 (talk) 19:21, 4 October 2020 (UTC)
WOSlinker's changes are a tweak to the spacing in the template, that's all — Martin (MSGJ · talk) 19:39, 4 October 2020 (UTC)
Yes, looks as though WikiProject U.S. Roads and Maths rating would need tweaking as well. -- WOSlinker (talk) 20:01, 4 October 2020 (UTC)
@Redrose64: You may want to poke in on MATHS; they're discussing that topic right now. WT:WPMATH#Proposed change to Template:Maths rating from 2018. --Izno (talk) 20:45, 4 October 2020 (UTC)
Code looks good WOSlinker. Question: because we have homogenised the display of these banners when nested, is it still necessary to use 3 columns with one empty cell? — Martin (MSGJ · talk) 20:06, 4 October 2020 (UTC)
@MSGJ: I've just removed the 3rd column in core/sandbox and it still looks ok, although the center line has moved a little. Does the hidden metadata need to be in the header or would that be better in the main description area? -- WOSlinker (talk) 20:27, 4 October 2020 (UTC)
Can't quite remember. I think it was something to fix a bug in Internet Explorer. Some related discussion at the bottom of Template talk:WPBannerMeta/Archive 6#Template:WikiProjectBoxing. I notice at the moment the second museum banner above is the best because it doesn't move sideways when uncollapsed. So you've done something right! — Martin (MSGJ · talk) 07:11, 5 October 2020 (UTC)
It still moves, just not a whole lot. Headbomb {t · c · p · b} 12:24, 5 October 2020 (UTC)
The current sandbox version with only the 2 table cells in the header seems to work ok in IE11. Also means that there's no need to update those 3 non-WPBannerMeta project banner templates. I'll wait until tommorrow incase there are any other comments and then copy into live. -- WOSlinker (talk) 07:27, 5 October 2020 (UTC)
Looks good from my perpective — Martin (MSGJ · talk) 11:56, 5 October 2020 (UTC)

Seems only US Roads and Maths need a bit of tweaking now. {{Maths rating}}/{{maths banner}} can be merged and converted to a proper {{WikiProject Mathematics}} with the current metabanner though (discussion). Headbomb {t · c · p · b} 14:31, 6 October 2020 (UTC)

I have coded a version in Template:Maths rating/sandbox sandbox and commented over there — Martin (MSGJ · talk) 12:31, 8 October 2020 (UTC)

Param omission for hooks/taskforcesEdit

The following parameters are recognised by Template:WPBannerMeta/hooks/taskforces, but are not listed at Template:WPBannerMeta/hooks/taskforces/doc in the (collapsed) syntax for copypaste:

 |BANNER_NAME           =
 |inherit importance=
 |TF_SIZE               =
  |TF_1_HOOK            =
  |TF_2_HOOK            =
  |TF_3_HOOK            =
  |TF_4_HOOK            =
  |TF_5_HOOK            =
  |TF_6_HOOK            =
  |TF_7_HOOK            =
  |TF_8_HOOK            =
  |TF_9_HOOK            =
  |TF_10_HOOK           =

Is this a deliberate omission? --Redrose64 🌹 (talk) 15:08, 31 July 2020 (UTC)

@Redrose64: that looks like a non-deliberate omission to me — Martin (MSGJ · talk) 21:23, 2 October 2020 (UTC)
Some of those parameters are so rarely used, that they shouldn't be in the copy/paste example, but should be documented. An example is the IMPORTANCE_SCALE_NAME parameter which was there for WikiProject Biography when they used priority rather than importance. -- WOSlinker (talk) 23:04, 2 October 2020 (UTC)


I was just looking at the history of /core. This change looks invalid to me (incorrect syntax) so I'm not sure if it's achieving what it was meant to. — Martin (MSGJ · talk) 09:02, 6 October 2020 (UTC)

Yes, there's a misplaced pipe in one line. Instead of this:
  {{#ifexist: Portal:{{{PORTAL|}}}|
it should have been this:
  |{{#ifexist: Portal:{{{PORTAL|}}}
The purpose, IIRC, was to suppress the display of a redlinked portal at a time when a large number of portals were being deleted without all incoming links being removed. --Redrose64 🌹 (talk) 14:49, 6 October 2020 (UTC)
Never mind I see it was undone a few days later — Martin (MSGJ · talk) 18:25, 6 October 2020 (UTC)

Priority or priorityEdit

WikiProject mathematics seems to be the only project still using priority but all their categories are with an uppercase "p", i.e. Category:Top-Priority mathematics articles. WPBannerMeta supports using priority, but currently uses a lowercase "p", i.e. Category:Top-priority mathematics articles. If the maths banner gets converted, then I suggest we can simply change this over as no other projects should be affected. — Martin (MSGJ · talk) 12:30, 8 October 2020 (UTC)

The other options are hooking /importancescale to HOOK_IMPORTANCE and defining |IMPN= or simply adjusting {{WPBM}} so it accepts the |IMPN= parameter — Martin (MSGJ · talk) 12:38, 8 October 2020 (UTC)
There are also various assessment categories that end in "pages" rather than "articles". See Category:Mathematics articles by quality. -- WOSlinker (talk) 14:02, 8 October 2020 (UTC)

WikiProject PortalsEdit

WikiProject Portals seems to be using a forked copy of the meta template. Does anyone know why? — Martin (MSGJ · talk) 17:53, 12 October 2020 (UTC)

Probably a good idea to ping the forker, @Evad37: Headbomb {t · c · p · b} 18:12, 12 October 2020 (UTC)
If I recall correctly, it was forked mainly so that portals can be assessed for quality and importance according to the portal project's assessment scales, rather than automatically assuming Portal-class/NA-importance, and to map FA/FP ratings to FPo. There might have been some discussion in the archives of the portal project's talk pages - Evad37 [talk] 22:10, 12 October 2020 (UTC)
It might have also been to suppress the "does not require assessment" wording for pages (portals) which do actually require assessment. - Evad37 [talk] 22:43, 12 October 2020 (UTC)
Return to "WPBannerMeta" page.