模板:Tlg/testcases
這是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