Link to self via template test
This is an old revision of this page, as edited January 10, 2018, 12:11 PM by ACL(contribs). It may differ significantly from the current revision.
[TEMPLATE]Infobox test 25
|Header=with user provided parameter
|Field 1={{{1|}}}
|Field 2=[wiki]{{{1|}}}[/wiki]
|Field 3=[wiki="{{{1|}}}"]{{{1|}}}[/wiki]
|Field 4=[if="{{{1|}}}"]{{{1|}}}[else /]no[/if]
|Field 5=[if="{{{1|}}}"][wiki]{{{1|}}}[/wiki][else /]no[/if]
|Field 6=[if="{{{1|}}}"][wiki="{{{1|}}}"]{{{1|}}}[/wiki][else /]no[/if]
[/TEMPLATE]
[TEMPLATE]Infobox test 25
|Header=with PAGENAME variable
|Field 1=[var]PAGENAME[/var]
|Field 2=[wiki][var]PAGENAME[/var][/wiki]
|Field 3=[wiki="[var]PAGENAME[/var]"][var]PAGENAME[/var][/wiki]
|Field 4=[if=true][var]PAGENAME[/var][else /]no[/if]
|Field 5=[if=true][wiki][var]PAGENAME[/var][/wiki][else /]no[/if]
|Field 6=[if=true][wiki="[var]PAGENAME[/var]"][var]PAGENAME[/var][/wiki][else /]no[/if]
[/TEMPLATE]
[TEMPLATE]Infobox test 25
|Header=with user provided parameter with default value
|Field 1={{{2|Sort table}}} testing
|Field 2=[wiki]{{{2|Sort table}}} testing[/wiki]
|Field 3=[wiki="{{{2|Sort table}}} testing"]{{{2|Sort table}}} testing[/wiki]
|Field 4=[if="{{{2|}}}"]{{{2|Sort table}}} testing[else /]no[/if]
|Field 5=[if="{{{2|}}}"][wiki]{{{2|Sort table}}} testing[/wiki][else /]no[/if]
|Field 6=[if="{{{2|}}}"][wiki="{{{2|Sort table}}} testing"]{{{2|Sort table}}} testing[/wiki][else /]no[/if]
[/TEMPLATE]