Template:Template link with parameters/testcases
Appearance
This is the template test cases page for the sandbox of Template:Template link with parameters. to update the examples. If there are many examples of a complicated template, later ones may break due to limits in MediaWiki; see the HTML comment "NewPP limit report" in the rendered page. You can also use Special:ExpandTemplates to examine the results of template uses. You can test how this page looks in the different skins and parsers with these links: |
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. |
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}}
{{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}}