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-00000045-QINU`"'|two|'"`UNIQ--nowiki-00000046-QINU`"'|'"`UNIQ--nowiki-00000047-QINU`"'}} → {{x2||two||}}
  • {{Template link general/sandbox|x2|'"`UNIQ--nowiki-00000045-QINU`"'|two|'"`UNIQ--nowiki-00000046-QINU`"'|'"`UNIQ--nowiki-00000047-QINU`"'}} → {{x2||two||}}
{{…|x2|<nowiki>2=one</nowiki>|two}}
  • {{Template link general|x2|'"`UNIQ--nowiki-00000049-QINU`"'|two}} → {{x2|2=one|two}}
  • {{Template link general/sandbox|x2|'"`UNIQ--nowiki-00000049-QINU`"'|two}} → {{x2|2=one|two}}
{{…|x2|<nowiki>3=two</nowiki>|<nowiki>2=one</nowiki>}}
  • {{Template link general|x2|'"`UNIQ--nowiki-0000004B-QINU`"'|'"`UNIQ--nowiki-0000004C-QINU`"'}} → {{x2|3=two|2=one}}
  • {{Template link general/sandbox|x2|'"`UNIQ--nowiki-0000004B-QINU`"'|'"`UNIQ--nowiki-0000004C-QINU`"'}} → {{x2|3=two|2=one}}
  • right to left okay