模板:Deprecated/testcases
| 文件:Gnome-applications-science.svg | This is the template test cases page for the sandbox of 模板:Deprecated. to update the examples. |
Testing sandbox version
{{Deprecated/sandbox}}
- {{Deprecated|1.20.0}}
- {{Deprecated|1.20.0|Optional message}}
- {{Deprecated|1.20.0|newvarname=$IP|newvarlink=Special:MyLanguage/Manual:$IP}}
Testing main template
{{Deprecated}} with no parameters (tests use nocat=1 to avoid assignment to category):
<translate> Deprecated:</translate> <translate> This feature is {{<tvar name=1>ll|Deprecated</tvar>|deprecated}} and should no longer be used, however it is possibly still available for reasons of backwards {{<tvar name=2>ll|Compatibility</tvar>|compatibility}}.</translate> |
replacement=mw
<translate> Deprecated:</translate> <translate> This feature is {{<tvar name=1>ll|Deprecated</tvar>|deprecated}} and should no longer be used, however it is possibly still available for reasons of backwards {{<tvar name=2>ll|Compatibility</tvar>|compatibility}}.</translate> <translate> It has been replaced by core functionality in the MediaWiki software.</translate> |
replacement=mw|version=2.3
<translate> Deprecated:</translate> <translate> This feature is {{<tvar name=1>ll|Deprecated</tvar>|deprecated}} and should no longer be used, however it is possibly still available for reasons of backwards {{<tvar name=2>ll|Compatibility</tvar>|compatibility}}.</translate> <translate> It has been replaced by core functionality in the MediaWiki software (which was added in version <tvar name=ver>2.3</tvar>).</translate> |
replacement=mw|version=
<translate> Deprecated:</translate> <translate> This feature is {{<tvar name=1>ll|Deprecated</tvar>|deprecated}} and should no longer be used, however it is possibly still available for reasons of backwards {{<tvar name=2>ll|Compatibility</tvar>|compatibility}}.</translate> <translate> It has been replaced by core functionality in the MediaWiki software.</translate> |
replacement=StructuredDiscussions
<translate> Deprecated:</translate> <translate> This feature is {{<tvar name=1>ll|Deprecated</tvar>|deprecated}} and should no longer be used, however it is possibly still available for reasons of backwards {{<tvar name=2>ll|Compatibility</tvar>|compatibility}}.</translate> <translate> It has been replaced by <tvar name=ext>StructuredDiscussions</tvar>.</translate> |
replacement=StructuredDiscussions|version=notused
<translate> Deprecated:</translate> <translate> This feature is {{<tvar name=1>ll|Deprecated</tvar>|deprecated}} and should no longer be used, however it is possibly still available for reasons of backwards {{<tvar name=2>ll|Compatibility</tvar>|compatibility}}.</translate> <translate> It has been replaced by <tvar name=ext>StructuredDiscussions</tvar>.</translate> |
replacement=mw|version=2.3|newvarlink=Special:MyLanguage/Manual:$IP|1=3.1.33|2=A lot of parameters.|newvarname=$IP
<translate> Deprecated:</translate> <translate> This feature is {{<tvar name=1>ll|Deprecated</tvar>|deprecated}} and should no longer be used, however it is possibly still available for reasons of backwards {{<tvar name=2>ll|Compatibility</tvar>|compatibility}}.</translate> <translate> It has been replaced by core functionality in the MediaWiki software (which was added in version <tvar name=ver>2.3</tvar>).</translate><translate> This feature was deprecated in version <tvar name=ver>3.1.33</tvar>.</translate> A lot of parameters.<translate> See <tvar name=page>$IP</tvar> for an alternative way to use this feature.</translate> |
newvarlink=Special:MyLanguage/Manual:$IP|1=3.1.33|2=This text comes from parameter '2='.|newvarname=$IP
<translate> Deprecated:</translate> <translate> This feature is {{<tvar name=1>ll|Deprecated</tvar>|deprecated}} and should no longer be used, however it is possibly still available for reasons of backwards {{<tvar name=2>ll|Compatibility</tvar>|compatibility}}.</translate> <translate> This feature was deprecated in version <tvar name=ver>3.1.33</tvar>.</translate> This text comes from parameter '2='.<translate> See <tvar name=page>$IP</tvar> for an alternative way to use this feature.</translate> |
newvarlink=Special:MyLanguage/Manual:$IP|1=3.1.33|2=Without newvarname.
<translate> Deprecated:</translate> <translate> This feature is {{<tvar name=1>ll|Deprecated</tvar>|deprecated}} and should no longer be used, however it is possibly still available for reasons of backwards {{<tvar name=2>ll|Compatibility</tvar>|compatibility}}.</translate> <translate> This feature was deprecated in version <tvar name=ver>3.1.33</tvar>.</translate> Without newvarname.<translate> See <tvar name=page>{{{newvarname}}}</tvar> for an alternative way to use this feature.</translate> |
newvarlink=Special:MyLanguage/Manual:$IP|2=Without version.
<translate> Deprecated:</translate> <translate> This feature is {{<tvar name=1>ll|Deprecated</tvar>|deprecated}} and should no longer be used, however it is possibly still available for reasons of backwards {{<tvar name=2>ll|Compatibility</tvar>|compatibility}}.</translate> <translate> This feature was deprecated in version <tvar name=ver>??</tvar>.</translate> Without version.<translate> See <tvar name=page>{{{newvarname}}}</tvar> for an alternative way to use this feature.</translate> |
newvarlink=Special:MyLanguage/Manual:$IP|version=misused
<translate> Deprecated:</translate> <translate> This feature is {{<tvar name=1>ll|Deprecated</tvar>|deprecated}} and should no longer be used, however it is possibly still available for reasons of backwards {{<tvar name=2>ll|Compatibility</tvar>|compatibility}}.</translate> <translate> This feature was deprecated in version <tvar name=ver>??</tvar>.</translate> <translate> See <tvar name=page>{{{newvarname}}}</tvar> for an alternative way to use this feature.</translate> |
newvarlink=$IP|newvarname=TheIpPage|2=Links to page $IP.
<translate> Deprecated:</translate> <translate> This feature is {{<tvar name=1>ll|Deprecated</tvar>|deprecated}} and should no longer be used, however it is possibly still available for reasons of backwards {{<tvar name=2>ll|Compatibility</tvar>|compatibility}}.</translate> <translate> This feature was deprecated in version <tvar name=ver>??</tvar>.</translate> Links to page $IP.<translate> See <tvar name=page>TheIpPage</tvar> for an alternative way to use this feature.</translate> |
newvarlink=Special:MyLanguage/Manual:$IP|newvarname=ipPage|2=Links to Special:MyLanguage/Manual:$IP.
<translate> Deprecated:</translate> <translate> This feature is {{<tvar name=1>ll|Deprecated</tvar>|deprecated}} and should no longer be used, however it is possibly still available for reasons of backwards {{<tvar name=2>ll|Compatibility</tvar>|compatibility}}.</translate> <translate> This feature was deprecated in version <tvar name=ver>??</tvar>.</translate> Links to Special:MyLanguage/Manual:$IP.<translate> See <tvar name=page>ipPage</tvar> for an alternative way to use this feature.</translate> |
With 'nocat' not used, the page where the template is transcluded will be in category of obsolete pages (not tested here).