Module talk:WikiProject banner/Archive 13: Difference between revisions

Content deleted Content added
m Archiving 1 discussion(s) from Template talk:WPBannerMeta) (bot
m Archiving 1 discussion(s) from Template talk:WPBannerMeta) (bot
Line 417:
:::::::{{done}}. Let me know when you're ready to deploy that sandbox &mdash;&nbsp;Martin <small>([[User:MSGJ|MSGJ]]&nbsp;·&nbsp;[[User talk:MSGJ|talk]])</small> 17:39, 14 January 2021 (UTC)
::::::::{{re|MSGJ}} I think it's good to deploy whenever you are ready. {{(:}} &#8211;<span style="font-family:CG Times, times">[[User:MJL|<span style="color:black">MJL</span>]]&thinsp;[[User talk:MJL|‐'''Talk'''‐]]<sup>[[WP:WikiProject Connecticut|☖]]</sup></span> 21:05, 8 February 2021 (UTC)
 
== Protected edit request on 8 February 2021 ==
 
{{edit fully-protected|Template:WPBannerMeta/core|Template:WPBannerMeta|Template:Inactive WikiProject banner|answered=y}}
 
#On {{tl|WPBannerMeta/core}}, at <code><nowiki><table class="tmbox tmbox-notice mw-collapsible innercollapse wpb" style="height:0;"></nowiki></code>, add the following after <code>wpb</code>:
#:<code><nowiki>{{#switch:{{lc:{{{PROJECT_STATUS|}}}}}|inactive=inactive-wikiproject|semi-active|semiactive=semi-active-wikiproject|defunct=defunct-wikiproject|active|#default=}}</nowiki></code>
#In {{tl|WPBannerMeta}}, after <code><nowiki>|BOTTOM_TEXT = {{{BOTTOM_TEXT|}}}</nowiki></code>, add the following on a new line:
#:<code><nowiki>|PROJECT_STATUS = {{{PROJECT_STATUS|}}}</nowiki></code>
#At the bottom of {{tl|Inactive WikiProject banner}}, add:
#:<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. &#8211;<span style="font-family:CG Times, times">[[User:MJL|<span style="color:black">MJL</span>]]&thinsp;[[User talk:MJL|‐'''Talk'''‐]]<sup>[[WP:WikiProject Connecticut|☖]]</sup></span> 21:03, 8 February 2021 (UTC)
 
:{{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)