Jump to content

Template talk:Importance mask

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

Name

[edit]

Can we move this to Template:importance mask perhaps? — Martin (MSGJ · talk) 19:58, 18 November 2009 (UTC)[reply]

 Done — Martin (MSGJ · talk) 11:52, 19 November 2009 (UTC)[reply]

Use of class parameter

[edit]

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. — Martin (MSGJ · talk) 12:06, 19 November 2009 (UTC)[reply]

That sounds like a good idea to use pagetype instead. -- WOSlinker (talk) 13:20, 19 November 2009 (UTC)[reply]
 Done — Martin (MSGJ · talk) 14:53, 19 November 2009 (UTC)[reply]

Simplification

[edit]

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. — Martin (MSGJ · talk) 21:21, 28 April 2010 (UTC)[reply]

Yes, that is a little simpler. -- WOSlinker (talk) 21:45, 28 April 2010 (UTC)[reply]
Okay,  Done — Martin (MSGJ · talk) 07:33, 29 April 2010 (UTC)[reply]

Custom importance classes

[edit]

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)[reply]

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)[reply]
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)[reply]
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)[reply]

No-importance

[edit]

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)[reply]

Class parameter not working as advertised

[edit]

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:
Top Top Top Top
Kaldari (talk) 08:35, 31 October 2016 (UTC)[reply]

@MSGJ and WOSlinker: Am I missing something or is it broken? Kaldari (talk) 08:37, 31 October 2016 (UTC)[reply]
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. — Martin (MSGJ · talk) 08:44, 31 October 2016 (UTC)[reply]
@MSGJ: 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)[reply]
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)[reply]
It is needed, but for a somewhat small set of circumstances - dab pages in mainspace, for example - hence this edit. --Redrose64 (talk) 17:34, 31 October 2016 (UTC)[reply]
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 phabricator: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)[reply]

Ignoring importance parameter for redirects

[edit]

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? — Martin (MSGJ · talk) 21:58, 7 March 2017 (UTC)[reply]

Protected edit request on 9 June 2018

[edit]

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

|bottom

below the line

|low

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 | contribs 18:06, 9 June 2018 (UTC)[reply]

 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. — Martin (MSGJ · talk) 21:23, 9 June 2018 (UTC)[reply]
Thanks anyway for suggesting an alternative. Dreamy Jazz talk | contribs 21:29, 9 June 2018 (UTC)[reply]
@Dreamy Jazz: I don't think that MSGJ (talk · contribs) intended you to literally do this. What if WP Chess decide to change their importance ratings? --Redrose64 🌹 (talk) 19:59, 10 June 2018 (UTC)[reply]
@Redrose64: That's a good point, I will copy it to a new page. Dreamy Jazz talk | contribs 20:03, 10 June 2018 (UTC)[reply]

Changes

[edit]

Since yesterday, this template is no longer called by Module:WikiProject banner. It is now only used by projects that have a custom importance mask. I propose a couple of changes to bring this template into line with the module code:

  • Use NA-importance for any non-article (ignoring any specified importance on these pages) unless a forceNA parameter is set to "false"
  • Support the pagetype parameter instead of the class parameter, to determine whether pages are articles or not

— Martin (MSGJ · talk) 18:10, 29 September 2024 (UTC)[reply]

Code for this is now on the sandbox. We have also made a minor change to the module so that redircts and drafts (which are potential future articles) can still be rated for importance. — Martin (MSGJ · talk) 15:56, 8 October 2024 (UTC)[reply]