- Portals
- The Current Year
- ED in the News
- Admins
- Help ED Rebuild
- Archive
- ED Bookmarklet
- Donate Bitcoin
Contact an admin on Discord or EDF if you want an account. Also fuck bots.
Template talk:GradedScore: Difference between revisions
Jump to navigation
Jump to search
imported>Coelacanth →Math automation?: new section |
imported>RkNAME |
||
(One intermediate revision by the same user not shown) | |||
Line 2: | Line 2: | ||
Apparently MediaWiki has [https://en.wikipedia.org/wiki/Template:Sum/doc a template] for automatically adding numbers, Thought that might be useful specifically for this template considering it involves addition. --[[User:Coelacanth|Coelacanth]] ([[User talk:Coelacanth|talk]]) 01:25, 22 March 2024 (EDT) | Apparently MediaWiki has [https://en.wikipedia.org/wiki/Template:Sum/doc a template] for automatically adding numbers, Thought that might be useful specifically for this template considering it involves addition. --[[User:Coelacanth|Coelacanth]] ([[User talk:Coelacanth|talk]]) 01:25, 22 March 2024 (EDT) | ||
: [[User:RkNAME/Template:GradedScore|I made a demo]] that uses [https://www.mediawiki.org/wiki/Help:Extension:ParserFunctions##expr #expr] instead of the Sum template. It also bolds numbers over 20. Already '''bolded''' numbers and numbers with thousands separators like 1,000 break the template because #expr can't handle the <nowiki>'''</nowiki>s and ,'s, and I don't know if there's a way around it. There are also other edge cases like the [[Adolf Hitler]] page, where the total score is ∞, and the [[Nghtmrchld26]] page, where one of the numbers is a link. If this change is to be made, then pages with these issues would have to be edited first. I can check [[Special:WhatLinksHere/Template:GradedScore|all 157 pages using the template]] if you want. - [[User:RkNAME|RkNAME]] ([[User talk:RkNAME|talk]] | [[Special:Contributions/RkNAME|contribs]]) 20:52, 9 April 2024 (EDT) |
Latest revision as of 00:52, 10 April 2024
Math automation?
Apparently MediaWiki has a template for automatically adding numbers, Thought that might be useful specifically for this template considering it involves addition. --Coelacanth (talk) 01:25, 22 March 2024 (EDT)
- I made a demo that uses #expr instead of the Sum template. It also bolds numbers over 20. Already bolded numbers and numbers with thousands separators like 1,000 break the template because #expr can't handle the '''s and ,'s, and I don't know if there's a way around it. There are also other edge cases like the Adolf Hitler page, where the total score is ∞, and the Nghtmrchld26 page, where one of the numbers is a link. If this change is to be made, then pages with these issues would have to be edited first. I can check all 157 pages using the template if you want. - RkNAME (talk | contribs) 20:52, 9 April 2024 (EDT)