User:Spacing form/sandbox: Difference between revisions

From TestWiki
Content added Content deleted
Tags: Mobile edit Mobile web edit
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}}


Can I lazy? {{#len:1234}}
I can lazy? {{#len:module}} {{#pos:module|1}} {{#replace:Mississippi|ss|ß}}


===Variables===
===Variables===
Line 27: Line 27:
===Arrays===
===Arrays===


{{#arrdefine|nums|12,34,abc}}
{{#arraydefine:arr|12,34,abc}}
{{#arrprint|nums}}
{{#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.


  1. (actually incorrect)