User:Xenwolf/SandBox: Difference between revisions
→links to same page: title in parentheses |
→Testing User:Xenwolf/Template:TestDefPar: new section |
||
(12 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 223: | Line 214: | ||
[[User:Xenwolf/SandBox|(selflink)]] [[User:Xenwolf]] | [[User:Xenwolf/SandBox|(selflink)]] [[User:Xenwolf]] | ||
== Flag Emojis == | |||
https://emojipedia.org/flags/ | |||
{| 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 | |||
|- | |||
| 🇨🇳 || 🇨 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 [[Wikipedia: Regional indicator symbol| Regional indicator symbol]]s. | |||
{| class="wikitable" | |||
|+ 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: | |||
<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}} |