跳转到内容

模板:Deprecated/testcases

来自天灾之下:危险连接资料站
wiki>Wladek922024年10月10日 (四) 21:55的版本 (→Testing main template)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)

Testing sandbox version

{{Deprecated/sandbox}}

模板:Deprecated/sandbox

  • {{Deprecated|1.20.0}}

模板:Deprecated/sandbox

  • {{Deprecated|1.20.0|Optional message}}

模板:Deprecated/sandbox

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

模板:Deprecated/sandbox

Testing main template

{{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).