User:Spacing form/sandbox: Difference between revisions

From TestWiki
Content added Content deleted
Tags: Mobile edit Mobile web edit
No edit summary
 
(20 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 -->
Please dont delete this page while I'm still working on it.
{{#css:
.kename {
color: green;
font-family: Times;
}
.larame {
border: 2px dotted green;
}
}}


Will continue to edit this on and off for a while.
No links... :')


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


==Module==
I've looked into custom Modules aswell, but the thought of learning a new programming language is daunting to me, so ParserFunctions first.


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


<svg xmlns="https://www.w3.org/2000/svg" width="100" height="100" style="border:1px solid black">
The word "module" has {{#invoke:String|len|module}} letters.
<rect x="10" y="10" width="50" height="50" stroke="blue" fill="purple"/>
<text>Why</text></svg>


(The one below is wrong)
The character at index 1 is "{{#invoke:String|pos|module|1}}"


{{#invoke:Sandbox/Spacing_form/Point|displayGlyph|ba}}
Supports UTF-8. {{#invoke:String|replace|Mississippi|ss|ß}}<ref>(actually incorrect)</ref>


----
A "Scribunto ustring pattern": {{#invoke:String|replace|A rose is a rose is a rose.|[Aa]%s|Pen|plain=false}}


{{#invoke:Sandbox/Spacing_form/Point|printDiv}}
Can I lazy? {{#len:1234}}


{{#invoke:Sandbox/Spacing_form/Point|printParagraphs|The Logs are delicious.|Now that's what a real Wikipeian would say.}}
===Variables===


The thunder went {{#invoke:Sandbox/Spacing_form/Point|printRepeat|rumble|6}}.
{{#vardefine:color|red}}


{{#invoke:Sandbox/Spacing_form/Point|printRepr|246400|-17200|Bob}}
{{#varexists:color|I saw a {{#var:color}} bull today.|I saw nothing.}}{{#vardefine:color|green}} {{#varexists:action|But then it {{#var:action}}.}}


{{#invoke:Sandbox/Spacing_form/Point|printRepr|-46800|-129200|name=Potato}}
===Arrays===


{{#invoke:Sandbox/Spacing_form/Point|printRepr|name=Potatoe|x=-46800|y=-129200}}
{{#arrdefine|nums|12,34,abc}}
{{#arrprint|nums}}

===Loops===


----
----

{{#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}}.}}

<!-- #arraydefine, #arrayprint... -->

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.