Template:Shortcut/testcases

{{Testcases}}

= General =

{{test case|_collapsible=yes|_title=No args|_output=nowiki+|_showcode=yes|category=no}}

{{test case|_collapsible=yes|_title=One arg|_output=nowiki+|_showcode=yes|WP:ANI}}

{{test case|_collapsible=yes|_title=Two args|_output=nowiki+|_showcode=yes|WP:V|WP:NPOV}}

{{test case|_collapsible=yes|_title=Three args|_output=nowiki+|_showcode=yes|WP:V|WP:NPOV|WP:OR}}

{{test case|_collapsible=yes|_title=Redlinked shortcut|_output=nowiki+|_showcode=yes|WP:THISSHORTCUTDOESNTEXIST|category=no}}

{{test case|_collapsible=yes|_title=Category sortcut|_output=nowiki+|_showcode=yes|CAT:EP}}

{{test case|_collapsible=yes|_title=Custom message, no args|_output=nowiki+|_showcode=yes|msg=Hi there.}}

{{test case|_collapsible=yes|_title=Custom message, one arg|_output=nowiki+|_showcode=yes|WP:V|msg=Hi there.}}

{{test case|_collapsible=yes|_title=Custom message, three args|_output=nowiki+|_showcode=yes|WP:V|WP:NPOV|WP:OR|msg=Hi there.}}

{{test case|_showcode=yes|_collapsible=yes|_output=nowiki+|_title=Args with newlines

|WP:V

|WP:NPOV

|WP:OR

}}

= template parameter =

{{test case|_collapsible=yes|_title=template=yes|_showcode=yes|_output=nowiki+|WP:V|WP:NPOV|template=yes|category=no|_notcollapsed=no}}

{{test case|_collapsible=yes|_title=Namespace detection|_showcode=yes|_output=nowiki+|:Foo|User:Bar|Baz|template=yes|category=no|_notcollapsed=no}}

{{test case|_collapsible=yes|_title={{!}}template=yes, one arg (lowercase t) |_output=nowiki+|_showcode=yes|_notcollapsed=no|template:uw-v1|template=yes|category=no}}

{{test case|_collapsible=yes|_title={{!}}template=yes, two args (lowercase t) |_output=nowiki+|_showcode=yes|_notcollapsed=no|template:uw-v1|template:uw-vand1|template=yes|category=no}}

{{test case|_collapsible=yes|_title={{!}}template=yes, three args (lowercase t) |_output=nowiki+|_showcode=yes|_notcollapsed=no|template:uw-v1|template:uw-vand1|template:Uwv|template=yes|category=no}}


{{test case|_collapsible=yes|_title={{!}}template=yes, one arg (uppercase T) |_output=nowiki+|_showcode=yes|_notcollapsed=no|Template:uw-v1|template=yes|category=no}}

{{test case|_collapsible=yes|_title={{!}}template=yes, two args (uppercase T) |_output=nowiki+|_showcode=yes|_notcollapsed=no|Template:uw-v1|Template:uw-vand1|template=yes|category=no}}

{{test case|_collapsible=yes|_title={{!}}template=yes, three args (uppercase T) |_output=nowiki+|_showcode=yes|_notcollapsed=no|Template:uw-v1|Template:uw-vand1|Template:Uwv|template=yes|category=no}}

= Template:Template shortcut =

{{test case|_collapsible=yes|_title=Template:template shortcut, no args |_output=nowiki+|_showcode=yes|_template1=Template shortcut|_notcollapsed=no||category=no}}

{{test case|_collapsible=yes|_title=template shortcut, one arg |_output=nowiki+|_showcode=yes|_template1=Template shortcut|_notcollapsed=no|uw-v1|category=no}}

{{test case|_collapsible=yes|_title=template shortcut, two args |_output=nowiki+|_showcode=yes|_template1=Template shortcut|_notcollapsed=no|uw-v1|uw-vand1|category=no}}

