Jump to content
Wikipedia The Free Encyclopedia

Module talk:WikiProject banner

Page contents not supported in other languages.
Add topic
From Wikipedia, the free encyclopedia
Module:WikiProject banner is indefinitely protected from editing as it is a heavily used or highly visible module. Substantial changes should first be proposed and discussed here on this page. If the proposal is uncontroversial or has been discussed and is supported by consensus, editors may use {{edit protected }} to notify an administrator to make the requested edit.

If you wish to discuss the behaviour of the project banner inside the banner shell, then you may wish to post at Template talk:WikiProject banner shell instead.
This module does not require a rating on Wikipedia's content assessment scale.
It is of interest to the following WikiProjects:
WikiProject icon This module relates to the WikiProject Council , a collaborative effort regarding WikiProjects in general. If you would like to participate, please visit the project discussion page.CouncilWikipedia:WikiProject CouncilTemplate:WikiProject CouncilCouncil

icon To-dolistfor Module:WikiProject banner:edit ·history ·watch ·refresh ·Updated 2026年05月04日

  • DOC=auto Started
    • a class
    • collaboration-candidate, collaboration-current, collaboration-past
    • peer review, old peer review
    • QII_FORMAT
  • Fix mobile frontend display issues (Template talk:WPBannerMeta#Mobile version)
  • Document |PROJECT_STATUS=
  • Add check for deprecated parameters
    • QUALITY_SCALE
    • b1, etc.


Archives
Index 1, 2, 3, 4, 5, 6, 7, 8, 9, 10
11, 12, 13, 14, 15, 16

This page has archives.Topics inactive for 120 days are automatically archived 1 or more at a time by Lowercase sigmabot III if there are more than 4.

IMAGE_LEFT_CLASS may be needed

[edit ]
Latest comment: 2 months ago 3 comments3 people in discussion
This edit request has been answered. Set the |answered= parameter to no to reactivate your request.

Please see this edit, which hacked in a class for the IMAGE_LEFT image so that the image would show correctly in dark mode (white on black instead of the previous black on black). It points out the potential need for IMAGE_LEFT_CLASS, and maybe some other image CLASS parameters, in this module/template. – Jonesey95 (talk) 19:38, 25 May 2026 (UTC) Reply

@Jonesey95: Implemented in the sandbox as |IMAGE_LEFT_CLASS=, |IMAGE_RIGHT_CLASS=, and |IMAGE_CLASS=. The first two override the third (which applies to both RIGHT and LEFT). Tested at Module talk:WikiProject banner/testcases#Image class.
To the closing admin --- please copy the sandbox to main, being careful to comment out the sandbox at line 3.
hike395 (talk) 18:49, 27 May 2026 (UTC) Reply
Done * Pppery * in solidarity 16:18, 28 May 2026 (UTC) Reply

DOC=auto parameter syntax highlighting

[edit ]
Latest comment: 1 month ago 16 comments2 people in discussion

I created {{para2 }} to apply <syntaxhighlightlang="wikitext">-style highlighting to standalone parameters. It's a very simplified version of {{para }} without all the bells & whistles. Its uses are {{para2|foo}} and {{para2|foo|bar}} only, which create |foo= and |foo=bar, respectively, which cover 98%[citation needed ] of all use cases. Assuming {{para2 }} covers all cases used by Module:WikiProject banner, the only line that needs to be changed appears to be line #13, from this:

returnframe:expandTemplate{title='para',args={parameter,valueor''}}

to this:

returnframe:expandTemplate{title='para2',args={parameter,valueor''}}

~ Tom.Reding (talkdgaf) 11:09, 8 June 2026 (UTC) Reply

What is the benefit? Martin (MSGJ · talk) 12:28, 8 June 2026 (UTC) Reply
For formatting consistency with sections using <syntaxhighlightlang="wikitext">:
{{para|foo|bar}} displays as |foo=bar (current)
{{para2|foo|bar}} displays as |foo=bar (proposed). ~ Tom.Reding (talkdgaf) 13:02, 8 June 2026 (UTC) Reply
Got it. Why not add that feature to {{para }}? Martin (MSGJ · talk) 13:04, 8 June 2026 (UTC) Reply
That was proposed 2 years ago @ Template talk:Parameter#How to syntaxhighlight a standalone parameter?, but rejected due to dark mode incompatibilities, presumably on non-doc pages due to the absence of a non-white background on non-doc pages. See that discussion for more detail and a more accurate interpretation. One of the 2 associated phab tickets is still open. ~ Tom.Reding (talkdgaf) 13:13, 8 June 2026 (UTC) Reply
Why would para2 not suffer the same problems in dark mode? And have you seen the comment from FaviFake on that page? Martin (MSGJ · talk) 07:43, 9 June 2026 (UTC) Reply
Re: dark mode: because para2 would only be used where it isn't a problem, i.e. on documentation pages, and I don't see syntaxhighlight disappearing.
Re: FaviFake: I've responded @ Template talk:Parameter#para2. ~ Tom.Reding (talkdgaf) 10:56, 9 June 2026 (UTC) Reply
I've added it to the sandbox, but not totally convinced this is beneificial. I think for a block of code the coloring is helpful, but for a single parameter it seems unnecessary. Compare examples below Martin (MSGJ · talk) 10:07, 12 June 2026 (UTC) Reply

Current

[edit ]
The WikiProject banner below should be moved to this article's talk page . If this is a demonstration of the template, please set the parameter |category=no to prevent this page being miscategorised.

Proposed

[edit ]
The WikiProject banner below should be moved to this article's talk page . If this is a demonstration of the template, please set the parameter |category=no to prevent this page being miscategorised.

This request is to modify the |DOC=auto portion only. I was not aware of any |para= usages outside of the documentation, so if isolating /doc usage only is difficult, then it might not be worth it.
Documentation is improved by |para2= usage in my option, for example in Module:WikiProject banner#Custom masks. ~ Tom.Reding (talkdgaf) 10:55, 12 June 2026 (UTC) Reply

Okay so you probably want to edit Module:WikiProject banner/templatepage#L-288 instead Martin (MSGJ · talk) 11:50, 12 June 2026 (UTC) Reply
Thanks for the pointer, but I don't know how to do that there. ~ Tom.Reding (talkdgaf) 22:16, 12 June 2026 (UTC) Reply
Please check Template:WikiProject Christianity/sandbox#Parameters and see if it looks good? Martin (MSGJ · talk) 12:29, 17 June 2026 (UTC) Reply
That looks nice. It still looks like all instances of "based on the |class= parameter" need to converted to "based on the |class= parameter".
FYI there is a merger discussion for {{Parameter2 }} into {{Parameter }} happening here. That happened much more quickly than I was expecting. ~ Tom.Reding (talkdgaf) 13:26, 17 June 2026 (UTC) Reply
How's that looking now? Martin (MSGJ · talk) 14:01, 17 June 2026 (UTC) Reply
Great! ~ Tom.Reding (talkdgaf) 14:04, 17 June 2026 (UTC) Reply
Done. Will likely need updating once the merge has completed Martin (MSGJ · talk) 14:16, 17 June 2026 (UTC) Reply

"MAIN_CAT" and config "category" apparent discrepancy

[edit ]
Latest comment: 1 month ago 3 comments2 people in discussion

The documentation says that MAIN_CAT applies the category to "all pages displaying the template", and also says that category on a config page applies to "all articles" (implying article space only, but MAIN_CAT applies to all pages, and this template is placed on talk pages and does not categorize article pages). Is this an error in the documentation? I ask because of this request to apply Category:WikiProject Ice Hockey articles to {{WikiProject Ice Hockey }}. Is there a way to limit categorization to just article talk pages? – Jonesey95 (talk) 18:35, 20 June 2026 (UTC) Reply

The main cat should be for every single page that is tagged by the banner. That shouldn't change. The sub-categories at Category:Ice Hockey articles by quality (the ones with the actual rating) are the ones that limit to only article pages. What should perhaps change wiki-wide (but will be a pain) is the naming convention we use for the meta-categories that hold both articles and non-articles. Gonnym (talk) 03:41, 21 June 2026 (UTC) Reply
OK, I have adjusted the documentation accordingly. The category name is still inaccurate, but it seems to match the other subcategories of Category:Articles by WikiProject. Fixing the names of all of those categories looks like a fun project for someone who is not me. – Jonesey95 (talk) 06:36, 21 June 2026 (UTC) Reply

Protected edit request on 15 July 2026

[edit ]
Latest comment: 17 days ago 6 comments2 people in discussion
This edit request has been answered. Set the |answered= parameter to no to reactivate your request.

As a follow-up to recent changes related to image CSS classes, please apply Special:Diff/1356645927/1364186968 (追記) Special:Diff/1356645927/1364427602 (new, better diff —⁠andrybak (talk) 13:08, 16 July 2026 (UTC) ) (追記ここまで) to:Reply

  1. Remove unused function display_error. Last usage of it was removed in Special:Diff/1317754418.
  2. Remove unused local variable template_outside_shell. It has been unused since its introduction in Special:Diff/1247210025.
  3. Pass args.IMAGE_LEFT_CLASS or args.IMAGE_CLASS as fifth parameter (class) into the image function for the nested banner case. This fixes images of collapsed nested WikiProject banners, which pass |IMAGE_LEFT_CLASS=skin-invert to the module.

Thanks. —⁠andrybak (talk) 01:34, 15 July 2026 (UTC) Reply

All changes look good to me. Thanks for your attention Martin (MSGJ · talk) 07:35, 15 July 2026 (UTC) Reply
In the meantime, I stumbled upon another affected template – {{WikiProject Infoboxes }}. Icon for uncollapsed mode is inverted, but nested/collapsed on the talk page is not inverted. —⁠andrybak (talk) 03:21, 16 July 2026 (UTC) Reply
Found another place in the module, where an image class isn't applied – "note images" that are gathered into nested_ratings.
I changed the diff link above to the new diff with the fix and with formatting changes by MSGJ. —⁠andrybak (talk) 13:08, 16 July 2026 (UTC) Reply
Done Martin (MSGJ · talk) 14:21, 17 July 2026 (UTC) Reply

Category:WikiProject templates with unknown parameters categorization

[edit ]
Latest comment: 1 day ago 2 comments2 people in discussion

Could we include problematic pages in their appropriate subcat (if it exists) and in the parent category? This would make it more obvious to maintainers that one of the 500+ subcats is getting filled (or emptied). Courtesy ping to Harryboyles who does a lot of work in this area. ~ Tom.Reding (talkdgaf) 14:05, 1 August 2026 (UTC) Reply

Thanks for the courtecy ping. I'm personally not fussed either way as I can use AutoWikiBrowser's List comparer functionality if I wanted to reproduce the current arrangement and filter out pages that appear in a particular WikiProject's subcategory. Harryboyles 01:30, 2 August 2026 (UTC) Reply

AltStyle によって変換されたページ (->オリジナル) /