Template:Clickable button 2/testcases
Jump to navigation
Jump to search
This is the template test cases page for the sandbox of Template:Clickable button 2. 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 with these links: |
- To do
- Fix #URL placed as label by removing the extra brackets.
- Solve #URL only (alt) by letting parameters be in all caps.
- Somehow make the highlights of the button text act exactly like links do regardless if a link is present or not. See Template:Clickable button 2/styles.css.
- If
p.bracketsremoved
is true and|2=
unset, then split the first parameter in two across a pipe.
Blank
{{Clickable button 2}}
{{Clickable button 2}}
→{{Clickable button 2/sandbox}}
→ Error: expandTemplate: template "Clickable button 2/sandbox" does not exist<strong class="error">Error: expandTemplate: template "Clickable button 2/sandbox" does not exist</strong>
{{Clickable button}}
→<span class="mw-ui-button ">Button text</span>
No link
{{Clickable button 2||Foo}}
{{Clickable button 2||Foo}}
→<span class="plainlinks clickbutton"><span class="mw-ui-button">Foo</span></span>
{{Clickable button 2/sandbox||Foo}}
→ Error: expandTemplate: template "Clickable button 2/sandbox" does not exist<strong class="error">Error: expandTemplate: template "Clickable button 2/sandbox" does not exist</strong>
{{Clickable button||Foo}}
→<span class="mw-ui-button "></span>
nolink set
{{Clickable button 2|bar|link=no}}
{{Clickable button 2|bar|link=no}}
→<span class="plainlinks clickbutton"><span class="mw-ui-button">bar</span></span>
{{Clickable button 2/sandbox|bar|link=no}}
→ Error: expandTemplate: template "Clickable button 2/sandbox" does not exist<strong class="error">Error: expandTemplate: template "Clickable button 2/sandbox" does not exist</strong>
{{Clickable button|bar|link=no}}
→<span class="mw-ui-button ">bar</span>
1st set nil; 2nd unset
{{Clickable button 2|}}
{{Clickable button 2|}}
→{{Clickable button 2/sandbox|}}
→ Error: expandTemplate: template "Clickable button 2/sandbox" does not exist<strong class="error">Error: expandTemplate: template "Clickable button 2/sandbox" does not exist</strong>
{{Clickable button|}}
→<span class="mw-ui-button "></span>
nolink and URL both set
{{Clickable button 2|bar|link=no|url=http://www.example.com}}
{{Clickable button 2|bar|link=no|url=http://www.example.com}}
→<span class="plainlinks clickbutton"><span class="mw-ui-button">bar</span></span>
{{Clickable button 2/sandbox|bar|link=no|url=http://www.example.com}}
→ Error: expandTemplate: template "Clickable button 2/sandbox" does not exist<strong class="error">Error: expandTemplate: template "Clickable button 2/sandbox" does not exist</strong>
{{Clickable button|bar|link=no|url=http://www.example.com}}
→<span class="mw-ui-button ">bar</span>
nolink and URL both set (alt)
{{Clickable button 2|link=no|url=http://www.example.com}}
{{Clickable button 2|link=no|url=http://www.example.com}}
→<span class="plainlinks clickbutton">[[Template:Clickable button 2/testcases|<span class="mw-ui-button">http://www.example.com</span>]]</span>
{{Clickable button 2/sandbox|link=no|url=http://www.example.com}}
→ Error: expandTemplate: template "Clickable button 2/sandbox" does not exist<strong class="error">Error: expandTemplate: template "Clickable button 2/sandbox" does not exist</strong>
{{Clickable button|link=no|url=http://www.example.com}}
→<span class="mw-ui-button ">Button text</span>
nolink and URL both set (alt) with nowiki
{{Clickable button 2|link=no|url=<nowiki>http://www.example.com</nowiki>}}
{{Clickable button 2|link=no|url='"`UNIQ--nowiki-00000000-QINU`"'}}
→<span class="plainlinks clickbutton">[[Template:Clickable button 2/testcases|<span class="mw-ui-button">'"`UNIQ--nowiki-00000000-QINU`"'</span>]]</span>
{{Clickable button 2/sandbox|link=no|url='"`UNIQ--nowiki-00000000-QINU`"'}}
→ Error: expandTemplate: template "Clickable button 2/sandbox" does not exist<strong class="error">Error: expandTemplate: template "Clickable button 2/sandbox" does not exist</strong>
{{Clickable button|link=no|url='"`UNIQ--nowiki-00000000-QINU`"'}}
→<span class="mw-ui-button ">Button text</span>
nolink, URL, and label all set
{{Clickable button 2|2=Foobar|link=no|url=http://www.example.com}}
{{Clickable button 2|2=Foobar|link=no|url=http://www.example.com}}
→<span class="plainlinks clickbutton"><span class="mw-ui-button">Foobar</span></span>
{{Clickable button 2/sandbox|2=Foobar|link=no|url=http://www.example.com}}
→ Error: expandTemplate: template "Clickable button 2/sandbox" does not exist<strong class="error">Error: expandTemplate: template "Clickable button 2/sandbox" does not exist</strong>
{{Clickable button|2=Foobar|link=no|url=http://www.example.com}}
→<span class="mw-ui-button ">Button text</span>
nolink, URL, and label all set (alt)
{{Clickable button 2|Foobar|link=no|url=http://www.example.com}}
{{Clickable button 2|Foobar|link=no|url=http://www.example.com}}
→<span class="plainlinks clickbutton"><span class="mw-ui-button">Foobar</span></span>
{{Clickable button 2/sandbox|Foobar|link=no|url=http://www.example.com}}
→ Error: expandTemplate: template "Clickable button 2/sandbox" does not exist<strong class="error">Error: expandTemplate: template "Clickable button 2/sandbox" does not exist</strong>
{{Clickable button|Foobar|link=no|url=http://www.example.com}}
→<span class="mw-ui-button ">Foobar</span>
Link only
{{Clickable button 2|Foo}}
{{Clickable button 2|Foo}}
→<span class="plainlinks clickbutton">[[Foo|<span class="mw-ui-button">Foo</span>]]</span>
{{Clickable button 2/sandbox|Foo}}
→ Error: expandTemplate: template "Clickable button 2/sandbox" does not exist<strong class="error">Error: expandTemplate: template "Clickable button 2/sandbox" does not exist</strong>
{{Clickable button|Foo}}
→<span class="mw-ui-button ">Foo</span>
URL only
{{Clickable button 2|url=http://www.example.com}}
{{Clickable button 2|url=http://www.example.com}}
→<span class="plainlinks clickbutton">[http://www.example.com <span class="mw-ui-button">http://www.example.com</span>]</span>
{{Clickable button 2/sandbox|url=http://www.example.com}}
→ Error: expandTemplate: template "Clickable button 2/sandbox" does not exist<strong class="error">Error: expandTemplate: template "Clickable button 2/sandbox" does not exist</strong>
{{Clickable button|url=http://www.example.com}}
→<span class="mw-ui-button ">Button text</span>
URL placed as label
{{Clickable button 2|http://www.example.com}}
{{Clickable button 2|http://www.example.com}}
→<span class="plainlinks clickbutton">[[http://www.example.com|<span class="mw-ui-button">http://www.example.com</span>]]</span>
{{Clickable button 2/sandbox|http://www.example.com}}
→ Error: expandTemplate: template "Clickable button 2/sandbox" does not exist<strong class="error">Error: expandTemplate: template "Clickable button 2/sandbox" does not exist</strong>
{{Clickable button|http://www.example.com}}
→<span class="mw-ui-button ">http://www.example.com</span>
Link and display
{{Clickable button 2|Foo|Bar}}
{{Clickable button 2|Foo|Bar}}
→<span class="plainlinks clickbutton">[[Foo|<span class="mw-ui-button">Bar</span>]]</span>
{{Clickable button 2/sandbox|Foo|Bar}}
→ Error: expandTemplate: template "Clickable button 2/sandbox" does not exist<strong class="error">Error: expandTemplate: template "Clickable button 2/sandbox" does not exist</strong>
{{Clickable button|Foo|Bar}}
→<span class="mw-ui-button ">Foo</span>
URL and display
{{Clickable button 2|Foo|url=http://www.example.com}}
{{Clickable button 2|Foo|url=http://www.example.com}}
→<span class="plainlinks clickbutton">[http://www.example.com <span class="mw-ui-button">Foo</span>]</span>
{{Clickable button 2/sandbox|Foo|url=http://www.example.com}}
→ Error: expandTemplate: template "Clickable button 2/sandbox" does not exist<strong class="error">Error: expandTemplate: template "Clickable button 2/sandbox" does not exist</strong>
{{Clickable button|Foo|url=http://www.example.com}}
→<span class="mw-ui-button ">Foo</span>
URL and display (alt)
{{Clickable button 2|2=Foo|url=http://www.example.com}}
{{Clickable button 2|2=Foo|url=http://www.example.com}}
→<span class="plainlinks clickbutton">[http://www.example.com <span class="mw-ui-button">Foo</span>]</span>
{{Clickable button 2/sandbox|2=Foo|url=http://www.example.com}}
→ Error: expandTemplate: template "Clickable button 2/sandbox" does not exist<strong class="error">Error: expandTemplate: template "Clickable button 2/sandbox" does not exist</strong>
{{Clickable button|2=Foo|url=http://www.example.com}}
→<span class="mw-ui-button ">Button text</span>
Constructive
{{Clickable button 2|Foo|class=mw-ui-constructive}}
{{Clickable button 2|Foo|class=mw-ui-constructive}}
→<span class="plainlinks clickbutton">[[Foo|<span class="mw-ui-button mw-ui-constructive">Foo</span>]]</span>
{{Clickable button 2/sandbox|Foo|class=mw-ui-constructive}}
→ Error: expandTemplate: template "Clickable button 2/sandbox" does not exist<strong class="error">Error: expandTemplate: template "Clickable button 2/sandbox" does not exist</strong>
{{Clickable button|Foo|class=mw-ui-constructive}}
→<span class="mw-ui-button ">Foo</span>
Progressive
{{Clickable button 2|Foo|class=mw-ui-progressive}}
{{Clickable button 2|Foo|class=mw-ui-progressive}}
→<span class="plainlinks clickbutton">[[Foo|<span class="mw-ui-button mw-ui-progressive">Foo</span>]]</span>
{{Clickable button 2/sandbox|Foo|class=mw-ui-progressive}}
→ Error: expandTemplate: template "Clickable button 2/sandbox" does not exist<strong class="error">Error: expandTemplate: template "Clickable button 2/sandbox" does not exist</strong>
{{Clickable button|Foo|class=mw-ui-progressive}}
→<span class="mw-ui-button ">Foo</span>
Destructive
{{Clickable button 2|Foo|class=mw-ui-destructive}}
{{Clickable button 2|Foo|class=mw-ui-destructive}}
→<span class="plainlinks clickbutton">[[Foo|<span class="mw-ui-button mw-ui-destructive">Foo</span>]]</span>
{{Clickable button 2/sandbox|Foo|class=mw-ui-destructive}}
→ Error: expandTemplate: template "Clickable button 2/sandbox" does not exist<strong class="error">Error: expandTemplate: template "Clickable button 2/sandbox" does not exist</strong>
{{Clickable button|Foo|class=mw-ui-destructive}}
→<span class="mw-ui-button ">Foo</span>
Same page link
{{Clickable button 2|Template:Clickable button 2/testcases}}
{{Clickable button 2|Template:Clickable button 2/testcases}}
→<span class="plainlinks clickbutton">[[Template:Clickable button 2/testcases|<span class="mw-ui-button" style="background-color:#CCC;color:#666">Template:Clickable button 2/testcases</span>]]</span>
{{Clickable button 2/sandbox|Template:Clickable button 2/testcases}}
→ Error: expandTemplate: template "Clickable button 2/sandbox" does not exist<strong class="error">Error: expandTemplate: template "Clickable button 2/sandbox" does not exist</strong>
{{Clickable button|Template:Clickable button 2/testcases}}
→<span class="mw-ui-button ">Template:Clickable button 2/testcases</span>
Same page constructive
{{Clickable button 2|Template:Clickable button 2/testcases|class=mw-ui-constructive}}
{{Clickable button 2|Template:Clickable button 2/testcases|class=mw-ui-constructive}}
→<span class="plainlinks clickbutton">[[Template:Clickable button 2/testcases|<span class="mw-ui-button mw-ui-constructive" style="background-color:#2962CB;color:#fff">Template:Clickable button 2/testcases</span>]]</span>
{{Clickable button 2/sandbox|Template:Clickable button 2/testcases|class=mw-ui-constructive}}
→ Error: expandTemplate: template "Clickable button 2/sandbox" does not exist<strong class="error">Error: expandTemplate: template "Clickable button 2/sandbox" does not exist</strong>
{{Clickable button|Template:Clickable button 2/testcases|class=mw-ui-constructive}}
→<span class="mw-ui-button ">Template:Clickable button 2/testcases</span>
Same page progressive
{{Clickable button 2|Template:Clickable button 2/testcases|class=mw-ui-progressive}}
{{Clickable button 2|Template:Clickable button 2/testcases|class=mw-ui-progressive}}
→<span class="plainlinks clickbutton">[[Template:Clickable button 2/testcases|<span class="mw-ui-button mw-ui-progressive" style="background-color:#2962CB;color:#fff">Template:Clickable button 2/testcases</span>]]</span>
{{Clickable button 2/sandbox|Template:Clickable button 2/testcases|class=mw-ui-progressive}}
→ Error: expandTemplate: template "Clickable button 2/sandbox" does not exist<strong class="error">Error: expandTemplate: template "Clickable button 2/sandbox" does not exist</strong>
{{Clickable button|Template:Clickable button 2/testcases|class=mw-ui-progressive}}
→<span class="mw-ui-button ">Template:Clickable button 2/testcases</span>
Same page destructive
{{Clickable button 2|Template:Clickable button 2/testcases|class=mw-ui-destructive}}
{{Clickable button 2|Template:Clickable button 2/testcases|class=mw-ui-destructive}}
→<span class="plainlinks clickbutton">[[Template:Clickable button 2/testcases|<span class="mw-ui-button mw-ui-destructive" style="background-color:#A6170F">Template:Clickable button 2/testcases</span>]]</span>
{{Clickable button 2/sandbox|Template:Clickable button 2/testcases|class=mw-ui-destructive}}
→ Error: expandTemplate: template "Clickable button 2/sandbox" does not exist<strong class="error">Error: expandTemplate: template "Clickable button 2/sandbox" does not exist</strong>
{{Clickable button|Template:Clickable button 2/testcases|class=mw-ui-destructive}}
→<span class="mw-ui-button ">Template:Clickable button 2/testcases</span>
Class case
{{Clickable button 2|Foo|class=MW-UI-Constructive}}
{{Clickable button 2|Foo|class=MW-UI-Constructive}}
→<span class="plainlinks clickbutton">[[Foo|<span class="mw-ui-button mw-ui-constructive">Foo</span>]]</span>
{{Clickable button 2/sandbox|Foo|class=MW-UI-Constructive}}
→ Error: expandTemplate: template "Clickable button 2/sandbox" does not exist<strong class="error">Error: expandTemplate: template "Clickable button 2/sandbox" does not exist</strong>
{{Clickable button|Foo|class=MW-UI-Constructive}}
→<span class="mw-ui-button ">Foo</span>
Old button class red
{{Clickable button 2|Foo|category=no|class=ui-button-red}}
{{Clickable button 2|Foo|category=no|class=ui-button-red}}
→<span class="plainlinks clickbutton">[[Foo|<span class="submit ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only ui-button-text ui-button-red">Foo</span>]]</span>
{{Clickable button 2/sandbox|Foo|category=no|class=ui-button-red}}
→ Error: expandTemplate: template "Clickable button 2/sandbox" does not exist<strong class="error">Error: expandTemplate: template "Clickable button 2/sandbox" does not exist</strong>
{{Clickable button|Foo|category=no|class=ui-button-red}}
→<span class="mw-ui-button ">Foo</span>
Old button class green
{{Clickable button 2|Foo|category=no|class=ui-button-green}}
{{Clickable button 2|Foo|category=no|class=ui-button-green}}
→<span class="plainlinks clickbutton">[[Foo|<span class="submit ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only ui-button-text ui-button-green">Foo</span>]]</span>
{{Clickable button 2/sandbox|Foo|category=no|class=ui-button-green}}
→ Error: expandTemplate: template "Clickable button 2/sandbox" does not exist<strong class="error">Error: expandTemplate: template "Clickable button 2/sandbox" does not exist</strong>
{{Clickable button|Foo|category=no|class=ui-button-green}}
→<span class="mw-ui-button ">Foo</span>
Old button class blue
{{Clickable button 2|Foo|category=no|class=ui-button-blue}}
{{Clickable button 2|Foo|category=no|class=ui-button-blue}}
→<span class="plainlinks clickbutton">[[Foo|<span class="submit ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only ui-button-text ui-button-blue">Foo</span>]]</span>
{{Clickable button 2/sandbox|Foo|category=no|class=ui-button-blue}}
→ Error: expandTemplate: template "Clickable button 2/sandbox" does not exist<strong class="error">Error: expandTemplate: template "Clickable button 2/sandbox" does not exist</strong>
{{Clickable button|Foo|category=no|class=ui-button-blue}}
→<span class="mw-ui-button ">Foo</span>
Style
{{Clickable button 2|Foo|style=width:300px}}
{{Clickable button 2|Foo|style=width:300px}}
→<span class="plainlinks clickbutton">[[Foo|<span class="mw-ui-button" style="width:300px">Foo</span>]]</span>
{{Clickable button 2/sandbox|Foo|style=width:300px}}
→ Error: expandTemplate: template "Clickable button 2/sandbox" does not exist<strong class="error">Error: expandTemplate: template "Clickable button 2/sandbox" does not exist</strong>
{{Clickable button|Foo|style=width:300px}}
→<span class="mw-ui-button ">Foo</span>
Arbitrary class
{{Clickable button 2|Foo|class=center}}
{{Clickable button 2|Foo|class=center}}
→<span class="plainlinks clickbutton">[[Foo|<span class="mw-ui-button center">Foo</span>]]</span>
{{Clickable button 2/sandbox|Foo|class=center}}
→ Error: expandTemplate: template "Clickable button 2/sandbox" does not exist<strong class="error">Error: expandTemplate: template "Clickable button 2/sandbox" does not exist</strong>
{{Clickable button|Foo|class=center}}
→<span class="mw-ui-button ">Foo</span>
Bad page name
{{Clickable button 2|Foo<>Bar}}
{{Clickable button 2|Foo<>Bar}}
→<span class="plainlinks clickbutton">[[Foo<>Bar|<span class="mw-ui-button">Foo<>Bar</span>]]</span>
{{Clickable button 2/sandbox|Foo<>Bar}}
→ Error: expandTemplate: template "Clickable button 2/sandbox" does not exist<strong class="error">Error: expandTemplate: template "Clickable button 2/sandbox" does not exist</strong>
{{Clickable button|Foo<>Bar}}
→<span class="mw-ui-button ">Foo<>Bar</span>
Bad page name with URL specified
{{Clickable button 2|Foo<>Bar|url=http://www.example.com}}
{{Clickable button 2|Foo<>Bar|url=http://www.example.com}}
→<span class="plainlinks clickbutton">[http://www.example.com <span class="mw-ui-button">Foo<>Bar</span>]</span>
{{Clickable button 2/sandbox|Foo<>Bar|url=http://www.example.com}}
→ Error: expandTemplate: template "Clickable button 2/sandbox" does not exist<strong class="error">Error: expandTemplate: template "Clickable button 2/sandbox" does not exist</strong>
{{Clickable button|Foo<>Bar|url=http://www.example.com}}
→<span class="mw-ui-button ">Foo<>Bar</span>
Color set to red
{{Clickable button 2|Foo|color=red}}
{{Clickable button 2|Foo|color=red}}
→<span class="plainlinks clickbutton">[[Foo|<span class="mw-ui-button mw-ui-destructive">Foo</span>]]</span>
{{Clickable button 2/sandbox|Foo|color=red}}
→ Error: expandTemplate: template "Clickable button 2/sandbox" does not exist<strong class="error">Error: expandTemplate: template "Clickable button 2/sandbox" does not exist</strong>
{{Clickable button|Foo|color=red}}
→<span class="mw-ui-button mw-ui-destructive">Foo</span>
Color set to green
{{Clickable button 2|Foo|color=green}}
{{Clickable button 2|Foo|color=green}}
→<span class="plainlinks clickbutton">[[Foo|<span class="mw-ui-button mw-ui-constructive">Foo</span>]]</span>
{{Clickable button 2/sandbox|Foo|color=green}}
→ Error: expandTemplate: template "Clickable button 2/sandbox" does not exist<strong class="error">Error: expandTemplate: template "Clickable button 2/sandbox" does not exist</strong>
{{Clickable button|Foo|color=green}}
→<span class="mw-ui-button mw-ui-constructive">Foo</span>
Color set to BLUE
{{Clickable button 2|Foo|color=BLUE}}
{{Clickable button 2|Foo|color=BLUE}}
→<span class="plainlinks clickbutton">[[Foo|<span class="mw-ui-button mw-ui-progressive">Foo</span>]]</span>
{{Clickable button 2/sandbox|Foo|color=BLUE}}
→ Error: expandTemplate: template "Clickable button 2/sandbox" does not exist<strong class="error">Error: expandTemplate: template "Clickable button 2/sandbox" does not exist</strong>
{{Clickable button|Foo|color=BLUE}}
→<span class="mw-ui-button ">Foo</span>
Color set to red and class to blue
{{Clickable button 2|Foo|class=mw-ui-progressive|color=red}}
{{Clickable button 2|Foo|class=mw-ui-progressive|color=red}}
→<span class="plainlinks clickbutton">[[Foo|<span class="mw-ui-button mw-ui-progressive">Foo</span>]]</span>
{{Clickable button 2/sandbox|Foo|class=mw-ui-progressive|color=red}}
→ Error: expandTemplate: template "Clickable button 2/sandbox" does not exist<strong class="error">Error: expandTemplate: template "Clickable button 2/sandbox" does not exist</strong>
{{Clickable button|Foo|class=mw-ui-progressive|color=red}}
→<span class="mw-ui-button mw-ui-destructive">Foo</span>
URL only (alt)
{{Clickable button 2|URL=http://www.example.com}}
{{Clickable button 2|URL=http://www.example.com}}
→{{Clickable button 2/sandbox|URL=http://www.example.com}}
→ Error: expandTemplate: template "Clickable button 2/sandbox" does not exist<strong class="error">Error: expandTemplate: template "Clickable button 2/sandbox" does not exist</strong>
{{Clickable button|URL=http://www.example.com}}
→<span class="mw-ui-button ">Button text</span>
Brackets around 1st
{{Clickable button 2|[[Wikipedia]]}}
{{Clickable button 2|[[Wikipedia]]}}
→<span class="plainlinks clickbutton">[[[[Wikipedia]]|<span class="mw-ui-button">[[Wikipedia]]</span>]]</span>
{{Clickable button 2/sandbox|[[Wikipedia]]}}
→ Error: expandTemplate: template "Clickable button 2/sandbox" does not exist<strong class="error">Error: expandTemplate: template "Clickable button 2/sandbox" does not exist</strong>
{{Clickable button|[[Wikipedia]]}}
→<span class="mw-ui-button ">[[Wikipedia]]</span>
progressive URL only
{{Clickable button 2|class=mw-ui-progressive|url=http://www.example.com}}
{{Clickable button 2|class=mw-ui-progressive|url=http://www.example.com}}
→<span class="plainlinks clickbutton">[http://www.example.com <span class="mw-ui-button mw-ui-progressive">http://www.example.com</span>]</span>
{{Clickable button 2/sandbox|class=mw-ui-progressive|url=http://www.example.com}}
→ Error: expandTemplate: template "Clickable button 2/sandbox" does not exist<strong class="error">Error: expandTemplate: template "Clickable button 2/sandbox" does not exist</strong>
{{Clickable button|class=mw-ui-progressive|url=http://www.example.com}}
→<span class="mw-ui-button ">Button text</span>
brackets and pipe in label
{{Clickable button 2|[[Foobar|barfoo]]}}
{{Clickable button 2|[[Foobar|barfoo]]}}
→<span class="plainlinks clickbutton">[[[[Foobar|barfoo]]|<span class="mw-ui-button">[[Foobar|barfoo]]</span>]]</span>
{{Clickable button 2/sandbox|[[Foobar|barfoo]]}}
→ Error: expandTemplate: template "Clickable button 2/sandbox" does not exist<strong class="error">Error: expandTemplate: template "Clickable button 2/sandbox" does not exist</strong>
{{Clickable button|[[Foobar|barfoo]]}}
→<span class="mw-ui-button ">[[Foobar|barfoo]]</span>
Help:Introduction to editing with Wiki Markup/1
{{Clickable button 2|Help:Introduction to editing with Wiki Markup/1|Editing|style=width:11em; margin-bottom:10px;}}
{{Clickable button 2|Help:Introduction to editing with Wiki Markup/1|Editing|style=width:11em; margin-bottom:10px;}}
→<span class="plainlinks clickbutton">[[Help:Introduction to editing with Wiki Markup/1|<span class="mw-ui-button" style="width:11em; margin-bottom:10px;">Editing</span>]]</span>
{{Clickable button 2/sandbox|Help:Introduction to editing with Wiki Markup/1|Editing|style=width:11em; margin-bottom:10px;}}
→ Error: expandTemplate: template "Clickable button 2/sandbox" does not exist<strong class="error">Error: expandTemplate: template "Clickable button 2/sandbox" does not exist</strong>
Template:RTT notice
{{Clickable button 2|1=[https://en.wikipedia.org/w/index.php?title=Special:ContentTranslation&campaign=contributionsmenu&from=en&to=?&page=Template:Clickable_button_2/testcases <span style="color:white;">Translate</span>]|color=blue}}
{{Clickable button 2|1=[https://en.wikipedia.org/w/index.php?title=Special:ContentTranslation&campaign=contributionsmenu&from=en&to=?&page=Template:Clickable_button_2/testcases <span style="color:white;">Translate</span>]|color=blue}}
→<span class="plainlinks clickbutton">[[[https://en.wikipedia.org/w/index.php?title=Special:ContentTranslation&campaign=contributionsmenu&from=en&to=?&page=Template:Clickable_button_2/testcases <span style="color:white;">Translate</span>]|<span class="mw-ui-button mw-ui-progressive">[https://en.wikipedia.org/w/index.php?title=Special:ContentTranslation&campaign=contributionsmenu&from=en&to=?&page=Template:Clickable_button_2/testcases <span style="color:white;">Translate</span>]</span>]]</span>
{{Clickable button 2/sandbox|1=[https://en.wikipedia.org/w/index.php?title=Special:ContentTranslation&campaign=contributionsmenu&from=en&to=?&page=Template:Clickable_button_2/testcases <span style="color:white;">Translate</span>]|color=blue}}
→ Error: expandTemplate: template "Clickable button 2/sandbox" does not exist<strong class="error">Error: expandTemplate: template "Clickable button 2/sandbox" does not exist</strong>
{{Clickable button|1=[https://en.wikipedia.org/w/index.php?title=Special:ContentTranslation&campaign=contributionsmenu&from=en&to=?&page=Template:Clickable_button_2/testcases <span style="color:white;">Translate</span>]|color=blue}}
→<span class="mw-ui-button mw-ui-progressive">[https://en.wikipedia.org/w/index.php?title=Special:ContentTranslation&campaign=contributionsmenu&from=en&to=?&page=Template:Clickable_button_2/testcases <span style="color:white;">Translate</span>]</span>
Template:RTT notice (alt)
{{Clickable button 2|[https://example.com Translate]|color=blue}}
{{Clickable button 2|[https://example.com Translate]|color=blue}}
→<span class="plainlinks clickbutton">[[[https://example.com Translate]|<span class="mw-ui-button mw-ui-progressive">[https://example.com Translate]</span>]]</span>
{{Clickable button 2/sandbox|[https://example.com Translate]|color=blue}}
→ Error: expandTemplate: template "Clickable button 2/sandbox" does not exist<strong class="error">Error: expandTemplate: template "Clickable button 2/sandbox" does not exist</strong>
{{Clickable button|[https://example.com Translate]|color=blue}}
→<span class="mw-ui-button mw-ui-progressive">[https://example.com Translate]</span>
Brackets around 1st with nolink set
{{Clickable button 2|[[Wikipedia]]|link=no}}
{{Clickable button 2|[[Wikipedia]]|link=no}}
→<span class="plainlinks clickbutton"><span class="mw-ui-button">[[Wikipedia]]</span></span>
{{Clickable button 2/sandbox|[[Wikipedia]]|link=no}}
→ Error: expandTemplate: template "Clickable button 2/sandbox" does not exist<strong class="error">Error: expandTemplate: template "Clickable button 2/sandbox" does not exist</strong>
{{Clickable button|[[Wikipedia]]|link=no}}
→<span class="mw-ui-button ">[[Wikipedia]]</span>