Template:Deprecated/testcases

Testing sandbox version

edit

{{Deprecated/sandbox}}

Template:Deprecated/sandbox

  • {{Deprecated|1.20.0}}

Template:Deprecated/sandbox

  • {{Deprecated|1.20.0|Optional message}}

Template:Deprecated/sandbox

  • {{Deprecated|1.20.0|newvarname=$IP|newvarlink=Special:MyLanguage/Manual:$IP}}

Template:Deprecated/sandbox

Testing main template

edit

{{Deprecated}} with no parameters (tests use nocat=1 to avoid assignment to category):

replacement=mw

replacement=mw|version=2.3

replacement=mw|version=

replacement=StructuredDiscussions

replacement=StructuredDiscussions|version=notused

replacement=mw|version=2.3|newvarlink=Special:MyLanguage/Manual:$IP|1=3.1.33|2=A lot of parameters.|newvarname=$IP

newvarlink=Special:MyLanguage/Manual:$IP|1=3.1.33|2=This text comes from parameter '2='.|newvarname=$IP

newvarlink=Special:MyLanguage/Manual:$IP|1=3.1.33|2=Without newvarname.

newvarlink=Special:MyLanguage/Manual:$IP|2=Without version.

newvarlink=Special:MyLanguage/Manual:$IP|version=misused

newvarlink=$IP|newvarname=TheIpPage|2=Links to page $IP.

newvarlink=Special:MyLanguage/Manual:$IP|newvarname=ipPage|2=Links to Special:MyLanguage/Manual:$IP.

With 'nocat' not used, the page where the template is transcluded will be in category of obsolete pages (not tested here).