Template:Template link general/testcases

no parameters
{{…|Abc}}
  • {{Template link general|Abc}} → {{Abc}}
  • {{Template link general/sandbox|Abc}} → {{Abc}}
{{…|abC}}
  • {{Template link general|abC}} → {{abC}}
  • {{Template link general/sandbox|abC}} → {{abC}}
  • template names are case-sensitive
{{…|abc}}
  • {{Template link general|abc}} → {{abc}}
  • {{Template link general/sandbox|abc}} → {{abc}}
  • first letter is case-insensitive though
{{…|x0}}
  • {{Template link general|x0}} → {{x0}}
  • {{Template link general/sandbox|x0}} → {{x0}}
{{…|code=on|x0}}
  • {{Template link general|code=on|x0}}{{x0}}
  • {{Template link general/sandbox|code=on|x0}}{{x0}}
  • code style
{{…|plaincode=on|x0}}
  • {{Template link general|plaincode=on|x0}}{{x0}}
  • {{Template link general/sandbox|plaincode=on|x0}}{{x0}}
  • plaincode style
{{…|bold=on|x0}}
  • {{Template link general|bold=on|x0}} → {{x0}}
  • {{Template link general/sandbox|bold=on|x0}} → {{x0}}
  • bold style
{{…|boldlink=on|x0}}
  • {{Template link general|boldlink=on|x0}} → {{x0}}
  • {{Template link general/sandbox|boldlink=on|x0}} → {{x0}}
  • boldlink
{{…|linksize=130%|x0}}
  • {{Template link general|linksize=130%|x0}} → {{x0}}
  • {{Template link general/sandbox|linksize=130%|x0}} → {{x0}}
  • linksize
{{…|namesize=130%|x0}}
  • {{Template link general|namesize=130%|x0}} → {{x0}}
  • {{Template link general/sandbox|namesize=130%|x0}} → {{x0}}
  • namesize
{{…|x1|one|italic=on}}
  • {{Template link general|x1|one|italic=on}} → {{x1|one}}
  • {{Template link general/sandbox|x1|one|italic=on}} → {{x1|one}}
  • italic style
{{…|x1|one|italics=on}}
  • {{Template link general|x1|one|italics=on}} → {{x1|one}}
  • {{Template link general/sandbox|x1|one|italics=on}} → {{x1|one}}
{{…|x0|nolink=on}}
  • {{Template link general|x0|nolink=on}} → {{x0}}
  • {{Template link general/sandbox|x0|nolink=on}} → {{x0}}
{{…|x0|subst=on}}
  • {{Template link general|x0|subst=on}} → {{subst:x0}}
  • {{Template link general/sandbox|x0|subst=on}} → {{subst:x0}}
{{…|x0|brace=on}}
  • {{Template link general|x0|brace=on}}{{x0}}
  • {{Template link general/sandbox|x0|brace=on}}{{x0}}
{{…|x0|braceinside=on}}
  • {{Template link general|x0|braceinside=on}} → {{x0}}
  • {{Template link general/sandbox|x0|braceinside=on}} → {{x0}}
{{…|x0|alttext=x0 link}}
  • {{Template link general|x0|alttext=x0 link}} → {{x0 link}}
  • {{Template link general/sandbox|x0|alttext=x0 link}} → {{x0 link}}
{{…|x0|bold=on|code=on|brace=on}}
  • {{Template link general|x0|bold=on|code=on|brace=on}}{{x0}}
  • {{Template link general/sandbox|x0|bold=on|code=on|brace=on}}{{x0}}
  • No reason you can't combine multiple parameter setting
{{…|x1|one}}
  • {{Template link general|x1|one}} → {{x1|one}}
  • {{Template link general/sandbox|x1|one}} → {{x1|one}}
{{…|x2|one|two}}
  • {{Template link general|x2|one|two}} → {{x2|one|two}}
  • {{Template link general/sandbox|x2|one|two}} → {{x2|one|two}}
{{…|x2|bold=on|code=on|one|two}}
  • {{Template link general|x2|bold=on|code=on|one|two}}{{x2|one|two}}
  • {{Template link general/sandbox|x2|bold=on|code=on|one|two}}{{x2|one|two}}
  • Can combine named and anonymous parameters …
{{…|x2|one|two|bold=on|code=on}}
  • {{Template link general|x2|one|two|bold=on|code=on}}{{x2|one|two}}
  • {{Template link general/sandbox|x2|one|two|bold=on|code=on}}{{x2|one|two}}
  • … in any order …
{{…|x2|one|code=on|two|bold=on|three}}
  • {{Template link general|x2|one|code=on|two|bold=on|three}}{{x2|one|two|three}}
  • {{Template link general/sandbox|x2|one|code=on|two|bold=on|three}}{{x2|one|two|three}}
  • … even intermixed …
{{…|x2|one|code=on|two|bold=on|three|italic=on}}
  • {{Template link general|x2|one|code=on|two|bold=on|three|italic=on}}{{x2|one|two|three}}
  • {{Template link general/sandbox|x2|one|code=on|two|bold=on|three|italic=on}}{{x2|one|two|three}}
  • … with many different configurations.
{{…|x3|1|2|3|4|5|6|7|8|9|10}}
  • {{Template link general|x3|1|2|3|4|5|6|7|8|9|10}} → {{x3|1|2|3|4|5|6|7|8|9|10}}
  • {{Template link general/sandbox|x3|1|2|3|4|5|6|7|8|9|10}} → {{x3|1|2|3|4|5|6|7|8|9|10}}
{{…|x4|1|2|3|4|5|6|7|8|9|10|11}}
  • {{Template link general|x4|1|2|3|4|5|6|7|8|9|10|11}} → {{x4|1|2|3|4|5|6|7|8|9|10|11}}
  • {{Template link general/sandbox|x4|1|2|3|4|5|6|7|8|9|10|11}} → {{x4|1|2|3|4|5|6|7|8|9|10|11}}
  • up to 10 parameters, then …
{{…|x5|1|2|3|4|5|6|7|8|9|10|11}}
  • {{Template link general|x5|1|2|3|4|5|6|7|8|9|10|11}} → {{x5|1|2|3|4|5|6|7|8|9|10|11}}
  • {{Template link general/sandbox|x5|1|2|3|4|5|6|7|8|9|10|11}} → {{x5|1|2|3|4|5|6|7|8|9|10|11}}
  • | for more
{{…|x1|x=u}}
  • {{Template link general|x1|x=u}} → {{x1}}
  • {{Template link general/sandbox|x1|x=u}} → {{x1}}
  • "=" won't work
{{…|x1|x=u}}
  • {{Template link general|x1|x=u}} → {{x1|x=u}}
  • {{Template link general/sandbox|x1|x=u}} → {{x1|x=u}}
  • = is okay
{{…|x1|x{{=}}u}}
  • {{Template link general|x1|x{{=}}u}} → {{x1|x=u}}
  • {{Template link general/sandbox|x1|x{{=}}u}} → {{x1|x=u}}
  • {{=}} is okay
{{…|x1|x<nowiki>=</nowiki>u}}
  • {{Template link general|x1|x'"`UNIQ--nowiki-00000043-QINU`"'u}} → {{x1|x=u}}
  • {{Template link general/sandbox|x1|x'"`UNIQ--nowiki-00000043-QINU`"'u}} → {{x1|x=u}}
  • sticky nowiki is okay
{{…|x2|<nowiki />|two|<nowiki />|<nowiki />}}
  • {{Template link general|x2|'"`UNIQ--nowiki-00000047-QINU`"'|two|'"`UNIQ--nowiki-00000048-QINU`"'|'"`UNIQ--nowiki-00000049-QINU`"'}} → {{x2||two||}}
  • {{Template link general/sandbox|x2|'"`UNIQ--nowiki-00000047-QINU`"'|two|'"`UNIQ--nowiki-00000048-QINU`"'|'"`UNIQ--nowiki-00000049-QINU`"'}} → {{x2||two||}}
{{…|x2|<nowiki>2=one</nowiki>|two}}
  • {{Template link general|x2|'"`UNIQ--nowiki-0000004C-QINU`"'|two}} → {{x2|2=one|two}}
  • {{Template link general/sandbox|x2|'"`UNIQ--nowiki-0000004C-QINU`"'|two}} → {{x2|2=one|two}}
{{…|x2|<nowiki>3=two</nowiki>|<nowiki>2=one</nowiki>}}
  • {{Template link general|x2|'"`UNIQ--nowiki-0000004F-QINU`"'|'"`UNIQ--nowiki-00000050-QINU`"'}} → {{x2|3=two|2=one}}
  • {{Template link general/sandbox|x2|'"`UNIQ--nowiki-0000004F-QINU`"'|'"`UNIQ--nowiki-00000050-QINU`"'}} → {{x2|3=two|2=one}}
  • right to left okay

