Template talk:Election box

message: It might be worthwhile to preprocess the change parameter such that when its value uses a generic dash as a negative sign (i.e. it matches the regex pattern [-–—](\s*\d+)), the dash is replaced with the negative sign suggested in MOS:NEGATIVE (−). Note that I have seen at least one instance of an m-dash used in place of a missing value, so a format test should check for digits after the dash (as does the regex pattern above) to avoid replacing these appropriately used m-dashes. —AlphaMikeOmega (talk) 18:23, 26 June 2022 (UTC)
replies: text: The same goes for the swing parameter. —AlphaMikeOmega (talk) 18:27, 26 June 2022 (UTC)

text: Please link to articles where each situation occurs, or (better, if you are able) copy tables from those articles to the testcases page for this template. One challenge is that this template, , does not actually exist as a template. It's just a home for a common documentation page. The templates that take  as a parameter are listed at , and there are probably more in other categories. Each one of those templates would need to be modified. – Jonesey95 (talk) 20:30, 12 July 2023 (UTC)
replies: text: That does sound a trifle tedious, but I think it’s worth doing. Any suggestions on how to get the ball rolling? (FWIW the instances of this formatting deficiency that finally drove to seek rectification were the ones at Tilgate & Furnace Green (electoral division).) Cheers! —jameslucas ▄▄▄ ▄ ▄▄▄ ▄▄▄ ▄ 03:02, 13 July 2023 (UTC)
thread_title:  Request: use negative sign outlined in MOS 

message: Im trying to make an election box where one candidate ran as both a Republican and a Democrat, however there is no option to put a party link down along with the proper color. I have been trying to manually add the color #6004A4 but I can't find any way to do so. Could someone help point me in the right direction? Scu ba (talk) 16:55, 26 January 2023 (UTC)
replies: text: Well I made the article. 2013 Allentown mayoral election. If anyone would be willing to look at that election box and see what I did wrong that would be helpful. Scu ba (talk) 23:53, 26 January 2023 (UTC)
thread_title:  Manually adding color? 

message: Is there any reason a small font needs to be used on this page? I cannot see why it should be anything other than 100%. Please can someone change this? 10mmsocket (talk) 17:33, 7 March 2023 (UTC)
replies: text: I do not see any small font sizes used on this page. Please link to a page where you are seeing small font sizes. – Jonesey95 (talk) 18:52, 7 March 2023 (UTC)
replies: text: It's in the CSS that the tables call I believe. 10mmsocket (talk) 19:23, 7 March 2023 (UTC)

text: Actually it's in  10mmsocket (talk) 19:25, 7 March 2023 (UTC)
replies: text: It appears that a couple dozen election box templates adjust font sizes (there are also some in subcategories), out of a population of about 300 templates. Most of those font size adjustments apply a size of 95% to the entire template, which can cause MOS:FONTSIZE violations if  tags are used within the templates. I would support removing font size reduction from the bodies of these tables. A few of the font size changes are applied to titles and notes; I would leave those alone. – Jonesey95 (talk) 21:42, 7 March 2023 (UTC)
replies: text: Thanks for checking. 10mmsocket (talk) 21:44, 7 March 2023 (UTC)

text: @Jonesey95: I stumbled across this short discussion after finding an article with unnecessary small fonts sizes and tracing it to . 10mmsocket's initial investigation was useful. Your point about notes being smaller is fine. I don't think false headings or titles (with larger font sizes) should be used; bold-face is enough. I will investigate the job needed with a view to being bold at some point after discussing further. (10mmsocket seems to have been absent from WP since July 2023.) Bazza 7 (talk) 11:04, 19 March 2024 (UTC)
thread_title:  Normal font size 

message: The percent sign in the heading +-% is incorrect or at least misleading. And the percent sign with the values underneath that heading as on Janet Protasiewicz is clearly incorrect. --Espoo (talk) 05:27, 7 September 2023 (UTC)
replies: text: A tooltip was added a while ago to clarify the meaning of this header. Please suggest an improvement. – Jonesey95 (talk) 13:11, 8 September 2023 (UTC)
thread_title:  confusion between percentage point and percentage  

message: This is embarrassing, since I've been using this template for years, but is there a comprehensive list of the available parameters for each sub-template?  (Like "template:Election box candidate with party link" has parameters "party", "candidate", "votes", "percentage", etc.) Asdasdasdff (talk) 19:46, 3 December 2023 (UTC)
thread_title:  Parameter list 

message: Hi so on line 11 of Template:Election box candidate with party link, i think you should replace  with replace||,|}}}}, so that no matter what number you put in it will automatically add commas for any number with 4 or more digits, as happens with Template:Election box winning candidate with party link
TheHaloVeteran2 (talk) 00:03, 3 May 2024 (UTC)
replies: text: Not done: See below — Martin (MSGJ · talk) 19:53, 6 May 2024 (UTC)
thread_title:  Template-protected edit request on 2 May 2024 

message: I think we should replace  with ||,| in Template:Election box turnout so that it automatically adds the separators as it does in Template:Election box turnout no change TheHaloVeteran2 (talk) 17:42, 3 May 2024 (UTC)
replies: text: I don't think the above code would result in a useful outcome. Perhaps you could put your proposed code in the sandbox version of the template and show how it works on the testcases page. – Jonesey95 (talk) 20:15, 3 May 2024 (UTC)
replies: text: I mean it already works in Template:Election box turnout for however many numbers you might need to report TheHaloVeteran2 (talk) 06:29, 4 May 2024 (UTC)
replies: text: Please reactivate request when sandbox code is ready and tested — Martin (MSGJ · talk) 19:52, 6 May 2024 (UTC)
thread_title:  Template-protected edit request on 3 May 2024