User:Thecaligarmo/Sandbox/tsandbox4

From Guild Wars 2 Wiki
Jump to navigationJump to search

Array[edit]

;Some other item of awesome importance:2;Some super awesome item of awesome importance 1:3;Some super awesome item of awesome importance 2:4;Some super awesome of awesome importanceitem 3:5;Some super awesome of awesome importanceitem 4:6;Some super awesome of awesome importanceitem 5:7;Some super awesome of awesome importanceitem 6:8;Some super awesome of awesome importanceitem 7:9;Some super awesome of awesome importanceitem 8:10;Some item of awesome importance:1;Some other item of awesome importance:2;Some super awesome item of awesome importance 1:3;Some super awesome item of awesome importance 2:4;Some super awesome of awesome importanceitem 3:5;Some super awesome of awesome importanceitem 4:6;Some super awesome of awesome importanceitem 5:7;Some super awesome of awesome importanceitem 6:8;Some super awesome of awesome importanceitem 7:9;Some super awesome of awesome importanceitem 8:10;Some item of awesome importance:1;Some other item of awesome importance:2;Some super awesome item of awesome importance 1:3;Some super awesome item of awesome importance 2:4;Some super awesome of awesome importanceitem 3:5;Some super awesome of awesome importanceitem 4:6;Some super awesome of awesome importanceitem 5:7;Some super awesome of awesome importanceitem 6:8;Some super awesome of awesome importanceitem 7:9;Some super awesome of awesome importanceitem 8:10;Some super awesome item of awesome importance 9:11

Cur Num: 2

Search: 11


Multi-Array[edit]

Basic use[edit]

Suppose our array is: arr = x:1,2,3;y:4,5,6;zz:7,8,9

Then, if we look for the key x:
{{User:Thecaligarmo/Sandbox/template11 | x | {{#var:arr}}}}

We get: 1,2,3.

Then, if we look for the key y:
{{User:Thecaligarmo/Sandbox/template11 | y | {{#var:arr}}}}

We get: 4,5,6.

Nonexistant[edit]

If we pass something that isn't in the array:

{{#if: {{User:Thecaligarmo/Sandbox/template11 | a | {{#var:arr}} }} | Key exists | Key doesn't exist}}

gives:

Key doesn't exist

Substring[edit]

Notice how the array has 'zz' as a key, but not 'z'. Here is what we get if we call each of them:

  • z - Key doesn't exist
  • zz - Key exists