User:Xenwolf/SandBox: Difference between revisions
→Flag Emojis: new section |
→Testing User:Xenwolf/Template:TestDefPar: new section |
||
(11 intermediate revisions by the same user not shown) | |||
Line 54: | Line 54: | ||
This (or something similar) could be transformed into a subst template now. See [[Wikipedia: Help:Substitution]] for more on substitution. | This (or something similar) could be transformed into a subst template now. See [[Wikipedia: Help:Substitution]] for more on substitution. | ||
== Testing [[Template:Primes in edo]] == | |||
{{Primes in edo|columns=9|23}} | |||
{{Primes in edo|columns=9|26}} | |||
{{Primes in edo|columns=9|37}} | |||
== Testing [[Template:Signed]] == | == Testing [[Template:Signed]] == | ||
Line 62: | Line 68: | ||
* {{signed|-0.5}} | * {{signed|-0.5}} | ||
* {{signed|-5}} | * {{signed|-5}} | ||
== Testing factor notation == | == Testing factor notation == | ||
Line 263: | Line 254: | ||
|- | |- | ||
| 🇨🇱 || 🇨 U+1F1E8 || 🇱 U+1F1F1 | | 🇨🇱 || 🇨 U+1F1E8 || 🇱 U+1F1F1 | ||
|- | |||
| 🇪🇺 || 🇪 U+1F1EA || 🇺 U+1F1FA | |||
|} | |} | ||
Line 324: | Line 317: | ||
| 🇿 || U+1F1FF | | 🇿 || U+1F1FF | ||
|} | |} | ||
== Calculate EDO props for boilerplate code == | |||
For boilerplates: | |||
<code><nowiki>{{subst:#regex:{{subst:PAGENAME}}|/(\S+)\/(\S+)/|\1-\2}}</nowiki></code> | |||
; Steps from page name: | |||
Codes: | |||
* <code><nowiki>{{#regex:12edo|/(\d+)-?EDO/i|\1}}</nowiki></code> | |||
* <code><nowiki>{{#regex:13-EDO|/(\d+)-?EDO/i|\1}}</nowiki></code> | |||
Results: | |||
* {{#regex:12edo|/(\d+)-?EDO/i|\1}} | |||
* {{#regex:13-EDO|/(\d+)-?EDO/i|\1}} | |||
; Step size from page name: | |||
Codes: | |||
* <code><nowiki>{{#number_format:{{#expr:1200/{{#regex:12edo|/(\d+)-?EDO/i|\1}}}}|3}}</nowiki></code> | |||
* <code><nowiki>{{#number_format:{{#expr:1200/{{#regex:13-EDO|/(\d+)-?EDO/i|\1}}}}|3}}</nowiki></code> | |||
Results | |||
* {{#number_format:{{#expr:1200/{{#regex:12edo|/(\d+)-?EDO/i|\1}}}}|3}} | |||
* {{#number_format:{{#expr:1200/{{#regex:13-EDO|/(\d+)-?EDO/i|\1}}}}|3}} | |||
Finding <code>Step size</code> parameter values with units attached | |||
<nowiki>* 1 {{#if:{{#regex:{{{Step size|12.7¢}}}|/[\d.]+(.*)/|\1}}|YES!}} | |||
* 2 {{#if:{{#regex:12.7|/[\d.]+(.*)/|\1}}|YES!}} | |||
* 3 {{#if:{{#regex:|/[\d.]+(.*)/|\1}}|YES!}}</nowiki> | |||
Output: | |||
* 1 {{#if:{{#regex:{{{Step size|12.7¢}}}|/[\d.]+(.*)/|\1}}|YES!}} | |||
* 2 {{#if:{{#regex:12.7|/[\d.]+(.*)/|\1}}|YES!}} | |||
* 3 {{#if:{{#regex:|/[\d.]+(.*)/|\1}}|YES!}} | |||
== Include [[:File:Space Tour.mp3/Description]] == | |||
By placing <code><nowiki>{{File:Space Tour.mp3/Description}}</nowiki></code> into a page, the content gets included: | |||
{{File:Space Tour.mp3/Description}} | |||
== Autofill parameters for [[template:Infobox ET ]] == | |||
todo. | |||
All parameters could be omitted: | |||
* Step count (P8) can be extracted from the page name | |||
* Step size can be calculated := 1200/P8 | |||
* Fifth (P5) can be calculated, it's the patent fifth: P5 := round(log2(3/2) * P8) | |||
* M2, m2, and A1 can be calculated from P8 and P5 | |||
Some EDOs may have an auxiliary Fifth! | |||
== <abbr title="You are editing">✎</abbr> User:Xenwolf/SandBox (section) == | |||
<abbr title="You are editing">✎</abbr> User:Xenwolf/SandBox (section) | |||
== Testing [[User:Xenwolf/Template:TestDefPar]] == | |||
{{User:Xenwolf/Template:TestDefPar|52}} | |||
{{User:Xenwolf/Template:TestDefPar|53}} | |||
{{User:Xenwolf/Template:TestDefPar|526}} | |||
{{User:Xenwolf/Template:TestDefPar|527}} | |||
{{User:Xenwolf/Template:TestDefPar|5263}} | |||
{{User:Xenwolf/Template:TestDefPar|5264}} |