{{test case|_collapsible=yes|_title=template shortcut, three args |_output=nowiki+|_showcode=yes|_template1=Template shortcut|_notcollapsed=no|uw-v1|uw-vand1|Uwv|category=no}}

{{test case|_collapsible=yes|_title=Template:Template shortcut, one arg |_output=nowiki+|_showcode=yes|_template1=Template shortcut|_notcollapsed=no|template:uw-v1|category=no}}

{{test case|_collapsible=yes|_title=Template:Template shortcut, two args |_output=nowiki+|_showcode=yes|_template1=Template shortcut|_notcollapsed=no|template:uw-v1|template:uw-vand1|category=no}}

{{test case|_collapsible=yes|_title=Template:Template shortcut, three args |_output=nowiki+|_showcode=yes|_template1=Template shortcut|_notcollapsed=no|template:uw-v1|template:uw-vand1|template:Uwv|category=no}}

{{test case|_collapsible=yes|_title=Namespace detection|_output=nowiki+|_showcode=yes|_template1=Template shortcut|_notcollapsed=no|:Foo|User:Bar|Baz|template=yes}}

{{test case|_collapsible=yes|_title=clear=right|_output=nowiki+|_showcode=yes|_template1=Template shortcut|_notcollapsed=no|ping|re|replyto|reply|yo|clear=right}}

{{test case|_collapsible=yes|_title=pre=subst:|_output=nowiki+|_showcode=yes|_template1=Template shortcut|_notcollapsed=no|pre=subst:|Move|pre2=subst:|Rename|pre3=subst:|Rm}}

{{test case|_collapsible=yes|_title=redirect=yes|_output=nowiki+|_showcode=yes|_template1=Template shortcut|_notcollapsed=no|redirect=yes|R to trade name}}

= Template:Policy shortcut =

{{test case|_collapsible=yes|_title=Template:Policy shortcut, no args |_output=nowiki+|_showcode=yes|_template1=Policy shortcut||category=no}}

{{test case|_collapsible=yes|_title=Template:Policy shortcut, one arg |_output=nowiki+|_showcode=yes|_template1=Policy shortcut|WP:H|category=no}}

{{test case|_collapsible=yes|_title=Template:Policy shortcut, two args |_output=nowiki+|_showcode=yes|_template1=Policy shortcut|WP:H|H:WIKI|category=no}}

{{test case|_collapsible=yes|_title=Template:Policy shortcut, three args |_output=nowiki+|_showcode=yes|_template1=Policy shortcut|WP:H|H:WIKI|WP:HELP|category=no}}

{{Policy shortcut/testcases}}

= Float left =

{{test case|_collapsible=yes|_notcollapsed=no|_title=Float left|_output=nowiki+|_showcode=yes|test|float=left}}

{{test case|_collapsible=yes|_notcollapsed=no|_title=Float right|_output=nowiki+|_showcode=yes|test|float=right}}

{{test case|_collapsible=yes|_notcollapsed=no|_title=Float blank|_output=nowiki+|_showcode=yes|test|float=}}

= Shortcut-l =

{{test case|_collapsible=yes|_notcollapsed=no|_title=Shortcut-l no args|_output=nowiki+|_showcode=yes|_template=Shortcut-l||category=no}}

{{test case|_collapsible=yes|_notcollapsed=no|_title=Shortcut-l {{!}}test|_output=nowiki+|_showcode=yes|_template=Shortcut-l|test|category=no}}

{{test case|_collapsible=yes|_notcollapsed=no|_title=Shortcut-l {{!}}float=left|_output=nowiki+|_showcode=yes|_template=Shortcut-l|test|float=left|category=no}}

{{test case|_collapsible=yes|_notcollapsed=no|_title=Shortcut-l {{!}}float=right|_output=nowiki+|_showcode=yes|_template=Shortcut-l|test|float=right|category=no}}

{{test case|_collapsible=yes|_notcollapsed=no|_title=Shortcut-l {{!}}float=blank|_output=nowiki+|_showcode=yes|_template=Shortcut-l|test|float=|category=no}}