User:Xenwolf/SandBox: Difference between revisions
→Testing User:Xenwolf/Template:EDOs: better stick to default for this special sister wiki |
→Testing template arguments: new section |
||
Line 99: | Line 99: | ||
** <code>#ifexist</code> is evaluated before <code>#regex</code> | ** <code>#ifexist</code> is evaluated before <code>#regex</code> | ||
** expensive (see [[Mediawikiwiki: Help:Extension:ParserFunctions ##ifexist]]) | ** expensive (see [[Mediawikiwiki: Help:Extension:ParserFunctions ##ifexist]]) | ||
== Testing template arguments == | |||
[[/TodoArgs]] ist used to generate the text (and auto-categorization) of the following sections. | |||
The visual design is completely left out, but a variable list of (up to 7) positional arguments is supported as well as an optional named argument without auto-categorization. | |||
=== no argument === | |||
{{/TodoArgs}} | |||
=== one argument === | |||
{{/TodoArgs|expand}} | |||
=== multiple arguments === | |||
{{/TodoArgs|add color name|expand|unify precision}} | |||
=== saturated argument === | |||
{{/TodoArgs|add color name|expand|delete|add example|improve layout|unify precision|review|read}} | |||
=== additional comment === | |||
{{/TodoArgs|unify precision|comment=An occasionally appearing surplus decimal place <code>5</code> gives a deceptive impression of higher accuracy.}} | |||
=== new category (useful byproduct?) === | |||
{{/TodoArgs|unify precision|simplify writing style|description=This page reads like a scientific paper not like a wiki page}} |
Revision as of 20:51, 5 November 2020
Testing User:Xenwolf/Template:Cents
1901.955
1901.95500
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:
- {{NUMBEROFACTIVEUSERS}} remains stuck at 0 on Project:Support desk
- ⚓ T140079 {{NUMBEROFACTIVEUSERS}} doesn’t get updated when $wgMiserMode = false
Proposal: Shorten editing titles
When using tabbed browsing, long identical prefixes (like Editing ) in titles make it hard to differentiate tabs of wiki pages currently being edited.
system message | predefined text | suggested text |
---|---|---|
MediaWiki:Editingcomment | Editing $1 (new section) | ✎ $1 (new section) |
MediaWiki:Editing | Editing $1 | ✎ $1 |
MediaWiki:Editingsection | Editing $1 (section) | ✎ $1 (section) |
Testing User:Xenwolf/Template:Primes in 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) |
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) |
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:Signed
- +6
- +6.5
- 0
- -0.5
- -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.
- done: leading zeros removed
- hard to do: existence checks
#ifexist
is evaluated before#regex
- expensive (see Mediawikiwiki: Help:Extension:ParserFunctions ##ifexist)
Testing template arguments
/TodoArgs ist used to generate the text (and auto-categorization) of the following sections.
The visual design is completely left out, but a variable list of (up to 7) positional arguments is supported as well as an optional named argument without auto-categorization.