User:Xenwolf/SandBox: Difference between revisions

From Xenharmonic Wiki
Jump to navigation Jump to search
Xenwolf (talk | contribs)
got table for testing from 34edo
Xenwolf (talk | contribs)
 
(52 intermediate revisions by the same user not shown)
Line 1: Line 1:
Testing [[User:Xenwolf/Template:Cents]]:
__NEWSECTIONLINK__
== Testing [[User:Xenwolf/Template:Cents]] ==


{{#expr: 1200*ln(3)/ln(2) round 5}}
{{#expr: 1200*ln(3)/ln(2) round 5}}
Line 7: Line 8:
[[10/9]]
[[10/9]]


== Monzo, Val ==
== Alignment of Table columns ==
<nowiki>{| class="wikitable left-1 center-2 right-3"
|-
! Left-aligned
! Center-aligned
! Right-aligned
|-
| Word
| 3/2
| 0.234
|-
| More words
| style="text-align:left" | 129/128
| 123.456
|}
</nowiki>
 
{| class="wikitable left-1 center-2 right-3"
|-
! Left-aligned
! Center-aligned
! Right-aligned
|-
| Word
| 3/2
| 0.234
|-
| More words
| style="text-align:left" | 129/128
| 123.456
|}
 
== Number of active users ==
The value {{NUMBEROFACTIVEUSERS}} of <code><nowiki>{{NUMBEROFACTIVEUSERS}}</nowiki></code> is obviously wrong (also on [[Special:Statistics]]), see [[Special:ActiveUsers]] for active users.
 
maybe related to:
* [https://www.mediawiki.org/wiki/Topic:T7po6uisor9f7nz0 &#123;&#123;NUMBEROFACTIVEUSERS&#125;&#125; remains stuck at 0 on Project&#58;Support desk]
* [https://phabricator.wikimedia.org/T140079 ⚓ T140079 &#123;&#123;NUMBEROFACTIVEUSERS&#125;&#125; doesn’t get updated when $wgMiserMode &#61; false]
 
== Testing [[User:Xenwolf/Template:Primes in EDO]] ==
 
{{User:Xenwolf/Template:Primes in EDO|23}}
{{User:Xenwolf/Template:Primes in EDO|26}}
{{User:Xenwolf/Template:Primes in EDO|37}}
 
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]] ==
 
* {{signed|6}}
* {{signed|6.5}}
* {{signed|0}}
* {{signed|-0.5}}
* {{signed|-5}}
 
== Testing factor notation ==
 
This solution requires valid (and sensible) input, there is no intelligence on board that would be able to detect zero divisions like <code>0^-1</code>.
 
=== 1st version with mandatory exponents ===
 
: Input: <code>2^-4 * 3^4 * 5^-1</code>
: Code: <code><nowiki>{{#replace:{{#regex: 2^-4 * 3^4 * 5^-1|/(\d+)\s*\^\s*(-?\d+)(\s*\*\s*)?/|\1<sup>\2</sup> \3&amp;nbsp;}}|*|⋅}}</nowiki></code>
: Output: {{#replace:{{#regex: 2^-4 * 3^4 * 5^-1|/(\d+)\s*\^\s*(-?\d+)(\s*\*\s*)?/|\1<sup>\2</sup> \3&nbsp;}}|*|⋅}}
 
=== 2nd version with optional exponents ===
 
: Input: <code>2^2 * 5 * 11^-1</code>
: Code: <code><nowiki>{{#replace:{{#regex: 2^2 * 5 * 11^-1|/(\d+)(?:\s*\^\s*(-?\d+))?(\s*\*\s*)?/|\1<sup>\2</sup> \3&amp;nbsp;}}|*|⋅}}</nowiki></code>
: Output:  {{#replace:{{#regex: 2^2 * 5 * 11^-1|/(\d+)(?:\s*\^\s*(-?\d+))?(\s*\*\s*)?/|\1<sup>\2</sup> \3&nbsp;}}|*|⋅}}
 
 
=== [[User:Arseniiv/Factorization]] ===
 
<pre>
* {{User:Arseniiv/Factorization| 2^-4 * 3^4 * 5^-1 }}
* {{User:Arseniiv/Factorization|2^-4*3^4*5^-1}}
* {{User:Arseniiv/Factorization| 2^2 * 5 * 11^-1 }}
* {{User:Arseniiv/Factorization|2^2*5*11^-1}}
* {{User:Arseniiv/Factorization
|2^2*
5*
11^-1
}}
* {{User:Arseniiv/Factorization
|2
^
2
*
5
*
11
^
-1
}}
</pre>
 
* {{User:Arseniiv/Factorization| 2^-4 * 3^4 * 5^-1 }}
* {{User:Arseniiv/Factorization|2^-4*3^4*5^-1}}
* {{User:Arseniiv/Factorization| 2^2 * 5 * 11^-1 }}
* {{User:Arseniiv/Factorization|2^2*5*11^-1}}
* {{User:Arseniiv/Factorization
|2^2*
5*
11^-1
}}
 
* {{User:Arseniiv/Factorization
|2
^
2
*
5
*
11
^
-1
}}
 
== Initially hidden elements made visible ==
 
Is this possible at all?
 
* [https://css-tricks.com/almanac/properties/v/visibility/ visibility &#124; CSS&#45;Tricks]
 
== ImageMap ==
 
[[File:Jacob Collier with a Kite Guitar 6-26-19.jpg|thumb|200px|the image being used]]
 
This is just a short check, not an elaborated example, that's why I use only rectangles, not polygons to surround people and guitar. Also the positions are all but exact.
 
<imagemap>
File:Jacob Collier with a Kite Guitar 6-26-19.jpg|400x300px|thumb|center|some text as description
rect 300 50 460 500 [[Kite Giedraitis]]
rect 460 50 700 700 [[Jacob Collier]]
rect 700 100 850 700 [[Aaron Wolf]]
rect 850 100 1500 700 [[Caleb Ramsey]]
rect 200 400 400 900 [[Kite Guitar]]
default [[:File:Jacob Collier with a Kite Guitar 6-26-19.jpg|Image description page ...]]
# desc bottom-right
</imagemap>
 
<imagemap>
File:Jacob Collier with a Kite Guitar 6-26-19.jpg|400x300px|some text as description
rect 300 50 460 500 [[Kite Giedraitis]]
rect 460 50 700 700 [[Jacob Collier]]
rect 700 100 850 700 [[Aaron Wolf]]
rect 850 100 1500 700 [[Caleb Ramsey]]
rect 200 400 400 900 [[Kite Guitar]]
default [[:File:Jacob Collier with a Kite Guitar 6-26-19.jpg|Image description page ...]]
desc bottom-left
</imagemap>


"{{Trim| 1 2 -1 }}"
Image maps kind of work, but the there is something wrong with the info icon. Also the appearance on [[Special:Version]] is a bit strange, there is '''no version information for ImageMap'''. I'd guess there is a bad interference with EmbedVideo. Also, when using it with thumb or frame, there is no icon in the description (as is observable with all images on this wiki).


[[Template:Monzo]]:
== Color notation map ==
* XXX {{monzo| -19 12 }} XXX
* XXX{{monzo| -19 12 }}XXX
* XXX{{monzo|text= -19 12 }}XXX


[[Template:Val]]:
<imagemap>
* XXX {{val| 31 49 72 87 }} XXX
File:Lattice32.png
* XXX{{val| 31 49 72 87 }}XXX
# yellow
* XXX{{val|text= 31 49 72 87 }}XXX
circle 185 36 33 [[10/9]]
circle 378 36 33 [[5/3]]
circle 570 36 33 [[5/4]]
circle 763 36 33 [[15/8]]
# brown
circle 281 95 33 [[40/21]]
circle 474 95 33 [[10/7]]
circle 666 95 33 [[15/14]]
# blue
circle 185 145 33 [[14/9]]
circle 378 145 33 [[7/6]]
circle 570 145 33 [[7/4]]
circle 763 145 33 [[21/16]]
# white
circle 89 205 33 [[16/9]]
circle 281 205 33 [[4/3]]
circle 474 205 33 [[1/1]]
circle 666 205 33 [[3/2]]
circle 859 205 33 [[9/8]]
# red
circle 185 263 33 [[32/21]]
circle 378 263 33 [[8/7]]
circle 570 263 33 [[12/7]]
circle 763 263 33 [[9/7]]
# cyan
circle 281 313 33 [[28/15]]
circle 474 313 33 [[7/5]]
circle 666 313 33 [[21/20]]
# green
circle 185 373 33 [[16/15]]
circle 378 373 33 [[8/5]]
circle 570 373 33 [[6/5]]
circle 763 373 33 [[9/5]]
default [[File:Lattice32.png]]
desc none
</imagemap>


== Alignment of Table cells ==
== links to same page ==


{| class="wikitable"
[[User:Xenwolf/SandBox|(selflink)]] [[User:Xenwolf]]
! Degree
 
! Solfege
== Flag Emojis ==
! Cents
 
! approx. ratios of <br> 2.3.5.13.17 [[subgroup]]
https://emojipedia.org/flags/
! additional ratios <br> of 7 and 11
 
! colspan="3" | [[Ups and Downs Notation|Ups and downs <br>notation]]
{| class="wikitable sortable"
|+ Some Example Flags
! Emoji || 1st part || 2nd part
|-
| 🇷🇺 || 🇷 U+1F1F7 || 🇺 U+1F1FA
|-
| 🇬🇧 || 🇬 U+1F1EC || 🇧 U+1F1E7
|-
| 🇻🇪  || 🇻 U+1F1FB || 🇪 U+1F1EA
|-
| 🇫🇷  || 🇫 U+1F1EB || 🇷 U+1F1F7
|-
| 🇸🇪  || 🇸 U+1F1F8 || 🇪 U+1F1EA
|-
| 🇳🇴  || 🇳 U+1F1F3 || 🇴 U+1F1F4
|-
| 🇦🇺  || 🇦 U+1F1E6 || 🇺 U+1F1FA
|-
| 🇦🇹  || 🇦 U+1F1E6 || 🇹 U+1F1F9
|-
| 🇩🇪  || 🇩 U+1F1E9 || 🇪 U+1F1EA
|-
|-
| style="text-align:center;" | 0
| 🇨🇳  || 🇨 U+1F1E8 || 🇳 U+1F1F3
| style="text-align:center;" | do
| style="text-align:right;" |0.000
| style="text-align:center;" | 1/1
| style="text-align:center;" |
| style="text-align:center;" | P1
| style="text-align:center;" | perfect unison
| style="text-align:center;" | D
|-
|-
| style="text-align:center;" | 1
| 🇺🇳 || 🇺 U+1F1FA || 🇳 U+1F1F3
| style="text-align:center;" | di
| style="text-align:right;" | 35.294
| style="text-align:center;" | 128/125 ([[128/125|diesis]]), 51/50
| style="text-align:center;" | 50/49, 49/48
| style="text-align:center;" | ^1, vm2
| style="text-align:center;" | up unison, downminor 2nd
| style="text-align:center;" | ^D, vEb
|-
|-
| style="text-align:center;" | 2
| 🇺🇸  || 🇺 U+1F1FA || 🇸 U+1F1F8
| style="text-align:center;" | rih
| style="text-align:right;" | 70.588
| style="text-align:center;" | 25/24, 648/625 ([[648/625|large diesis]])
| style="text-align:center;" |
| style="text-align:center;" | m2
| style="text-align:center;" | minor 2nd
| style="text-align:center;" | Eb
|-
|-
| style="text-align:center;" | 3
| 🇮🇹  || 🇮 U+1F1EE || 🇹 U+1F1F9
| style="text-align:center;" | ra
| style="text-align:right;" | 105.882
| style="text-align:center;" | 17/16, 18/17, 16/15
| style="text-align:center;" | 15/14
| style="text-align:center;" | ^m2
| style="text-align:center;" | upminor 2nd
| style="text-align:center;" | ^Eb
|-
|-
| style="text-align:center;" | 4
| 🇪🇸  || 🇪 U+1F1EA || 🇸 U+1F1F8
| style="text-align:center;" | ru
| style="text-align:right;" | 141.1765
| style="text-align:center;" | 13/12
| style="text-align:center;" | 14/13, 12/11
| style="text-align:center;" | ~2
| style="text-align:center;" | mid 2nd
| style="text-align:center;" | vvE
|-
|-
| style="text-align:center;" | 5
| 🇯🇵  || 🇯 U+1F1EF || 🇵 U+1F1F5
| style="text-align:center;" | reh
| style="text-align:right;" | 176.471
| style="text-align:center;" | 10/9
| style="text-align:center;" | 11/10
| style="text-align:center;" | vM2
| style="text-align:center;" | downmajor 2nd
| style="text-align:center;" | vE
|-
|-
| style="text-align:center;" | 6
| 🇨🇱  || 🇨 U+1F1E8 || 🇱 U+1F1F1
| style="text-align:center;" | re
| style="text-align:right;" | 211.765
| style="text-align:center;" | 9/8, 17/15
| style="text-align:center;" |
| style="text-align:center;" | M2
| style="text-align:center;" | major 2nd
| style="text-align:center;" | E
|-
|-
| style="text-align:center;" | 7
| 🇪🇺  || 🇪 U+1F1EA || 🇺 U+1F1FA
| style="text-align:center;" | raw
|}
| style="text-align:right;" | 247.059
 
| style="text-align:center;" | 15/13
In Unicode, these icons are displayed for valid combinations of [[Wikipedia: Regional indicator symbol| Regional indicator symbol]]s.
| style="text-align:center;" | 8/7
 
| style="text-align:center;" | ^M2, vm3
{| class="wikitable"
| style="text-align:center;" | upmajor 2nd, downminor 3rd
|+ Regional indicator symbols
| style="text-align:center;" | ^E, vF
|-
|-
| style="text-align:center;" | 8
! Icon || Code point
| style="text-align:center;" | meh
| style="text-align:right;" | 282.353
| style="text-align:center;" | 20/17, 75/64
| style="text-align:center;" | 7/6, 13/11
| style="text-align:center;" | m3
| style="text-align:center;" | minor 3rd
| style="text-align:center;" | F
|-
|-
| style="text-align:center;" | 9
| 🇦 || U+1F1E6
| style="text-align:center;" | me
| style="text-align:right;" | 317.647
| style="text-align:center;" | 6/5
| style="text-align:center;" | 17/14
| style="text-align:center;" | ^m3
| style="text-align:center;" | upminor 3rd
| style="text-align:center;" | ^F
|-
|-
| style="text-align:center;" | 10
| 🇧 || U+1F1E7
| style="text-align:center;" | mu
| style="text-align:right;" | 352.941
| style="text-align:center;" | 16/13
| style="text-align:center;" | 11/9
| style="text-align:center;" | ~3
| style="text-align:center;" | mid 3rd
| style="text-align:center;" | ^^F
|-
|-
| style="text-align:center;" | 11
| 🇨 || U+1F1E8
| style="text-align:center;" | mi
| style="text-align:right;" | 388.235
| style="text-align:center;" | 5/4
| style="text-align:center;" |
| style="text-align:center;" | vM3
| style="text-align:center;" | downmajor 3rd
| style="text-align:center;" | vF#
|-
|-
| style="text-align:center;" | 12
| 🇩 || U+1F1E9
| style="text-align:center;" | maa
| style="text-align:right;" | 423.529
| style="text-align:center;" | [[51/40|51/40]], 32/25
| style="text-align:center;" | 14/11, 9/7
| style="text-align:center;" | M3
| style="text-align:center;" | major 3rd
| style="text-align:center;" | F#
|-
|-
| style="text-align:center;" | 13
| 🇪 || U+1F1EA
| style="text-align:center;" | maw
| style="text-align:right;" | 458.8235
| style="text-align:center;" | 13/10, 17/13
| style="text-align:center;" | 22/17
| style="text-align:center;" | ^M3, v4
| style="text-align:center;" | upmajor 3rd,down 4th
| style="text-align:center;" | ^F#, vG
|-
|-
| style="text-align:center;" | 14
| 🇫 || U+1F1EB
| style="text-align:center;" | fa
| style="text-align:right;" | 494.118
| style="text-align:center;" | 4/3
| style="text-align:center;" |
| style="text-align:center;" | P4
| style="text-align:center;" | 4th
| style="text-align:center;" | G
|-
|-
| style="text-align:center;" | 15
| 🇬 || U+1F1EC
| style="text-align:center;" | fih
| style="text-align:right;" | 529.412
| style="text-align:center;" |512/375, 34/25
| style="text-align:center;" | 15/11
| style="text-align:center;" | ^4
| style="text-align:center;" | up 4th
| style="text-align:center;" | ^G
|-
|-
| style="text-align:center;" | 16
| 🇭 || U+1F1ED
| style="text-align:center;" | fu
| style="text-align:right;" | 564.706
| style="text-align:center;" | 36/25, 18/13
| style="text-align:center;" | 11/8
| style="text-align:center;" | ~4, d5
| style="text-align:center;" | mid 4th, dim 5th
| style="text-align:center;" | ^^G, Ab
|-
|-
| style="text-align:center;" | 17
| 🇮 || U+1F1EE
| style="text-align:center;" | fi/se
| style="text-align:right;" | 600<span style="color: #fff;">.000</span>
| style="text-align:center;" | 17/12, 24/17
| style="text-align:center;" | 7/5, 10/7
| style="text-align:center;" | vA4, ^d5
| style="text-align:center;" | downaug 4th, updim 5th
| style="text-align:center;" | vG#, ^Ab
|-
|-
| style="text-align:center;" | 18
| 🇯 || U+1F1EF 
| style="text-align:center;" | su
| style="text-align:right;" | 635.294
| style="text-align:center;" | 25/18, 13/9
| style="text-align:center;" | 16/11
| style="text-align:center;" | A4, ~5
| style="text-align:center;" | aug 4th, mid 5th
| style="text-align:center;" | G#, vvA
|-
|-
| style="text-align:center;" | 19
| 🇰 || U+1F1F0
| style="text-align:center;" | sih
| style="text-align:right;" | 670.588
| style="text-align:center;" |375/256, 25/17
| style="text-align:center;" | 22/15
| style="text-align:center;" | v5
| style="text-align:center;" | down 5th
| style="text-align:center;" | vA
|-
|-
| style="text-align:center;" | 20
| 🇱 || U+1F1F1
| style="text-align:center;" | sol
| style="text-align:right;" | 705.882
| style="text-align:center;" | 3/2
| style="text-align:center;" |
| style="text-align:center;" | P5
| style="text-align:center;" | perfect 5th
| style="text-align:center;" | A
|-
|-
| style="text-align:center;" | 21
| 🇲 || U+1F1F2
| style="text-align:center;" | saw
| style="text-align:right;" | 741.1765
| style="text-align:center;" | 20/13, 26/17
| style="text-align:center;" | 17/11
| style="text-align:center;" | ^5, vm6
| style="text-align:center;" | up 5th, downminor 6th
| style="text-align:center;" | ^A, vBb
|-
|-
| style="text-align:center;" | 22
| 🇳 || U+1F1F3
| style="text-align:center;" | leh
| style="text-align:right;" | 776.471
| style="text-align:center;" | 25/16, 80/51
| style="text-align:center;" | 14/9
| style="text-align:center;" | m6
| style="text-align:center;" | minor 6th
| style="text-align:center;" | Bb
|-
|-
| style="text-align:center;" | 23
| 🇴 || U+1F1F4
| style="text-align:center;" | le
| style="text-align:right;" | 811.765
| style="text-align:center;" | 8/5
| style="text-align:center;" |
| style="text-align:center;" | ^m6
| style="text-align:center;" | upminor 6th
| style="text-align:center;" | ^Bb
|-
|-
| style="text-align:center;" | 24
| 🇵 || U+1F1F5
| style="text-align:center;" | lu
| style="text-align:right;" | 847.059
| style="text-align:center;" | 13/8
| style="text-align:center;" | 18/11
| style="text-align:center;" | ~6
| style="text-align:center;" | mid 6th
| style="text-align:center;" | vvB
|-
|-
| style="text-align:center;" | 25
| 🇶 || U+1F1F6
| style="text-align:center;" | la
| style="text-align:right;" | 882.353
| style="text-align:center;" | 5/3
| style="text-align:center;" | 28/17
| style="text-align:center;" | vM6
| style="text-align:center;" | downmajor 6th
| style="text-align:center;" | vB
|-
|-
| style="text-align:center;" | 26
| 🇷 || U+1F1F7
| style="text-align:center;" | laa
| style="text-align:right;" | 917.647
| style="text-align:center;" | [[17/10|17/10]]
| style="text-align:center;" | 12/7, 22/13
| style="text-align:center;" | M6
| style="text-align:center;" | major 6th
| style="text-align:center;" | B
|-
|-
| style="text-align:center;" | 27
| 🇸 || U+1F1F8
| style="text-align:center;" | law
| style="text-align:right;" | 952.941
| style="text-align:center;" | 26/15
| style="text-align:center;" | 7/4
| style="text-align:center;" | ^M6, vm7
| style="text-align:center;" | upmajor 6th, downminor 7th
| style="text-align:center;" | ^B, vC
|-
|-
| style="text-align:center;" | 28
| 🇹 || U+1F1F9
| style="text-align:center;" | teh
| style="text-align:right;" | 988.235
| style="text-align:center;" | 16/9, 30/17
| style="text-align:center;" |
| style="text-align:center;" | m7
| style="text-align:center;" | minor 7th
| style="text-align:center;" | C
|-
|-
| style="text-align:center;" | 29
| 🇺 || U+1F1FA
| style="text-align:center;" | te
| style="text-align:right;" | 1023.529
| style="text-align:center;" | 9/5
| style="text-align:center;" | 20/11
| style="text-align:center;" | ^m7
| style="text-align:center;" | upminor 7th
| style="text-align:center;" | ^C
|-
|-
| style="text-align:center;" | 30
| 🇻 || U+1F1FB
| style="text-align:center;" | tu
| style="text-align:right;" | 1058.8235
| style="text-align:center;" | 24/13
| style="text-align:center;" | 13/7, 11/6
| style="text-align:center;" | ~7
| style="text-align:center;" | mid 7th
| style="text-align:center;" | ^^C
|-
|-
| style="text-align:center;" | 31
| 🇼 || U+1F1FC
| style="text-align:center;" | ti
| style="text-align:right;" | 1094.118
| style="text-align:center;" | 32/17, 17/9, 15/8
| style="text-align:center;" | 28/15
| style="text-align:center;" | vM7
| style="text-align:center;" | downmajor 7th
| style="text-align:center;" | vC#
|-
|-
| style="text-align:center;" | 32
| 🇽 || U+1F1FD
| style="text-align:center;" | taa
| style="text-align:right;" | 1129.412
| style="text-align:center;" | 48/25, 625/324
| style="text-align:center;" |
| style="text-align:center;" | M7
| style="text-align:center;" | major 7th
| style="text-align:center;" | C#
|-
|-
| style="text-align:center;" | 33
| 🇾 || U+1F1FE
| style="text-align:center;" | da
| style="text-align:right;" | 1164.706
| style="text-align:center;" | 125/64, 100/51
| style="text-align:center;" | 49/25, 96/49
| style="text-align:center;" | ^M7, v8
| style="text-align:center;" | upmajor 7th, down 8ve
| style="text-align:center;" | ^C#, vD
|-
|-
| style="text-align:center;" | 34
| 🇿 || U+1F1FF
| style="text-align:center;" | do
| style="text-align:right;" | 1200<span style="color: #fff;">.000</span>
| style="text-align:center;" | 2/1
| style="text-align:center;" |
| style="text-align:center;" | P8
| style="text-align:center;" | 8ve
| style="text-align:center;" | D
|}
|}
== 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}}

Latest revision as of 10:33, 11 July 2021

Testing User:Xenwolf/Template:Cents

1901.955

1901.95500

10/9

Alignment of Table columns

{| class="wikitable left-1 center-2 right-3"
|-
! Left-aligned
! Center-aligned
! Right-aligned
|-
| Word
| 3/2
| 0.234
|-
| More words
| style="text-align:left" | 129/128
| 123.456
|}

Left-aligned Center-aligned Right-aligned
Word 3/2 0.234
More words 129/128 123.456

Number of active users

The value 47 of {{NUMBEROFACTIVEUSERS}} is obviously wrong (also on Special:Statistics), see Special:ActiveUsers for active users.

maybe related to:

Testing User:Xenwolf/Template:Primes in EDO

Approximation of primary intervals in 23 EDO
Prime number 2 3 5 7 11 13 17 19 23
Error absolute (¢) 0.0 -23.7 -21.1 +22.5 +22.6 -5.7 -0.6 +15.5 -2.2
relative (%) 0.0 -45.4 -40.4 +43.1 +43.3 -11.0 -1.2 +29.8 -4.2
Degree (reduced) 23 (0) 36 (13) 53 (7) 65 (19) 80 (11) 85 (16) 94 (2) 98 (6) 104 (12)
Approximation of primary intervals in 26 EDO
Prime number 2 3 5 7 11 13 17 19 23
Error absolute (¢) 0.0 -9.6 -17.1 +0.4 +2.5 -9.8 -12.6 -20.6 +17.9
relative (%) 0.0 -20.9 -37.0 +0.9 +5.5 -21.1 -27.4 -44.6 +38.7
Degree (reduced) 26 (0) 41 (15) 60 (8) 73 (21) 90 (12) 96 (18) 106 (2) 110 (6) 118 (14)
Approximation of primary intervals in 37 EDO
Prime number 2 3 5 7 11 13 17 19 23
Error absolute (¢) 0.0 +11.6 +2.9 +4.1 0.0 +2.7 -7.7 -5.6 -12.1
relative (%) 0.0 +35.6 +8.9 +12.8 +0.1 +8.4 -23.6 -17.3 -37.2
Degree (reduced) 37 (0) 59 (22) 86 (12) 104 (30) 128 (17) 137 (26) 151 (3) 157 (9) 167 (19)


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

Script error: No such module "primes_in_edo". Script error: No such module "primes_in_edo". Script error: No such module "primes_in_edo".

Testing Template:Signed

  • +6
  • +6.5
  • 0
  • -0.5
  • -5

Testing factor notation

This solution requires valid (and sensible) input, there is no intelligence on board that would be able to detect zero divisions like 0^-1.

1st version with mandatory exponents

Input: 2^-4 * 3^4 * 5^-1
Code: {{#replace:{{#regex: 2^-4 * 3^4 * 5^-1|/(\d+)\s*\^\s*(-?\d+)(\s*\*\s*)?/|\1<sup>\2</sup> \3&nbsp;}}|*|⋅}}
Output: {{#regex: 2^-4 ⋅ 3^4 ⋅ 5^-1|/(\d+)\s⋅\^\s⋅(-?\d+)(\s⋅\⋅\s⋅)?/|\1\2 \3 }}

2nd version with optional exponents

Input: 2^2 * 5 * 11^-1
Code: {{#replace:{{#regex: 2^2 * 5 * 11^-1|/(\d+)(?:\s*\^\s*(-?\d+))?(\s*\*\s*)?/|\1<sup>\2</sup> \3&nbsp;}}|*|⋅}}
Output: {{#regex: 2^2 ⋅ 5 ⋅ 11^-1|/(\d+)(?:\s⋅\^\s⋅(-?\d+))?(\s⋅\⋅\s⋅)?/|\1\2 \3 }}


User:Arseniiv/Factorization

* {{User:Arseniiv/Factorization| 2^-4 * 3^4 * 5^-1 }}
* {{User:Arseniiv/Factorization|2^-4*3^4*5^-1}}
* {{User:Arseniiv/Factorization| 2^2 * 5 * 11^-1 }}
* {{User:Arseniiv/Factorization|2^2*5*11^-1}}
* {{User:Arseniiv/Factorization
|2^2*
5*
11^-1
}}
* {{User:Arseniiv/Factorization
|2
^
2
*
5
*
11
^
-1
}}
  • {{#regex: 2^−4 ⋅  3^4 ⋅  5^−1 |/(\d+)\s⋅ (?:(?:\⋅ \⋅ |\^)\s⋅ ([−−]?\d+))?\s⋅ (?:(\⋅ )\s⋅ |$)/u|\1\2 \3}}
  • {{#regex: 2^−4⋅ 3^4⋅ 5^−1|/(\d+)\s⋅ (?:(?:\⋅ \⋅ |\^)\s⋅ ([−−]?\d+))?\s⋅ (?:(\⋅ )\s⋅ |$)/u|\1\2 \3}}
  • {{#regex: 2^2 ⋅  5 ⋅  11^−1 |/(\d+)\s⋅ (?:(?:\⋅ \⋅ |\^)\s⋅ ([−−]?\d+))?\s⋅ (?:(\⋅ )\s⋅ |$)/u|\1\2 \3}}
  • {{#regex: 2^2⋅ 5⋅ 11^−1|/(\d+)\s⋅ (?:(?:\⋅ \⋅ |\^)\s⋅ ([−−]?\d+))?\s⋅ (?:(\⋅ )\s⋅ |$)/u|\1\2 \3}}
  • {{#regex: 2^2⋅ 

5⋅  11^−1 |/(\d+)\s⋅ (?:(?:\⋅ \⋅ |\^)\s⋅ ([−−]?\d+))?\s⋅ (?:(\⋅ )\s⋅ |$)/u|\1\2 \3}}

  • {{#regex: 2

^ 2 ⋅  5 ⋅  11 ^ −1 |/(\d+)\s⋅ (?:(?:\⋅ \⋅ |\^)\s⋅ ([−−]?\d+))?\s⋅ (?:(\⋅ )\s⋅ |$)/u|\1\2 \3}}

Initially hidden elements made visible

Is this possible at all?

ImageMap

the image being used

This is just a short check, not an elaborated example, that's why I use only rectangles, not polygons to surround people and guitar. Also the positions are all but exact.

Kite GiedraitisJacob CollierAaron WolfCaleb RamseyKite Guitar
some text as description
some text as descriptionKite GiedraitisJacob CollierAaron WolfCaleb RamseyKite Guitar
some text as description

Image maps kind of work, but the there is something wrong with the info icon. Also the appearance on Special:Version is a bit strange, there is no version information for ImageMap. I'd guess there is a bad interference with EmbedVideo. Also, when using it with thumb or frame, there is no icon in the description (as is observable with all images on this wiki).

Color notation map

10/95/35/415/840/2110/715/1414/97/67/421/1616/94/31/13/29/832/218/712/79/728/157/521/2016/158/56/59/5

links to same page

(selflink) User:Xenwolf

Flag Emojis

https://emojipedia.org/flags/

Some Example Flags
Emoji 1st part 2nd part
🇷🇺 🇷 U+1F1F7 🇺 U+1F1FA
🇬🇧 🇬 U+1F1EC 🇧 U+1F1E7
🇻🇪 🇻 U+1F1FB 🇪 U+1F1EA
🇫🇷 🇫 U+1F1EB 🇷 U+1F1F7
🇸🇪 🇸 U+1F1F8 🇪 U+1F1EA
🇳🇴 🇳 U+1F1F3 🇴 U+1F1F4
🇦🇺 🇦 U+1F1E6 🇺 U+1F1FA
🇦🇹 🇦 U+1F1E6 🇹 U+1F1F9
🇩🇪 🇩 U+1F1E9 🇪 U+1F1EA
🇨🇳 🇨 U+1F1E8 🇳 U+1F1F3
🇺🇳 🇺 U+1F1FA 🇳 U+1F1F3
🇺🇸 🇺 U+1F1FA 🇸 U+1F1F8
🇮🇹 🇮 U+1F1EE 🇹 U+1F1F9
🇪🇸 🇪 U+1F1EA 🇸 U+1F1F8
🇯🇵 🇯 U+1F1EF 🇵 U+1F1F5
🇨🇱 🇨 U+1F1E8 🇱 U+1F1F1
🇪🇺 🇪 U+1F1EA 🇺 U+1F1FA

In Unicode, these icons are displayed for valid combinations of Regional indicator symbols.

Regional indicator symbols
Icon Code point
🇦 U+1F1E6
🇧 U+1F1E7
🇨 U+1F1E8
🇩 U+1F1E9
🇪 U+1F1EA
🇫 U+1F1EB
🇬 U+1F1EC
🇭 U+1F1ED
🇮 U+1F1EE
🇯 U+1F1EF
🇰 U+1F1F0
🇱 U+1F1F1
🇲 U+1F1F2
🇳 U+1F1F3
🇴 U+1F1F4
🇵 U+1F1F5
🇶 U+1F1F6
🇷 U+1F1F7
🇸 U+1F1F8
🇹 U+1F1F9
🇺 U+1F1FA
🇻 U+1F1FB
🇼 U+1F1FC
🇽 U+1F1FD
🇾 U+1F1FE
🇿 U+1F1FF

Calculate EDO props for boilerplate code

For boilerplates: {{subst:#regex:{{subst:PAGENAME}}|/(\S+)\/(\S+)/|\1-\2}}

Steps from page name

Codes:

  • {{#regex:12edo|/(\d+)-?EDO/i|\1}}
  • {{#regex:13-EDO|/(\d+)-?EDO/i|\1}}

Results:

  • {{#regex:12edo|/(\d+)-?EDO/i|\1}}
  • {{#regex:13-EDO|/(\d+)-?EDO/i|\1}}
Step size from page name

Codes:

  • {{#number_format:{{#expr:1200/{{#regex:12edo|/(\d+)-?EDO/i|\1}}}}|3}}
  • {{#number_format:{{#expr:1200/{{#regex:13-EDO|/(\d+)-?EDO/i|\1}}}}|3}}

Results

  • First argument to "number_format" must be a number.
  • First argument to "number_format" must be a number.

Finding Step size parameter values with units attached

* 1 {{#if:{{#regex:{{{Step size|12.7¢}}}|/[\d.]+(.*)/|\1}}|YES!}}
* 2 {{#if:{{#regex:12.7|/[\d.]+(.*)/|\1}}|YES!}}
* 3 {{#if:{{#regex:|/[\d.]+(.*)/|\1}}|YES!}}

Output:

  • 1 YES!
  • 2 YES!
  • 3 YES!

Include File:Space Tour.mp3/Description

By placing {{File:Space Tour.mp3/Description}} into a page, the content gets included:

This song has a story to go with it, and the story goes like this:

You pay to get on a spaceship to take a tour of some parts of space, and as you're getting ready, you imagine all the kinds of sights you'll see and that you'll have the experience of a lifetime, but after you arrive at the spaceport, you hear rumors about the company running the tour, and not the good kind. As you see many and various beautiful sights, ranging from nebulae, to strange planets and other things at different stops along the tour, and even take your share of pictures, you take time to reflect on what you'll tell your family back home about what you've seen. At the same time, you can't help but wonder about the rumors floating around. Eventually you overhear some of the staff talking about problems with the ship, and dissing the company for negligence. Sure enough, the ship is forced to turn around and head back to Earth, but as they arrive, suddenly, things start going wrong with the ship, and you're forced to get into an escape pod. After ejecting from the ship, your escape pod lands in the forest somewhere in Canada, and worse, the GPS on the escape pod that would otherwise alert rescuers to your position is busted, so you're effectively stranded. Eventually, however, you are found, and after a long string of interviews about your experience, you finally return home in one piece, but not without having had the experience of a lifetime and acquiring a mild case of PTSD.

As to which EDO is being used or mimicked where:

00:00-00:14 1edo
00:14-01:12 12edo
01:12-01:27 2edo
01:27-02:25 14edo
02:25-02:39 1edo
02:39-03:54 17edo
03:54-04:53 19edo
04:53-05:07 1edo
05:07-07:16 22edo
07:16-07:30 1edo
07:30-09:29 24edo
09:29-09:43 1edo
09:43-10:41 27edo
10:41-10:56 1edo
10:56-11:53 31edo
11:53-12:07 159edo tonicization of note located roughly 11/8 above the original tonic
12:07-13:19 35edo
13:19-14:32 41edo
14:32-14:52 159edo tonicization of note located roughly 224/135 above the original tonic
14:52-17:04 53edo
17:04-17:22 159edo tonicization of original tonic
17:22-20:21 159edo diatonic key with added 11/8, 13/8, and 55/32

At the end of the day, it appears that 159edo really is quite a sophisticated and expressive music system.

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!

User:Xenwolf/SandBox (section)

User:Xenwolf/SandBox (section)

Testing User:Xenwolf/Template:TestDefPar

Script error: No such module "primes_in_edo". Script error: No such module "primes_in_edo". Script error: No such module "primes_in_edo". Script error: No such module "primes_in_edo". Script error: No such module "primes_in_edo". Script error: No such module "primes_in_edo".