This is the talk page for discussing improvements to the WPBannerMeta template. |
|||
|
|
WikiProject Council | ||||||
|
|
Index 1, 2, 3, 4, 5, 6, 7, 8, 9, 10 11, 12, 13 |
Threads older than 28 days may be automatically archived by lowercase sigmabot III. |
Argh
One of my long term projects has been to turn {{WikiProject Politics}} into this while preserving all the pre-existing categories. @MSGJ: Can you please help me and fix my spaghetti code? –MJL ‐Talk‐☖ 06:20, 21 December 2020 (UTC)
- If I knew what you were trying to achieve then I might be able to help! — Martin (MSGJ · talk) 09:11, 21 December 2020 (UTC)
- @MJL: what is your intention in creating Template:WPBannerMeta/notes/category? — Martin (MSGJ · talk) 06:38, 3 January 2021 (UTC)
- @MSGJ: I am trying to convert defunt task forces from using the task force hooks to the note hooks. This would make them collapsed by default. The template you mentioned is supposed to ensure the underlying WikiProject task force categories the same and prevent any changes there. –MJL ‐Talk‐☖ 08:01, 3 January 2021 (UTC)
- I think you would be much better off using the taskforce hook but collapsing them. I will show you on the sandbox ... — Martin (MSGJ · talk) 08:16, 3 January 2021 (UTC)
- @MJL: please see Template:WikiProject Politics/sandbox. Alternatively we can put those in the same collapsed section as the notes. — Martin (MSGJ · talk) 15:26, 4 January 2021 (UTC)
- @MSGJ: Woah. Just blew my mind right there. That's practically perfect!! –MJL ‐Talk‐☖ 02:52, 5 January 2021 (UTC)
- @MSGJ: I am trying to convert defunt task forces from using the task force hooks to the note hooks. This would make them collapsed by default. The template you mentioned is supposed to ensure the underlying WikiProject task force categories the same and prevent any changes there. –MJL ‐Talk‐☖ 08:01, 3 January 2021 (UTC)
Auto documentation
I'm working on a system for auto-documenting project banners using Template:WPBannerDoc. Preliminary efforts are in Template:WPBannerMeta/templatepage/sandbox, and documentation can be activated with new parameter |DOC=auto
. Results can be seen on Template:WPBannerMeta/test and Template:WikiProject Doctor Who/sandbox. Feedback would be appreciated! — Martin (MSGJ · talk) 12:16, 24 December 2020 (UTC)
- I think my auto-documentation is ready for prime time. There are a few special cases left to consider (e.g. custom quality scales, or b-class checklists) but I would like to start deploying it on some basic banner templates. — Martin (MSGJ · talk) 20:09, 28 December 2020 (UTC)
- The does still have some features that show up for the small paramter which could be removed now. Here's a search link of banners without any docs at the moment, where it would be easy to add them. -- WOSlinker (talk) 09:42, 3 January 2021 (UTC)
- Concerning the
|category=
parameter (which all WikiProject banner templates have - or should have, anyway), also the|auto=
parameter (found in rather less than half of the WikiProject banner templates) - when writing doc pages, I purposely omit these from the copypaste boilerplates because|category=
is rarely used, and|auto=
should not be used except by bots. For the same reasons, I always place them bottom of the "Optional parameters" list (which is otherwise ordered alphabetically), and omit them from any examples. --Redrose64 🌹 (talk) 18:52, 3 January 2021 (UTC)
Please check Template:WikiProject Portals for template limit problems
Hi, would you check Template:WikiProject Portals, as I believe it is causing template limit problems on Portal talk:South Africa. In this version, there are 3 hidden category errors. When the WikiProject Portals template is removed, then the hidden categories don't show up, at this newer version. Thanks Funandtrvl (talk) 18:01, 3 February 2021 (UTC)
- The problem is somewhere within Module:Portal maintenance status. -- WOSlinker (talk) 18:23, 3 February 2021 (UTC)
- Yes, I agree. @Evad37: please could you look into this? — Martin (MSGJ · talk) 19:04, 3 February 2021 (UTC)
- Thanks for the ping. The limits problem occurs only when the {{Portal maintenance status}} isn't at the top of the portal page, but is instead within a table or another template. I've fixed the immediate issue by moving that template to the top of Portal:South Africa, but a more general solution should still be looked into – either Lua coding improvements, or a bot to ensure the template is positioned correctly, or reconsidering whether the status needs to be transcluded to the talk page. - Evad37 [talk] 23:37, 3 February 2021 (UTC)
- Thank you for fixing it! Funandtrvl (talk) 21:38, 4 February 2021 (UTC)
- Thanks for the ping. The limits problem occurs only when the {{Portal maintenance status}} isn't at the top of the portal page, but is instead within a table or another template. I've fixed the immediate issue by moving that template to the top of Portal:South Africa, but a more general solution should still be looked into – either Lua coding improvements, or a bot to ensure the template is positioned correctly, or reconsidering whether the status needs to be transcluded to the talk page. - Evad37 [talk] 23:37, 3 February 2021 (UTC)
Protected edit request on 8 February 2021
This edit request to Template:WPBannerMeta/core, Template:WPBannerMeta and Template:Inactive WikiProject banner has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
- On {{WPBannerMeta/core}}, at
<table class="tmbox tmbox-notice mw-collapsible innercollapse wpb" style="height:0;">
, add the following afterwpb
:{{#switch:{{lc:{{{PROJECT_STATUS|}}}}}|inactive=inactive-wikiproject|semi-active|semiactive=semi-active-wikiproject|defunct=defunct-wikiproject|active|#default=}}
- In {{WPBannerMeta}}, after
|BOTTOM_TEXT = {{{BOTTOM_TEXT|}}}
, add the following on a new line:|PROJECT_STATUS = {{{PROJECT_STATUS|}}}
- 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. –MJL ‐Talk‐☖ 21:03, 8 February 2021 (UTC)