Template talk:ED intro: Difference between revisions
→Step size in cents: new section |
→Extract edo from pagename?: new section |
||
Line 4: | Line 4: | ||
We might want to tweak the template so that it detects when the written value of the cents is exact and when it is rounded to change the wording accordingly. I see that the template uses the default value for the sigfig template (3 significant figures), which seems fine to me (although it would be possible to add another parameter to override that if that is desired later). I might look into this when I have some time, but if anyone already knows how to fix this quickly, that would work too. --[[User:Fredg999|Fredg999]] ([[User talk:Fredg999|talk]]) 21:11, 5 June 2022 (UTC) | We might want to tweak the template so that it detects when the written value of the cents is exact and when it is rounded to change the wording accordingly. I see that the template uses the default value for the sigfig template (3 significant figures), which seems fine to me (although it would be possible to add another parameter to override that if that is desired later). I might look into this when I have some time, but if anyone already knows how to fix this quickly, that would work too. --[[User:Fredg999|Fredg999]] ([[User talk:Fredg999|talk]]) 21:11, 5 June 2022 (UTC) | ||
== Extract edo from pagename? == | |||
Something like the following shown below. <pre>{{#regex:{{{{{1}}}|PAGENAME}}|([0-9]+)}}</pre> | |||
It remains untested, however (and I'm not that well-versed with regexes). [[User:Ganaram inukshuk|Ganaram inukshuk]] ([[User talk:Ganaram inukshuk|talk]]) 08:09, 18 December 2023 (UTC) |