Template talk:ED intro: Difference between revisions
→Extract edo from pagename?: new section |
|||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
== Step size in cents == | == Step size in cents == | ||
The current template includes the step size in cents, but precedes it with "about", which is only relevant when the step size is not a decimal number or has too many significant digits in its decimal expansion (e.g. 0.006103515625{{cent}} per step of 196608edo). | The current template includes the step size in cents, but precedes it with "about", which is only relevant when the step size is not a decimal number or has too many significant digits in its decimal expansion (e.g. 0.006103515625{{cent}} per step of 196608edo). | ||
Line 6: | Line 5: | ||
== Extract edo from pagename? == | == Extract edo from pagename? == | ||
Something like the following shown below. <pre>{{#regex:{{{{{1}}}|PAGENAME}}|([0-9]+)}}</pre> | 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) | 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) | ||
: I got it to work through {{tlx|ED title}} which extracts ''X''ed''Y'' from the page title. [[User:ArrowHead294|<math>\overrightarrow{\,\,\scriptsize\text{ArrowHead294}\,\,\,}</math>]] [[User talk:ArrowHead294|(speak to me)]] 18:45, 26 March 2025 (UTC) | |||
:: This was a problem from one and a half years ago that had already been solved through lua code. If anything, adding ED title adds an unnecessary step. [[User:Ganaram inukshuk|Ganaram inukshuk]] ([[User talk:Ganaram inukshuk|talk]]) 22:20, 26 March 2025 (UTC) |
Latest revision as of 22:20, 26 March 2025
Step size in cents
The current template includes the step size in cents, but precedes it with "about", which is only relevant when the step size is not a decimal number or has too many significant digits in its decimal expansion (e.g. 0.006103515625 ¢ per step of 196608edo).
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. --Fredg999 (talk) 21:11, 5 June 2022 (UTC)
Extract edo from pagename?
Something like the following shown below.
{{#regex:{{{{{1}}}|PAGENAME}}|([0-9]+)}}
It remains untested, however (and I'm not that well-versed with regexes). Ganaram inukshuk (talk) 08:09, 18 December 2023 (UTC)
- I got it to work through
{{ED title}}
which extracts XedY from the page title. [math]\displaystyle{ \overrightarrow{\,\,\scriptsize\text{ArrowHead294}\,\,\,} }[/math] (speak to me) 18:45, 26 March 2025 (UTC)- This was a problem from one and a half years ago that had already been solved through lua code. If anything, adding ED title adds an unnecessary step. Ganaram inukshuk (talk) 22:20, 26 March 2025 (UTC)