Template talk:Importance

Re-purpose
This template is due to be re-purposed imminently. Please use its target Notability and fix any documentation referring to the old use. The template has been orphaned in article space. Rich Farmbrough, 22:12, 2 September 2009 (UTC).
 * Thanks to Rich we have now been able to move this template to its proper place. &mdash; Martin (MSGJ · talk) 08:16, 3 September 2009 (UTC)
 * Yay!   Happy ‑ melon  12:50, 3 September 2009 (UTC)
 * Not arguing with this or anything, but I thought Importance was used in the WikiProject sense as opposed to the Notability sense. (I came here as Rich changed the TL in one of my handy-links-boxes, but Notability was linked there too). Out of curiosity, what will the new TL|Importance be? Something I'd want to keep in my bag-o-tricks anyway? Thanks!
 * Ah, I see the old Importance was already deleted, and this one is what I thought it was for anyway! :) So now I'm wondering what the old one was for.... Arakunem Talk 14:55, 3 September 2009 (UTC)
 * The old use was an ambox like this:

and was redirected to notability several months ago. &mdash; Martin (MSGJ · talk) 15:17, 3 September 2009 (UTC)
 * And what is the new template for? Bwrs (talk) 20:43, 8 May 2010 (UTC)


 * See its documentation? It's used in assessment ratings. Note that Template:Cleanup-importance still points to the old issue. --Joy &#91;shallot&#93; (talk) 22:09, 8 May 2010 (UTC)
 * While we're at it, I could use this opportunity undelete these old revisions and place them in the history of that template, which was actually its old name once. --Joy &#91;shallot&#93; (talk) 22:11, 8 May 2010 (UTC)
 * Hmm, now that I said that, I don't actually know how to do it :) I'd have to undelete them here, move everything to Template:cleanup-importance, then delete the old revisions again, then move it back here, and then undelete the old revisions over there. Trouble is, since this template is transcluded to hell and back, these actions could easily be disruptive as mediawiki runs through various triggered back-end actions back and forth. Anyone have a better idea? --Joy &#91;shallot&#93; (talk) 22:15, 8 May 2010 (UTC)
 * Hehe, no better ideas, but if it would make you happy then just go for it. No one will notice if you do it quick enough :) &mdash; Martin (MSGJ · talk) 23:01, 8 May 2010 (UTC)

You could try this: &mdash; Martin (MSGJ · talk) 10:45, 25 May 2010 (UTC)
 * 1) Move Template:importance to Template:importance/temp leaving a redirect behind.
 * 2) Put a (temporary) copy of the template over the top of the redirect.
 * 3) Delete Template:importance/temp and restore the old history.
 * 4) Move it to Template:cleanup-importance or wherever you want it, supressing the redirect.
 * 5) Restore all remaining revisions of Template:importance/temp.
 * 6) Move it to Template:importance, supressing the redirect.


 * Thanks. In the meantime I brought this up on Village pump (technical)/Archive 76 and got the same answer (AFAICT). I'll try that then. --Joy &#91;shallot&#93; (talk) 20:07, 25 May 2010 (UTC)


 * OK, it's done. Two of my HTTP requests timed out on the proxies, but the back-end performed fine. --Joy &#91;shallot&#93; (talk) 10:35, 26 May 2010 (UTC)

Class?
What's the class parameter for in this template? PC78 (talk) 23:14, 3 September 2009 (UTC)
 * Confusingly enough, it's the partner to style: it's for adding extra CSS classes to the cell. Nothing to do with WP1.0 class.  Happy ‑ melon  10:54, 4 September 2009 (UTC)

IMPN
I've just noticed that this template uses impn whereas WPBM uses IMPN and IMPORTANCE_SCALE_NAME. Maybe we should try to standardise? &mdash; Martin (MSGJ · talk) 13:08, 7 September 2009 (UTC)