Show results

edit
{{…|Min|_show_result=y}}
  • {{Template link general|Min|_show_result=y}} → {{Min}} →
  • {{Template link general/sandbox|Min|_show_result=y}} → {{Min}} →
  • Show results = empty value
{{…|Min|-7|_show_result=y}}
  • {{Template link general|Min|-7|_show_result=y}} → {{Min|-7}} → -7
  • {{Template link general/sandbox|Min|-7|_show_result=y}} → {{Min|-7}} → -7
  • Show results = -7
{{…|Min|1{{=}}-7|_show_result=y}}
  • {{Template link general|Min|1{{=}&#125;-7|_show_result=y}} → {{Template link general|Min|1{{=}}-7|_show_result=y}}
  • {{Template link general/sandbox|Min|1{{=}&#125;-7|_show_result=y}} → {{Template link general/sandbox|Min|1{{=}}-7|_show_result=y}}
  • Show results = -7
{{…|Min|7|-5|_show_result=y}}
  • {{Template link general|Min|7|-5|_show_result=y}} → {{Min|7|-5}} → -5
  • {{Template link general/sandbox|Min|7|-5|_show_result=y}} → {{Min|7|-5}} → -5
  • Show results = -5
{{…|Min|1{{=}}-7|2{{=}}-5|_show_result=y}}
  • {{Template link general|Min|1{{=}&#125;-7|2{{=}&#125;-5|_show_result=y}} → {{Template link general|Min|1{{=}}-7|2{{=}}-5|_show_result=y}}
  • {{Template link general/sandbox|Min|1{{=}&#125;-7|2{{=}&#125;-5|_show_result=y}} → {{Template link general/sandbox|Min|1{{=}}-7|2{{=}}-5|_show_result=y}}
  • Show results = -5
{{…|Min|-4|-6|0|_show_result=y|_expand=y}}
  • {{Template link general|Min|-4|-6|0|_show_result=y|_expand=y}} → {{Min|-4|-6|0}} → -6 [1]
  • {{Template link general/sandbox|Min|-4|-6|0|_show_result=y|_expand=y}} → {{Min|-4|-6|0}} → -6 [2]
  • Show results = -6; show template expand link
{{…|Min|1{{=}}-4|2{{=}}-6|3{{=}}0|_show_result=y|_expand=y}}
  • {{Template link general|Min|1{{=}&#125;-4|2{{=}&#125;-6|3{{=}}0|_show_result=y|_expand=y}} → {{Template link general|Min|1{{=}}-4|2{{=}}-6|3=0|_show_result=y|_expand=y}}
  • {{Template link general/sandbox|Min|1{{=}&#125;-4|2{{=}&#125;-6|3{{=}}0|_show_result=y|_expand=y}} → {{Template link general/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}}
  • {{Template link general|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) [fr; de; es]
  • {{Template link general/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) [fr; de; es]
  • Mixed named positional parameters
{{…|Multiply|1,000|1,000|r{{=}}1|nosep{{=}}1|_show_result=yes|_expand=y}}
  • {{Template link general|Multiply|1,000|1,000|r{{=}}1|nosep{{=}}1|_show_result=yes|_expand=y}} → {{Multiply|1,000|1,000|r=1|nosep=1}} → 1000000 [3]
  • {{Template link general/sandbox|Multiply|1,000|1,000|r{{=}}1|nosep{{=}}1|_show_result=yes|_expand=y}} → {{Multiply|1,000|1,000|r=1|nosep=1}} → 1000000 [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}}
  • {{Template link general|Multiply|r{{=}}1|nosep{{=}}1|1,000|1,000|_show_result=yes|_expand=y}} → {{Multiply|r=1|nosep=1|1,000|1,000}} → 1000000 [5]
  • {{Template link general/sandbox|Multiply|r{{=}}1|nosep{{=}}1|1,000|1,000|_show_result=yes|_expand=y}} → {{Multiply|r=1|nosep=1|1,000|1,000}} → 1000000 [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}}
  • {{Template link general|Multiply|1,000|r{{=}}1|nosep{{=}}1|1,000|_show_result=yes|_expand=y}} → {{Multiply|1,000|r=1|nosep=1|1,000}} → 1000000 [7]
  • {{Template link general/sandbox|Multiply|1,000|r{{=}}1|nosep{{=}}1|1,000|_show_result=yes|_expand=y}} → {{Multiply|1,000|r=1|nosep=1|1,000}} → 1000000 [8]
  • Show results = 1000000; show template expand link; Mixed named positional parameters