User:Spacing form/sandbox: Difference between revisions

no edit summary
(→‎Tests: More testing)
Tags: Mobile edit Mobile web edit
No edit summary
 
(22 intermediate revisions by the same user not shown)
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)
String index starts with 1: {{#invoke:String|pos|module|1}}
 
{{#invoke:Sandbox/Spacing_form/Point|displayGlyph|ba}}
Try nesting {{#invoke:String|rep|{{#invoke:String|sub|module|3|5}}|3}}
 
----
Supports UTF-8. {{#invoke:String|replace|Mississippi|ss|ß}}<ref>(actually incorrect)</ref>
 
{{#invoke:Sandbox/Spacing_form/Point|printDiv}}
A "Scribunto ustring pattern": {{#invoke:String|replace|Looks powerful but I can't think of a use for it|o+|u|plain=false}}
 
{{#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}}.
===Arrays===
 
{{#invoke:Sandbox/Spacing_form/Point|printRepr|246400|-17200|Bob}}
===Loops===
 
{{#invoke:Sandbox/Spacing_form/Point|printRepr|-46800|-129200|name=Potato}}
 
{{#invoke:Sandbox/Spacing_form/Point|printRepr|name=Potatoe|x=-46800|y=-129200}}
 
----
 
{{#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... -->
73

edits