Use as column heading
Per suggestion at Template talk:Class, I have sandboxed an amendment to allow  to be used instead of , and this is tested at Template:Importance/testcases as working, so please copy Template:Importance/sandbox over Template:Importance. -- Red rose64 (talk) 20:22, 12 October 2011 (UTC)
 * ✅ Couldn't wait? ;) Anomie⚔ 00:49, 13 October 2011 (UTC)

Protected edit request on 10 April 2015
As discussed in Template_talk:Grading_scheme, this template (and its importance-specific equivalents) undesirably links to problematic categories when the category parameter is undefined. I attempted to fix this in [//en.wikipedia.org/w/index.php?title=Template:Importance/sandbox&diff=655842373&oldid=455260790], but this is clearly broken. I am not knowledgeable enough about templates to fix this myself, so someone would have to find a proper code. I simply tried turning "bar" into "if (category) { } bar if (category) {  }", but that is not parsed as I would have expected. Chealer (talk) 15:29, 10 April 2015 (UTC)
 * It's still not at all clear why you need this doing, nor what is "broken". Red information icon with gradient background.svg Not done: please establish a consensus for this alteration before using the template. -- Red rose64 (talk) 15:55, 10 April 2015 (UTC)
 * The version of the sandbox I created is broken. It shows uninterpreted lexemes (" ??? ") rather than just the rating. --Chealer (talk) 19:31, 11 April 2015 (UTC)
 * Probably means that the brackets are unbalanced. Make sure that you close the same number that you open, and in the reverse order. -- Red rose64 (talk) 19:46, 11 April 2015 (UTC)
 * I have look attentively enough to be confident that the numbers match. However, are you sure that the order needs to be reversed, and if so, does that mean that bar needs to be duplicated? Otherwise, are you aware of a syntax highlighter? --Chealer (talk) 16:07, 12 April 2015 (UTC)
 * What I mean by "in the reverse order" is that if you open brackets in the order  (two, three) they must be closed in the order   (three, two); similarly,   (curly, square) must be closed   (square, curly). -- Red rose64 (talk) 16:15, 12 April 2015 (UTC)
 * Yes, so that means what I attempted cannot work, right? If so, is there a way to make the link conditional without duplicating bar (variable assignment)? --Chealer (talk) 01:36, 13 April 2015 (UTC)

Removing parameter
As part of a broader project to overhaul the way assessment-metric templates are implemented, I'm planning to remove the  parameter of this template. It appears to be unused: a search for its use returns no results. This does come with an immediate one-time cost of invalidating the cache of about 4 million pages, but since they're going to be mostly talk pages the performance impact shouldn't be too bad. In the longer term, it's helpful because  and so on are black boxes of functionality that can't be handled cleanly in Lua HTML-generation code. If there's a need to add a specific attribute for some special cases, then that can be added separately. For example, when I removed the corresponding  parameter from class, a   parameter was added to handle a few cases that couldn't be cleanly removed or replaced with use of the   parameter instead.

If no one objects, I'll make the change probably sometime this weekend? {&#123; Nihiltres  &#124;talk &#124;edits}&#125; 18:21, 8 December 2017 (UTC)
 * Sounds like a plan. We should remove dead code when we find it.  — SMcCandlish ☏ ¢ &gt;ʌⱷ҅ᴥⱷʌ&lt;  16:01, 9 December 2017 (UTC)
 * ✅, though admittedly I left this hanging far longer than necessary. :) {&#123; Nihiltres &#8202;&#124;talk&#8202;&#124;edits}&#125; 01:18, 23 December 2017 (UTC)

Change background colour of unknown
A change has been made to Module:Class/styles.css which changes the background colour of unassessed to #dcdcdc, see Template talk:Class. Would it make sense to make a similar change to this template for unknown importance? &mdash; Martin (MSGJ · talk) 11:45, 9 May 2023 (UTC)


 * ✅ &mdash; Martin (MSGJ · talk) 11:49, 30 June 2023 (UTC)