Template talk:Importance mask

Name
Can we move this to Template:importance mask perhaps? &mdash; Martin (MSGJ · talk) 19:58, 18 November 2009 (UTC)
 * ✅ &mdash; Martin (MSGJ · talk) 11:52, 19 November 2009 (UTC)

Use of class parameter
Is there any reason why the code for the default importance cannot use Template:pagetype? The code at Template:WPBannerMeta/importance has since September and nobody has complained so far ... it would certainly simplify the code and avoid needing to use BANNER_NAME. &mdash; Martin (MSGJ · talk) 12:06, 19 November 2009 (UTC)
 * That sounds like a good idea to use pagetype instead. -- WOSlinker (talk) 13:20, 19 November 2009 (UTC)
 * ✅ &mdash; Martin (MSGJ · talk) 14:53, 19 November 2009 (UTC)

Simplification
On reflection I think it is a little unnecessary to pass every parameter through yesno. Also the bottom- and no-importance don't need separate parameter checks. A proposed version is on /sandbox. &mdash; Martin (MSGJ · talk) 21:21, 28 April 2010 (UTC)
 * Yes, that is a little simpler. -- WOSlinker (talk) 21:45, 28 April 2010 (UTC)
 * Okay, ✅ &mdash; Martin (MSGJ · talk) 07:33, 29 April 2010 (UTC)

Custom importance classes
Is there anyway to create a custom importance class? Some discussion at WT:NRHP has led us to favor a "Related-importance" wording over the somewhat demeaning "Bottom-importance." I am a bit new to the idea of coding these project banners, so be patient.. I know it's possible to create custom quality classes, but I can't figure out how to create custom importance classes. Is it possible?--Dudemanfellabra (talk) 01:43, 5 January 2011 (UTC)
 * It is possible to create custom importances/priorities (bottom is actually one) but just wondering if you have thought about just using the NA-importance? -- WOSlinker (talk) 09:26, 5 January 2011 (UTC)
 * I've left a note at the project talk page asking for consensus. I'll update you when I find something out. Thanks for the help.--Dudemanfellabra (talk) 17:19, 5 January 2011 (UTC)
 * Doesn't look like NA will work for our purposes. Could you possibly drop me a note at my talk page explaining how I could make the custom importance class?--Dudemanfellabra (talk) 20:20, 7 January 2011 (UTC)

No-importance
Please see the discussion here for regarding the use of No-importance or not. Thank for your time. JJ98 (Talk / Contribs)  22:55, 6 September 2012 (UTC)

Class parameter not working as advertised
The documentation says that "the 'class' parameter must be passed to allow the mask to automatically set the importance of non-articles to NA." However, it seems that no matter what I set the class to (Draft, Portal, File, Cats), it still returns whatever importance is passed to it:

Kaldari (talk) 08:35, 31 October 2016 (UTC)
 * Am I missing something or is it broken? Kaldari (talk) 08:37, 31 October 2016 (UTC)
 * Hi. I think the class parameter is only considered if no importance is specified. So if you use it on a redirect, the importance will be set to NA automatically but if you use it on an article it will be set to unassessed. &mdash; Martin (MSGJ · talk) 08:44, 31 October 2016 (UTC)
 * It doesn't seem to make any difference regardless. If you look at the pagetype template that the class gets passed to, it doesn't do anything with the parameter. It looks like it just gets thrown away. Kaldari (talk) 16:50, 31 October 2016 (UTC)
 * It looks like passing the class isn't needed anymore since Module:Pagetype now detects all the pagetypes automatically, even from talk pages. Kaldari (talk) 16:52, 31 October 2016 (UTC)
 * It is needed, but for a somewhat small set of circumstances - dab pages in mainspace, for example - hence . -- Red rose64 (talk) 17:34, 31 October 2016 (UTC)
 * Looks like you're right. Lua currently can't detect disambiguation pages, although this should be fairly easy to fix in the Scribunto code (See T71441). Regardless, the class currently isn't being passed to the module at all, so it has no effect, even on disambiguation pages. Kaldari (talk) 21:22, 31 October 2016 (UTC)

Ignoring importance parameter for redirects
A request has been made by WikiProject Video games that the importance parameter should be ignored on redirects and they should automatically be classified as NA-class. So even if the importance is set manually, it will automatically be overridden and set to NA-class. Would it be worth adding an option for that here, or should they create a custom importance mask? &mdash; Martin (MSGJ · talk) 21:58, 7 March 2017 (UTC)

Protected edit request on 9 June 2018
At the moment this template does not support the bottom class for templates. I have a working example in the /sandbox page.

The fix is just to add the line

below the line

From my testing, using /sandbox, it works as per the behaviour of the other parameters (if the parameter is not provided to this template then the bottom class is not supported, if the bottom parameter is provided then the bottom class is supported). Dreamy Jazz talk &#124; contribs 18:06, 9 June 2018 (UTC)
 * Red information icon with gradient background.svg Not done: this importance class is used by very few WikiProjects and is not supported by default. If a project wishes to use it, it is simple enough to set up a custom importance mask. For example see how it is done at Template:WikiProject Chess/importance. &mdash; Martin (MSGJ · talk) 21:23, 9 June 2018 (UTC)
 * Thanks anyway for suggesting an alternative. Dreamy Jazz talk &#124; contribs 21:29, 9 June 2018 (UTC)
 * I don't think that intended you to . What if WP Chess decide to change their importance ratings? -- Red rose64 &#x1f339; (talk) 19:59, 10 June 2018 (UTC)
 * That's a good point, I will copy it to a new page. Dreamy Jazz talk &#124; contribs 20:03, 10 June 2018 (UTC)