Jump to content

Module talk:WikiProject banner/Archive 13

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by MSGJ (talk | contribs) at 14:45, 8 September 2023 (comment out). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Protected edit request on 8 February 2021

  1. On {{WPBannerMeta/core}}, at <table class="tmbox tmbox-notice mw-collapsible innercollapse wpb" style="height:0;">, add the following after wpb:
    {{#switch:{{lc:{{{PROJECT_STATUS|}}}}}|inactive=inactive-wikiproject|semi-active|semiactive=semi-active-wikiproject|defunct=defunct-wikiproject|active|#default=}}
  2. In {{WPBannerMeta}}, after |BOTTOM_TEXT = {{{BOTTOM_TEXT|}}}, add the following on a new line:
    |PROJECT_STATUS = {{{PROJECT_STATUS|}}}
  3. At the bottom of {{Inactive WikiProject banner}}, add:
    |PROJECT_STATUS = {{{PROJECT_STATUS|{{#if:{{{status|}}}|{{{status}}}|inactive}}}}}

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. –MJLTalk 21:03, 8 February 2021 (UTC)

 Done, but I've added a class also for the actives also. --Izno (talk) 04:33, 9 February 2021 (UTC)

Protected edit request on 31 March 2021

Remove the line <td class="mbox-empty-cell"></td> from Template:WPBannerMeta/core to resolve an issue with the border when the template is inside {{WikiProject banner shell}}. It was orginally added by User:Happy-melon in revision 301387726 (diff) so the header and the body would have the same number of table cells since the header also had a mbox-empty-cell table cell that was used to contain the metadata. But now that the metadata was moved and the mbox-empty-cell in the header was removed by User:WOSlinker in revision 982121201 (diff), there is one extra table cell in the text row, causing the border issue. To fix this, the mbox-empty-cell should in the text row should also be removed. Here's the effect of the change (notice the border in the top right): BrandonXLF (talk) 05:15, 31 March 2021 (UTC)

 Done -- WOSlinker (talk) 07:46, 31 March 2021 (UTC)