Jump to content

Template:Template link with parameters/testcases

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by MSGJ (talk | contribs) at 13:35, 23 January 2017 (MSGJ moved page Template:Tlp/testcases to Template:Template link with parameters/testcases: expand name of template). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Testing {{tlp/sandbox}}

CodeResultComment
{{tlp/sandbox}} {{tlp|...}} Shows its own syntax.
{{tlp/sandbox|name}} {{name}}
{{tlp/sandbox|name|one}} {{name|one}}
{{tlp/sandbox|name|one|two}} {{name|one|two}}
{{tlp/sandbox|name|a|b|c|d|e|f|g|h|i|j}} {{name|a|b|c|d|e|f|g|h}} Shows up to eight parameters. The rest are dropped.
{{tlp/sandbox|name|three|four}} {{name|||three|four}} Also shows empty parameters.
{{tlp/sandbox|name|three}} {{name|||three||}} Even shows empty parameters that come in the end.
{{tlp/sandbox|name|2=one=a|3=two=b}} {{name|one=a|two=b}} Use numbered parameters to fix it. Remember to start from 2, since the "name" is number 1.


Testing {{tlp}}

CodeResultComment
{{tlp}} {{Template:Template link with parameters/testcases}} Shows its own syntax.
{{tlp|name}} {{name}}
{{tlp|name|one}} {{name|one}}
{{tlp|name|one|two}} {{name|one|two}}
{{tlp|name|a|b|c|d|e|f|g|h|i|j}} {{name|a|b|c|d|e|f|g|h|i}} Shows up to eight parameters. The rest are dropped.
{{tlp|name|three|four}} {{name|three|four}} Also shows empty parameters.
{{tlp|name|three}} {{name|three}} Even shows empty parameters that come in the end.
{{tlp|name|2=one=a|3=two=b}} {{name|one=a|two=b}} Use numbered parameters to fix it. Remember to start from 2, since the "name" is number 1.