Jump to content

Template:Template link with parameters/testcases

From Wikipedia, the free encyclopedia

Testing {{tlp/sandbox}}

[edit]
Code Result Comment
{{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}}

[edit]
Code Result Comment
{{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.

Other

[edit]
With <var>...</var>
{{Template link with parameters|Example|<var>param1</var>|<var>param2</var>}}

{{Template link with parameters}}

{{Example|param1|param2}}

{{Template link with parameters/sandbox}}

{{Example|param1|param2}}

With {{var}}
{{Template link with parameters|Example|2=<var   style="padding-right: 1px;"  >param1</var> |3=<var   style="padding-right: 1px;"  >param2</var>}}

{{Template link with parameters}}

{{Example|param1|param2}}

{{Template link with parameters/sandbox}}

{{Example|param1|param2}}