User:Valento/Sandbox/Result template
From Guild Wars 2 Wiki
< User:Valento | Sandbox
Jump to navigationJump to search
- This is the raw value passed to this template: {{{1}}}
- This is the raw value shown with a default value of "1": 1
- This is the raw value passed multiplied by 2 (without default): Expression error: Unrecognized punctuation character "{".
- This is the raw value passed multiplied by 2 (with default): 2
Tests[edit]
Case 1
Calling with "normal" template:
{{User:Valento/Sandbox/Result template|20}}
- This is the raw value passed to this template: 20
- This is the raw value shown with a default value of "1": 20
- This is the raw value passed multiplied by 2 (without default): 40
- This is the raw value passed multiplied by 2 (with default): 40
Case 2
Calling with "normal" template, but omitting the first unnamed param:
{{User:Valento/Sandbox/Result template}}
- This is the raw value passed to this template: {{{1}}}
- This is the raw value shown with a default value of "1": 1
- This is the raw value passed multiplied by 2 (without default): Expression error: Unrecognized punctuation character "{".
- This is the raw value passed multiplied by 2 (with default): 2
Case 3
Calling with "normal" template, but setting the first unnamed param (1) to blank:
{{User:Valento/Sandbox/Result template|1=}}
- This is the raw value passed to this template:
- This is the raw value shown with a default value of "1":
- This is the raw value passed multiplied by 2 (without default): Expression error: Unexpected * operator.
- This is the raw value passed multiplied by 2 (with default): Expression error: Unexpected * operator.
Case 4
Calling with "ask" template pulling skill Lava Font "Has recharge time" value (6):
{{User:Valento/Sandbox/Ask template|Lava Font}}
<includeonly>{{#ask: [[{{{1}}}]]
|?Has recharge time
|?Has canonical name
| link = none
| format = template
| template = User:Valento/Sandbox/Result template
| userparam = test
}}
Query results:
{{#ask: [[{{{1}}}]]
| mainlabel = Parameter 1
|?Has recharge time = Parameter 2 (Has recharge time)
|?Has canonical name = Parameter 3 (Has canonical name)
| link = none
}}</includeonly>
Case 5
Calling with "ask" template pulling skill Fireball "Has recharge time" value (non-existent, blank):
{{User:Valento/Sandbox/Ask template|Fireball}}
<includeonly>{{#ask: [[{{{1}}}]]
|?Has recharge time
|?Has canonical name
| link = none
| format = template
| template = User:Valento/Sandbox/Result template
| userparam = test
}}
Query results:
{{#ask: [[{{{1}}}]]
| mainlabel = Parameter 1
|?Has recharge time = Parameter 2 (Has recharge time)
|?Has canonical name = Parameter 3 (Has canonical name)
| link = none
}}</includeonly>