这是Template:Tlg及其沙盒的测试样例。刷新本页以更新内容。 如果这里有许多复杂的模板的用例,可能会因为MediaWiki的技术限制而出错。 您还可以用Special:展开模板来测试模板的使用效果。 您可以通过以下链接测试本模板在不同皮肤下的效果: |
no parameters
{{Tlg}}
→ {{Template:Tlg/testcases}}{{Tlg/sandbox}}
→ {{Template:Tlg/testcases}}- when no parameters supplied, current page name is used
{{…|abc}}
{{…|plaincode=on|x0}}
{{…|boldlink=on|x0}}
{{…|linksize=130%|x0}}
{{…|namesize=130%|x0}}
{{…|x1|one|italic=on}}
{{…|x1|one|italics=on}}
{{…|x0|nolink=on}}
{{Tlg|x0|nolink=on}}
→ {{x0}}{{Tlg/sandbox|x0|nolink=on}}
→ {{x0}}
{{…|x0|braceinside=on}}
{{…|x0|alttext=x0 link}}
{{…|x0|bold=on|code=on|brace=on}}
{{…|x2|bold=on|code=on|one|two}}
{{…|x2|one|two|bold=on|code=on}}
{{…|x2|one|code=on|two|bold=on|three}}
{{…|x2|one|code=on|two|bold=on|three|italic=on}}
{{…|x3|1|2|3|4|5|6|7|8|9|10}}
{{…|x4|1|2|3|4|5|6|7|8|9|10|11}}
{{…|x5|1|2|3|4|5|6|7|8|9|10|11}}
{{…|x1|x=u}}
{{…|x1|x{{=}}u}}
{{…|x1|x<nowiki>=</nowiki>u}}
{{…|x2|<nowiki />|two|<nowiki />|<nowiki />}}
{{…|x2|<nowiki>2=one</nowiki>|two}}
{{…|x2|<nowiki>3=two</nowiki>|<nowiki>2=one</nowiki>}}
Show results
编辑{{…|Min|_show_result=y}}
{{…|Min|-7|_show_result=y}}
{{…|Min|1{{=}}-7|_show_result=y}}
{{Tlg|Min|1{{=}}-7|_show_result=y}}
→ {{Tlg|Min|1{{=}}-7|_show_result=y}}{{Tlg/sandbox|Min|1{{=}}-7|_show_result=y}}
→ {{Tlg/sandbox|Min|1{{=}}-7|_show_result=y}}- Show results = -7
{{…|Min|7|-5|_show_result=y}}
{{…|Min|1{{=}}-7|2{{=}}-5|_show_result=y}}
{{Tlg|Min|1{{=}}-7|2{{=}}-5|_show_result=y}}
→ {{Tlg|Min|1{{=}}-7|2{{=}}-5|_show_result=y}}{{Tlg/sandbox|Min|1{{=}}-7|2{{=}}-5|_show_result=y}}
→ {{Tlg/sandbox|Min|1{{=}}-7|2{{=}}-5|_show_result=y}}- Show results = -5
{{…|Min|-4|-6|0|_show_result=y|_expand=y}}
{{…|Min|1{{=}}-4|2{{=}}-6|3{{=}}0|_show_result=y|_expand=y}}
{{Tlg|Min|1{{=}}-4|2{{=}}-6|3{{=}}0|_show_result=y|_expand=y}}
→ {{Tlg|Min|1{{=}}-4|2{{=}}-6|3=0|_show_result=y|_expand=y}}{{Tlg/sandbox|Min|1{{=}}-4|2{{=}}-6|3{{=}}0|_show_result=y|_expand=y}}
→ {{Tlg/sandbox|Min|1{{=}}-4|2{{=}}-6|3=0|_show_result=y|_expand=y}}- Show results = -6; show template expand link
{{…|ill|Charles Darwin (botanist)|text{{=}}Charles Darwin|fr|Charles Darwin|de|Charles Darwin|es|Charles Darwin|_show_result=y}}
{{Tlg|ill|Charles Darwin (botanist)|text{{=}}Charles Darwin|fr|Charles Darwin|de|Charles Darwin|es|Charles Darwin|_show_result=y}}
→ {{ill|Charles Darwin (botanist)|text=Charles Darwin|fr|Charles Darwin|de|Charles Darwin|es|Charles Darwin}} → Charles Darwin (botanist){{Tlg/sandbox|ill|Charles Darwin (botanist)|text{{=}}Charles Darwin|fr|Charles Darwin|de|Charles Darwin|es|Charles Darwin|_show_result=y}}
→ {{ill|Charles Darwin (botanist)|text=Charles Darwin|fr|Charles Darwin|de|Charles Darwin|es|Charles Darwin}} → Charles Darwin (botanist)- Mixed named positional parameters
{{…|Multiply|1,000|1,000|r{{=}}1|nosep{{=}}1|_show_result=yes|_expand=y}}
{{Tlg|Multiply|1,000|1,000|r{{=}}1|nosep{{=}}1|_show_result=yes|_expand=y}}
→ {{Multiply|1,000|1,000|r=1|nosep=1}} → × [3]{{Tlg/sandbox|Multiply|1,000|1,000|r{{=}}1|nosep{{=}}1|_show_result=yes|_expand=y}}
→ {{Multiply|1,000|1,000|r=1|nosep=1}} → × [4]- Show results = 1000000; show template expand link; Mixed named positional parameters
{{…|Multiply|r{{=}}1|nosep{{=}}1|1,000|1,000|_show_result=yes|_expand=y}}
{{Tlg|Multiply|r{{=}}1|nosep{{=}}1|1,000|1,000|_show_result=yes|_expand=y}}
→ {{Multiply|r=1|nosep=1|1,000|1,000}} → × [5]{{Tlg/sandbox|Multiply|r{{=}}1|nosep{{=}}1|1,000|1,000|_show_result=yes|_expand=y}}
→ {{Multiply|r=1|nosep=1|1,000|1,000}} → × [6]- Show results = 1000000; show template expand link; Mixed named positional parameters
{{…|Multiply|1,000|r{{=}}1|nosep{{=}}1|1,000|_show_result=yes|_expand=y}}
{{Tlg|Multiply|1,000|r{{=}}1|nosep{{=}}1|1,000|_show_result=yes|_expand=y}}
→ {{Multiply|1,000|r=1|nosep=1|1,000}} → × [7]{{Tlg/sandbox|Multiply|1,000|r{{=}}1|nosep{{=}}1|1,000|_show_result=yes|_expand=y}}
→ {{Multiply|1,000|r=1|nosep=1|1,000}} → × [8]- Show results = 1000000; show template expand link; Mixed named positional parameters