Template talk:Importance

message: What's the class parameter for in this template? PC78 (talk) 23:14, 3 September 2009 (UTC)
replies: text: Confusingly enough, it's the partner to : 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)
thread_title:  Class? 

message: I've just noticed that this template uses  whereas  uses  and . Maybe we should try to standardise? — Martin (MSGJ · talk) 13:08, 7 September 2009 (UTC)
thread_title:  IMPN 

message: Per suggestion at Template talk:Class#Use as column heading, 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. --Redrose64 (talk) 20:22, 12 October 2011 (UTC)
replies: text: Couldn't wait? ;) Anomie⚔ 00:49, 13 October 2011 (UTC)
thread_title:  Use as column heading 

message: As discussed in Template_talk:Grading_scheme#Protected_edit_request_on_7_April_2015, this template (and its importance-specific equivalents) undesirably links to problematic categories when the category parameter is undefined. I attempted to fix this in , 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)
replies: text: It's still not at all clear why you need this doing, nor what is "broken".  Not done: please establish a consensus for this alteration before using the  template. --Redrose64 (talk) 15:55, 10 April 2015 (UTC)
replies: text:  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)
replies: text: Probably means that the brackets are unbalanced. Make sure that you close the same number that you open, and in the reverse order. --Redrose64 (talk) 19:46, 11 April 2015 (UTC)
replies: text:   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)
replies: text: What I mean by "in the reverse order" is that if you open brackets in the order {{  }} (three, two); similarly, {{  (curly, square) must be closed  }} (square, curly). --Redrose64 (talk) 16:15, 12 April 2015 (UTC)
replies: text:   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)
thread_title:  Protected edit request on 10 April 2015 

message: As part of a broader project to overhaul the way assessment-metric templates are implemented, I'm planning to remove the attr 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 attr 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 attr parameter from , a rowspan parameter was added to handle a few cases that couldn't be cleanly removed or replaced with use of the style parameter instead.
If no one objects, I'll make the change probably sometime this weekend?  18:21, 8 December 2017 (UTC)
replies: text: Sounds like a plan.  We should remove dead code when we find it.  — SMcCandlish ☏ ¢ >ʌⱷ҅ᴥⱷʌ<  16:01, 9 December 2017 (UTC)
replies: text: , though admittedly I left this hanging far longer than necessary. :)  01:18, 23 December 2017 (UTC)
thread_title:  Removing <code>attr</code> parameter 

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