User:Xenwolf/SandBox: Difference between revisions

Xenwolf (talk | contribs)
Xenwolf (talk | contribs)
 
(8 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 [[User:Xenwolf/Template:EDOs]] ==
I evaluate option(s) to only generate links to existing pages as a feature of [[Template:EDOs]]. Answer: No.
{{User:Xenwolf/Template:EDOs|101, 1001, and 123xy, even 000}}
* done: leading zeros removed
{{#ifexist: 101edo | [[101edo{{!}}101]] | 101edo}}
{{#ifexist: 1001edo | [[1001edo]] | 1001edo}}
* hard to do: existence checks
** <code>#ifexist</code> is evaluated before <code>#regex</code>
** expensive (see [[mw: Help:Extension:ParserFunctions ##ifexist]])


== Testing factor notation ==
== Testing factor notation ==
Line 263: Line 254:
|-
|-
| 🇨🇱  || 🇨 U+1F1E8 || 🇱 U+1F1F1
| 🇨🇱  || 🇨 U+1F1E8 || 🇱 U+1F1F1
|-
| 🇪🇺  || 🇪 U+1F1EA || 🇺 U+1F1FA
|}
|}


Line 348: Line 341:


Finding <code>Step size</code> parameter values with units attached
Finding <code>Step size</code> parameter values with units attached
  <nowiki>* 1 {{#if:{{#regex:12¢|/\d+(.*)/|\1}}|YES!}}
  <nowiki>* 1 {{#if:{{#regex:{{{Step size|12.7¢}}}|/[\d.]+(.*)/|\1}}|YES!}}
* 2 {{#if:{{#regex:12|/\d+(.*)/|\1}}|YES!}}
* 2 {{#if:{{#regex:12.7|/[\d.]+(.*)/|\1}}|YES!}}
* 3 {{#if:{{#regex:|/\d+(.*)/|\1}}|YES!}}
* 3 {{#if:{{#regex:|/[\d.]+(.*)/|\1}}|YES!}}</nowiki>
</nowiki>
Output:
Output:
* 1 {{#if:{{#regex:12¢|/\d+(.*)/|\1}}|YES!}}
* 1 {{#if:{{#regex:{{{Step size|12.7¢}}}|/[\d.]+(.*)/|\1}}|YES!}}
* 2 {{#if:{{#regex:12|/\d+(.*)/|\1}}|YES!}}
* 2 {{#if:{{#regex:12.7|/[\d.]+(.*)/|\1}}|YES!}}
* 3 {{#if:{{#regex:|/\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}}