Module talk:WikiProject banner/Archive 13
![]() | This is an archive of past discussions about Module:WikiProject banner. Do not edit the contents of this page. If you wish to start a new discussion or revive an old one, please do so on the current talk page. |
Archive 10 | Archive 11 | Archive 12 | Archive 13 | Archive 14 | Archive 15 | Archive 16 |
Automatic |tf_n=yes based on |TF_n_XYZ?
If someone fills in |TF_n_XYZ=
(e.g. |TF_n_QUALITY=
), would it be sensible to automatically trigger |tf_n=
? I feel as though if you're assigning a taskforce quality rating, that it's safe to presume that taskforce should be activated. This would be particularly helpful for the WP:RATER tool. Since any text in |tf_n=
will activate the section, the template could just include the nested parameters:
|tf_n={{yesno|{{{tf 4|{{{TF_n_LINK|{{{TF_n_NAME|{{{TF_n_NESTED|{{{TF_n_IMAGE|{{{TF_n_TEXT|{{{TF_n_QUALITY|{{{TF_n_MAIN_CAT|¬}}}}}}}}}}}}}}}}}}}}}}}}|yes|¬=¬}}
Thoughts? T.Shafee(Evo&Evo)talk 12:24, 1 May 2020 (UTC)
|TF_n_QUALITY=
is set at the project template, but the|tf_n=
is set at each article. The quality is just inherited from the main quality rating of that article; it is not specified for each task force. — Martin (MSGJ · talk) 07:44, 2 May 2020 (UTC)- @Evolution and evolvability: just wondering if my answer made any sense? — Martin (MSGJ · talk) 08:10, 5 May 2020 (UTC)
- @MSGJ:. Woops, I meant to use Template:TF n IMP rather than
|TF_n_QUALITY=
as the example. Because currently, if Template:TF n isn't filled in, the template will ignore Template:TF n IMP. The template I'm working on is{{WikiProject_Molecular_Biology}}
. - Example:
{{WikiProject Molecular Biology |class=Stub |importance=Low |RNA-imp=high |MCB-imp=low}}
returns:
- @MSGJ:. Woops, I meant to use Template:TF n IMP rather than
{{WikiProject banner shell}}
template instead of this project banner. See WP:PIQA for details.Molecular Biology Stub‑class Low‑importance | ||||||||||
|
- but should really return:
{{WikiProject banner shell}}
template instead of this project banner. See WP:PIQA for details.Molecular Biology: Genetics / Biophysics Stub‑class Low‑importance | ||||||||||||||||
|
- So the query is more about whether we can automatically assume
|TF_n=
is yes if any of the|TF_n_XYZ=
parameters are filled. T.Shafee(Evo&Evo)talk 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
|biophysics-imp=
is set to any value, then we should assume that|biophysics=yes
? That would be fairly simple to implement. Are there any possible side effects of doing this? What if|biophysics-imp=cheesecake
, i.e. an unrecognised value - should that trigger the taskforce as well? — Martin (MSGJ · talk) 13:38, 5 May 2020 (UTC)- On this matter, I occasionally see a parameter pair compressed into a single one. Take for instance Talk:László Szőcs - here, the
{{WikiProject Football}}
has|variants=mid
which is not-quite invalid - it is treated as if it were|variants=yes
but I suspect that the intention was|variants=yes
|variants-importance=mid
. --Redrose64 🌹 (talk) 20:51, 13 May 2020 (UTC)- I've not need that before, but it is efficient. Currently this is not recognised by the template, but it might be logical to make the taskforce importance default to the value of the taskforce activiation parameter? — Martin (MSGJ · talk) 06:18, 14 May 2020 (UTC)
- On this matter, I occasionally see a parameter pair compressed into a single one. Take for instance Talk:László Szőcs - here, the
- 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
- So the query is more about whether we can automatically assume
Protected edit request on 19 May 2020
This edit request to Template:WPBannerMeta/core has been answered. Set the |answered= parameter to no to reactivate your request. |
Please change Template:WPBannerMeta/core to Template:WPBannerMeta/core/sandbox (+protection template) diff. This change makes it so that the JS for collapsible is initialized slightly sooner and bypasses the collapsible to mw-collapsible proxy wrapper of en.wp. —TheDJ (talk • contribs) 08:31, 19 May 2020 (UTC)
- I put a test on Template:WPBannerMeta/testcases. The alignment is slightly different in the new version, but it is not an issue. — Martin (MSGJ · talk) 08:42, 20 May 2020 (UTC)
- Done no other comments so I have made the change. If the alignment change is worrying anyone we can revert/discuss — Martin (MSGJ · talk) 11:16, 22 May 2020 (UTC)
Detecting conflicts in class values
Is there a way to identify conflicts between a page's assigned class value and what would otherwise be automatically detected? E.g., a redirect or a page in the Category namespace tagged as stub-class. --Paul_012 (talk) 23:58, 9 March 2020 (UTC)
- Not currently, but it would be simple enough to code on a particular project's banner — Martin (MSGJ · talk) 21:47, 10 March 2020 (UTC)
- Thanks. It's not needed so much that I'd ask for an actual implementation; just something that I thought would be nice to have. --Paul_012 (talk) 14:54, 12 March 2020 (UTC)
- We've only used automatic detection of a page's class value if no class is defined. (If the class is defined then this will always be used.) I think this is the right approach in general, but any project can change this default behaviour by using a custom class mask. — Martin (MSGJ · talk) 23:03, 5 May 2020 (UTC)
- @MSGJ: There probably are a few other cases where it might be useful to do automatic detection. For example, if an article is in mainspace but is tagged as "Draft class", it certainly means that whoever moved it to mainspace forgot to remove that it was a draft, and it should be treated as if the class were left undefined. --Ahecht (TALK
PAGE) 21:30, 31 May 2020 (UTC)
- @MSGJ: There probably are a few other cases where it might be useful to do automatic detection. For example, if an article is in mainspace but is tagged as "Draft class", it certainly means that whoever moved it to mainspace forgot to remove that it was a draft, and it should be treated as if the class were left undefined. --Ahecht (TALK
- We've only used automatic detection of a page's class value if no class is defined. (If the class is defined then this will always be used.) I think this is the right approach in general, but any project can change this default behaviour by using a custom class mask. — Martin (MSGJ · talk) 23:03, 5 May 2020 (UTC)
- Thanks. It's not needed so much that I'd ask for an actual implementation; just something that I thought would be nice to have. --Paul_012 (talk) 14:54, 12 March 2020 (UTC)
Portal
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: 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)|{{#ifexist: Portal:{{{PORTAL|}}}
- Never mind I see it was undone a few days later — Martin (MSGJ · talk) 18:25, 6 October 2020 (UTC)
Inactive project layout
The following is extremely jarring when encountered
This non-existent page does not require a rating on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | ||||||||||||||||||||||||||||||||||||||||||
|
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)
- So far, this is looking beyond my skills. Headbomb {t · c · p · b} 18:10, 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)
Okay I think I'll wait for someone (is WOSlinker still around??) to check my changes to these templates:
- Template:WPBannerMeta/sandbox
- Template:WPBannerMeta/core/sandbox
- Template:Inactive WikiProject banner/sandbox
— 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)
This non-existent page does not require a rating on Wikipedia's content assessment scale.
It is of interest to the following WikiProjects:British Museum This article relates to the British Museum. Please copy assessments of the article from the most major WikiProject template to this one, as needed. ??? This article has not yet received a rating on the importance scale. British Museum This article relates to the British Museum. Please copy assessments of the article from the most major WikiProject template to this one, as needed. ??? This article has not yet received a rating on the importance scale. Resource Exchange If you have access to this resource, or if you need to verify a citation from this reference, check out WikiProject Resource Exchange. Resource Exchange If you have access to this resource, or if you need to verify a citation from this reference, check out WikiProject Resource Exchange. - 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)
- 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)
- Looking good now. -- WOSlinker (talk) 22:32, 1 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)
There is one that still stands out, Template:MILHISTCouple more
This non-existent page does not require a rating on Wikipedia's content assessment scale.
It is of interest to the following WikiProjects:British Museum This article relates to the British Museum. Please copy assessments of the article from the most major WikiProject template to this one, as needed. ??? This article has not yet received a rating on the importance scale. British Museum This article relates to the British Museum. Please copy assessments of the article from the most major WikiProject template to this one, as needed. ??? This article has not yet received a rating on the importance scale. Military history NA‑class This article is within the scope of the Military history WikiProject. If you would like to participate, please visit the project page, where you can join the project and see a list of open tasks. To use this banner, please see the full instructions. NA This article has been rated as NA-class on the project's quality scale. Additional information: / This article is not currently associated with a task force. To tag it for one or more task forces, please template instructions to the template call. the task force codes from theMilitary history NA‑class This article is within the scope of the Military history WikiProject. If you would like to participate, please visit the project page, where you can join the project and see a list of open tasks. To use this banner, please see the full instructions. NA This article has been rated as NA-class on the project's quality scale. Additional information: / This article is not currently associated with a task force. To tag it for one or more task forces, please template instructions to the template call. the task force codes from theResource Exchange If you have access to this resource, or if you need to verify a citation from this reference, check out WikiProject Resource Exchange. Physics WikiProject Physics, a collaborative effort to improve the coverage of Physics on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks. This article is within the scope of??? This article has not yet received a rating on the project's importance scale. U.S. Roads Template‑class U.S. Roads WikiProject, an attempt to build a comprehensive and detailed guide to state highways and other major roads in the United States. If you would like to participate, you can edit the article attached to this page, or visit the project page, where you can join the project and/or contribute to the discussion. This page is within the scope of theTemplate This article has been rated as Template-class on the project's quality scale. ??? This article has not yet received a rating on the project's importance scale. Notes and alertsMathematics WikiProject Mathematics, a collaborative effort to improve the coverage of mathematics on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks. This article is within the scope of??? This article has not yet received a rating on the project's priority scale.
Template:WikiProject Citizendium Porting/sandboxCitizendium Porting (inactive) This article is within the scope of WikiProject Citizendium Porting, a project which is currently considered to be inactive. 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)
- WOSlinker's changes are a tweak to the spacing in the template, that's all — Martin (MSGJ · talk) 19:39, 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)
- 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)
- 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)
- @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)
- Milhist is just one of three remaining WikiProject banners that do not use
- Some changes in the sandbox should anyone wish to review. -- WOSlinker (talk) 16:32, 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)
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)
WikiProject Portals
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)
I'll see if I can work up a version which requires less "forking" — Martin (MSGJ · talk) 14:00, 22 October 2020 (UTC)
The main problem (as Evad mentioned above) is this code from /qualityscale:
{{#ifeq:{{pagetype|{{{class|}}}}}|article |has {{#if:{{{class|}}} |been rated as '''{{{class}}}-Class''' |not yet received a rating }} |does not require a rating }}
which will always assume that a non-article does not require a rating — Martin (MSGJ · talk) 15:13, 22 October 2020 (UTC)
Follow-up: I have converted the portals project banner back to use this meta-template, but I hooked customised versions of /qualityscale and /importancescale instead. It looks to be working correctly — Martin (MSGJ · talk) 13:51, 28 October 2020 (UTC)
Alignment
When the image is narrower than the class rating, and notes are used, the columns do not align nicely.
Portals (Rated Complete-class, Low-importance) This page is within the scope of WikiProject Portals, a collaborative effort to improve portals on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks. Complete This page does not require a rating on the project's quality scale. Low This page has been rated as Low-importance on the project's importance scale. See also: List of Portals 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 (MSGJ · talk) 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. --Izno (talk) 15:35, 26 October 2020 (UTC)
- The pertinent code is
<tr><td colspan="3" style="padding:0;">{{#ifexpr:{{#switch:{{{auto}}}|yes|stub={{#ifeq:{{{class|}}}|Stub|1|0}}|inherit|length={{#if:{{{class|}}}|1|0}}|0}}+ {{#ifeq:{{{attention}}}|yes|1|0}}+ {{#ifeq:{{{infobox}}}|yes|1|0}}+ {{#ifeq:{{{note 1}}}|yes|{{#if:{{{N_1_TEXT|}}}|1|0}}|0}}+ {{#ifeq:{{{note 2}}}|yes|{{#if:{{{N_2_TEXT|}}}|1|0}}|0}}+ {{#ifeq:{{{note 3}}}|yes|{{#if:{{{N_3_TEXT|}}}|1|0}}|0}}+ {{#ifeq:{{{note 4}}}|yes|{{#if:{{{N_4_TEXT|}}}|1|0}}|0}}+ {{#ifeq:{{{note 5}}}|yes|{{#if:{{{N_5_TEXT|}}}|1|0}}|0}}+ {{#ifeq:{{{note 6}}}|yes|{{#if:{{{N_6_TEXT|}}}|1|0}}|0}}+ {{#ifeq:{{{note 7}}}|yes|{{#if:{{{N_7_TEXT|}}}|1|0}}|0}}+ {{#ifeq:{{{note 8}}}|yes|{{#if:{{{N_8_TEXT|}}}|1|0}}|0}}+ {{#ifeq:{{{note 9}}}|yes|{{#if:{{{N_9_TEXT|}}}|1|0}}|0}}+ {{#ifeq:{{{note 10}}}|yes|{{#if:{{{N_10_TEXT|}}}|1|0}}|0}}+ {{{HOOK_COLLAPSED|0}}}>{{#iferror:{{#expr:0+{{{COLLAPSED|¬}}}*1}}|{{#ifeq:{{{small}}}|yes|0|2}}}} |<table class="collapsible collapsed" style="width:100%; background:transparent;"> <tr><th colspan="3" style="text-align:left; padding:0.2em 2px 0.2em 0"> {{{COLLAPSED_HEAD}}}</th></tr> |<table style="width:100%; background:transparent;"> }}
- In /core. A fix for that is not obvious to me (because this template still needs to come into the 21st century with its table layout and wikitext backend -> div or even flow/grid and Lua), though it may be possible in CSS rather than changing the structure. --Izno (talk) 15:46, 26 October 2020 (UTC)
- In many banners these notes are in a collapsed table, so a sub-table is clearly needed. But when they are not collapsed (like the example above) is there any reason why the sub-table is needed? — Martin (MSGJ · talk) 17:30, 26 October 2020 (UTC)
- I can't see a reason why. --Izno (talk) 17:35, 26 October 2020 (UTC)
- I may have a play in the sandbox then — Martin (MSGJ · talk) 08:47, 27 October 2020 (UTC)
- I can't see a reason why. --Izno (talk) 17:35, 26 October 2020 (UTC)
- In many banners these notes are in a collapsed table, so a sub-table is clearly needed. But when they are not collapsed (like the example above) is there any reason why the sub-table is needed? — Martin (MSGJ · talk) 17:30, 26 October 2020 (UTC)
Testing sandbox code below. Uncollapsed version does not start a new table, so columns line up. — Martin (MSGJ · talk) 22:23, 27 October 2020 (UTC)
Portals (Rated Substantial-class, Low-importance) This page is within the scope of WikiProject Portals, a collaborative effort to improve portals on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks. Substantial This page does not require a rating on the project's quality scale. Low This page has been rated as Low-importance on the project's importance scale. See also: List of Portals This page was designated as a featured portal before the process was retired in 2017. Portals (Rated Substantial-class, Low-importance) This page is within the scope of WikiProject Portals, a collaborative effort to improve portals on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks. Substantial This page does not require a rating on the project's quality scale. Low This page has been rated as Low-importance on the project's importance scale. See also: List of Portals This subpage is currently inactive and is retained for historical reference. This page was designated as a featured portal before the process was retired in 2017. @Izno: would you double-check my code please (diff)? — Martin (MSGJ · talk) 13:31, 28 October 2020 (UTC)
- @MSGJ: Yes, looks fine. (Rough, but such is the nature of wikitext.) --Izno (talk) 14:09, 28 October 2020 (UTC)
- One day it will get converted to Lua! — Martin (MSGJ · talk) 14:13, 28 October 2020 (UTC)
- I'm on a kick right now, so it might be me that starts it. (No promises.) --Izno (talk) 14:15, 28 October 2020 (UTC)
- Sounds good! I'll do what I can to simplify the template in the meantime (like #Small) which should make it a bit easier for you — Martin (MSGJ · talk) 14:51, 28 October 2020 (UTC)
- I'm on a kick right now, so it might be me that starts it. (No promises.) --Izno (talk) 14:15, 28 October 2020 (UTC)
- One day it will get converted to Lua! — Martin (MSGJ · talk) 14:13, 28 October 2020 (UTC)
This is now Done — Martin (MSGJ · talk) 14:51, 28 October 2020 (UTC)
Small
It's a long time since I found any project using the small format for WikiProject banners. Would it be safe to turn this feature off? — Martin (MSGJ · talk) 08:52, 27 October 2020 (UTC)
- I have found a few in the last year or so. It's not really a per-project thing, but used as an alternative to WPBS when a talk page has several notices and a long TOC. --Redrose64 🌹 (talk) 23:26, 27 October 2020 (UTC)
We used to have a tracking category for this, but I couldn't find it ...— Martin (MSGJ · talk) 13:13, 28 October 2020 (UTC)- Found it: Category:Small talk page templates. There are 0 which is about 0% of all pages using project banners. I will do some further analysis shortly — Martin (MSGJ · talk) 13:26, 28 October 2020 (UTC)
In a random sample of 20 pages in that category, I found that on half, the project banners were inside {{WPBS}} so the format wasn't small anyway. Of the rest, I judge that all would look as good or better with the small parameter removed. Two pages (Talk:Split infinitive and Talk:Business plan) look distinctly odd with mixtures of different styles. The projects using the small parameter were WP:1.0 (on 9 pages), biography (on 3 pages), guild of copy editors (2 pages) plus a few others. Based on this limited analysis I think the small format should be removed forthwith — Martin (MSGJ · talk) 13:46, 28 October 2020 (UTC)
- Generally agree, but I think it would be prudent to remove the parameter from the pages that have it first so that there is minimal disruption with possibly odd locations such as you found on those example talk pages (and/or wrap the project tags in WPBS). --Izno (talk) 14:14, 28 October 2020 (UTC)
- Not totally convinced that would be a good use of my time :) On none of the pages I looked at, was removing the small format going to be "disruptive" in any way. Yes, there were a few which would benefit from wrapping in WPBS but removing the small would not make them look worse than they are now. What I could do, is to remove the functionality from a few banner templates (e.g. 1.0 and biography) and if that doesn't cause any upset then we could assume that no one will miss the feature. — Martin (MSGJ · talk) 14:55, 28 October 2020 (UTC)
- Kill small. Headbomb {t · c · p · b} 15:06, 28 October 2020 (UTC)
- Definitely not convinced myself, I just like to forestall the complaints that will appear. But go for it if you want to field those. :P --Izno (talk) 16:20, 28 October 2020 (UTC)
- Not totally convinced that would be a good use of my time :) On none of the pages I looked at, was removing the small format going to be "disruptive" in any way. Yes, there were a few which would benefit from wrapping in WPBS but removing the small would not make them look worse than they are now. What I could do, is to remove the functionality from a few banner templates (e.g. 1.0 and biography) and if that doesn't cause any upset then we could assume that no one will miss the feature. — Martin (MSGJ · talk) 14:55, 28 October 2020 (UTC)
Removed today. I have left a temporary message on /templatepage to advise editors that this parameter is now obsolete (if anyone reads those things) — Martin (MSGJ · talk) 12:01, 29 October 2020 (UTC)
Param omission for hooks/taskforces
Moved from Template talk:WPBannerMeta/hooksThe 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 = |TASKFORCE_TEMPLATE = |IMPORTANCE_SCALE_NAME = |b1= |b2= |b3= |b4= |b5= |b6= |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've added these to the documentation page. @WOSlinker: could you add a description for TASKFORCE_TEMPLATE? — Martin (MSGJ · talk) 19:16, 29 October 2020 (UTC)
- I've done TASKFORCE_TEMPLATE now. -- WOSlinker (talk) 22:34, 29 October 2020 (UTC)
- I've added these to the documentation page. @WOSlinker: could you add a description for TASKFORCE_TEMPLATE? — Martin (MSGJ · talk) 19:16, 29 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)
Priority or priority
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)
I have renamed those maths categories with a lowercase "p" and reverted this change in the meta template — Martin (MSGJ · talk) 12:06, 30 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)