User:Spacing form/sandbox: Difference between revisions
Content added Content deleted
Spacing form (talk | contribs) (→Tests) Tags: Mobile edit Mobile web edit |
Spacing form (talk | contribs) (→Tests) Tags: Mobile edit Mobile web edit |
||
Line 17: | Line 17: | ||
A "Scribunto ustring pattern": {{#invoke:String|replace|A rose is a rose is a rose.|[Aa]%s|Pen|plain=false}} |
A "Scribunto ustring pattern": {{#invoke:String|replace|A rose is a rose is a rose.|[Aa]%s|Pen|plain=false}} |
||
I can lazy? {{#len:module}} {{#pos:module|1}} {{#replace:Mississippi|ss|ß}} |
|||
===Variables=== |
===Variables=== |
||
Line 27: | Line 27: | ||
===Arrays=== |
===Arrays=== |
||
{{# |
{{#arraydefine:arr|12,34,abc}} |
||
{{# |
{{#arrayprint:arr}} |
||
===Loops=== |
===Loops=== |
||
{{#arraydefine:sizes|36,32,28,24,20,16,12}} |
|||
{{#loop:i|0|7| |<span style="font-size:{{#arrayindex:sizes|{{#var:i}}}}px;">RUMM</span>}} goes the thunder. |
|||
---- |
---- |
Revision as of 19:17, 5 March 2024
Please dont delete this page while I'm still working on it.
No links... :')
Tests
I've looked into custom Modules aswell, but the thought of learning a new programming language is daunting to me, so ParserFunctions first.
String
The word "module" has 6 letters.
The character at index 1 is "m"
Supports UTF-8. Mißißippi[1]
A "Scribunto ustring pattern": Penrose is Penrose is Penrose.
I can lazy? 6 Mißißippi
Variables
I saw a red bull today.
Arrays
12, 34, abc
Loops
{{#loop:i|0|7| |RUMM}} goes the thunder.
- ↑ (actually incorrect)