User:Spacing form/sandbox: Difference between revisions

From TestWiki
Content added Content deleted
No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<!-- Note: the parser #css seems to be deprecated, will search for a up-to-date solution -->
{{#css:
{{#css:
.kename {
.kename {
Line 11: Line 12:
Will continue to edit this on and off for a while.
Will continue to edit this on and off for a while.


Using [[Module:Sandbox/Spacing form/Point]] and [[Module:Sandbox/Spacing form/Point/data]]
Using [[Module:Sandbox/Spacing form/Point]] and [[Module:Sandbox/Spacing form/Point/pivots]]


==Module==
==Module==
Line 17: Line 18:
Sometimes the page uses cached data and shows outdated result. To update the contents, purge, refresh, or make a faux edit.
Sometimes the page uses cached data and shows outdated result. To update the contents, purge, refresh, or make a faux edit.


<svg xmlns="https://www.w3.org/2000/svg" width="100" height="100" style="border:1px solid black">
These probably don't work here
<rect x="10" y="10" width="50" height="50" stroke="blue" fill="purple"/>
<text>Why</text></svg>


(The one below is wrong)
<canvas id="canvas-test" width="200" height="200" style="border:1px solid black;"></canvas>


{{#invoke:Sandbox/Spacing_form/Point|displayGlyph|ba}}
<script>
const canvas = document.getElementById("canvas-test");
const ctx = canvas.getContext("2d");
ctx.fillStyle = "blue";
ctx.fillRect(50, 10, 3, 80);
</script>

<svg width="200" height="200" xmlns="http://www.w3.org/2000/svg"><rect width="100%" height="100%" fill="green" /><rect width="3" height="80" x="50" y="10" fill="blue" /></svg>


----
----
Line 43: Line 39:


{{#invoke:Sandbox/Spacing_form/Point|printRepr|name=Potatoe|x=-46800|y=-129200}}
{{#invoke:Sandbox/Spacing_form/Point|printRepr|name=Potatoe|x=-46800|y=-129200}}

----

{{#invoke:Sandbox/Spacing_form/Point|findNearest|1000|-600}}

{{#invoke:Sandbox/Spacing_form/Point|searchName|proximal}}

{{#invoke:Sandbox/Spacing_form/Point|searchName|ghoti}}

{{#invoke:Sandbox/Spacing_form/Point|printCoordsFormat|-3.14159|10}}


----
----
Line 58: Line 44:
{{#len:module}} {{#pos:module|1}} {{#replace:Mississippi|ss|ß}}
{{#len:module}} {{#pos:module|1}} {{#replace:Mississippi|ss|ß}}


{{#vardefine:color|red}}{{#varexists:color|I saw a {{#var:color}} bull today.|I saw nothing.}}{{#vardefine:color|green}} {{#varexists:color|But then it turned {{#var:color}}.}}
{{#vardefine:color|red}}

{{#varexists:color|I saw a {{#var:color}} bull today.|I saw nothing.}}{{#vardefine:color|green}} {{#varexists:color|But then it turned {{#var:color}}.}}


{{#arraydefine:arr|12,34,abc}}
<!-- #arraydefine, #arrayprint... -->
{{#arrayprint:arr}}

Latest revision as of 15:51, 26 April 2024


Will continue to edit this on and off for a while.

Using Module:Sandbox/Spacing form/Point and Module:Sandbox/Spacing form/Point/pivots

Module

Sometimes the page uses cached data and shows outdated result. To update the contents, purge, refresh, or make a faux edit.

<svg xmlns="https://www.w3.org/2000/svg" width="100" height="100" style="border:1px solid black"> <rect x="10" y="10" width="50" height="50" stroke="blue" fill="purple"/> <text>Why</text></svg>

(The one below is wrong)

Lua error in Module:Sandbox/Spacing_form/Point at line 54: attempt to index global 'args' (a nil value).


Don't reinvent the wheel. Exceptions can be made.

The Logs are delicious.

Now that's what a real Wikipeian would say.

The thunder went rumblerumblerumblerumblerumblerumble.

(246400,-17200) is Bob's latest position


(-46800,-129200) is Potato's latest position


(-46800,-129200) is Potatoe's latest position



6 Mißißippi

I saw a red bull today. But then it turned green.