Changes
Jump to navigation
Jump to search
← Older edit
Newer edit →
User:Pangaea/Artisan Jars vs Kegs
(view source)
Revision as of 18:28, 9 September 2022
462 bytes added
,
18:28, 9 September 2022
Heavy-handed, but seems to work
Line 3:
Line 3:
<code><nowiki>{{ #arraydefine: array name | array values | delimiter (defaults to comma) | options }}</nowiki></code><br/>
<code><nowiki>{{ #arraydefine: array name | array values | delimiter (defaults to comma) | options }}</nowiki></code><br/>
<code><nowiki>{{#arrayprint:key|delimiter|pattern|subject|options}}</nowiki></code><br/>
<code><nowiki>{{#arrayprint:key|delimiter|pattern|subject|options}}</nowiki></code><br/>
−
<code><nowiki>{{#expr: expression }}</nowiki></code>
+
<code><nowiki>{{#expr: expression }}</nowiki></code
><br/>
+
<code><nowiki>{{#ifexpr: expression | value if true | value if false }}</nowiki></code><br/
>
+
====Simple test====
+
{{ #arraydefine: test | 25 }}
+
{{ #arrayprint: test }} <br/>
+
{{ #expr:{{ #arrayprint: test }}/2}}
−
{{ #arraydefine:
test
|
10
}}
+
====Multiple array test====
+
{{ #arraydefine:
a | 25 }}
+
{{ #arraydefine: b | 50 }}
+
{{#ifexpr: {{ #arrayprint: a }} > {{ #arrayprint: b }} | a is bigger than b
|
a is smaller than b
}}
−
{{ #
arrayprint
:
test
}}
+
{{ #
arraydefine
:
a | 100
}}
−
+
{{ #arraydefine: b | 50 }}
−
{{ #
expr
:{{ #arrayprint:
test
}}
/2
}}
+
{{#
ifexpr
: {{ #arrayprint:
a }} > {{ #arrayprint: b
}}
| a is bigger than b | a is smaller than b
}}
Pangaea
62
edits
Navigation menu
Personal tools
Create account
Log in
Namespaces
User page
Discussion
Variants
Views
Read
View source
View history
More
Search
Navigation
Main page
Recent changes
Admin noticeboard
Help Editing
Random page
Official Links
Official Site
Official Forums
Official Merchandise
Discord
Reddit
Tools
User contributions
Logs
View user groups
Upload file
Special pages
Printable version