Jump to content

Template:SMS/testcases

From Wikipedia, the free encyclopedia

Purge this page.

Test of {{ship}} as meta-template

[edit]

This is modified from the chart of examples from the {{SMS}} documentation page, and is used for testing the proposed change of the current template to use {{ship}} as a meta-template

Current template

[edit]
Value Parameter(s)
displayed
Example Equivalent wikicode Final result
None all {{SMS|Novara|1912}} [[SMS Novara (1912) |SMS ''Novara'' (1912)]] SMS Novara (1912)
1 3rd {{SMS|Novara|1912|1}} [[SMS Novara (1912) |1912]] 1912
2 2nd {{SMS|Novara|1912|2}} [[SMS Novara (1912) |''Novara'']] Novara
3 2nd, 3rd {{SMS|Novara|1912|3}} [[SMS Novara (1912) |''Novara'' (1912)]] Novara (1912)
4 invalid result {{SMS|Novara|1912|4}} Error: {{SMS}} invalid control parameter: 4 (help)
5 1st, 3rd {{SMS|Novara|1912|5}} [[SMS Novara (1912) |SMS (1912)]] SMS 1912
6 1st, 2nd {{SMS|Novara|1912|6}} [[SMS Novara (1912) |SMS ''Novara'']] SMS Novara
2nd
(no 3rd)
{{SMS|Sankt Georg|3=2}}
Alternate usage: {{SMS|Sankt Georg||2}}
[[SMS Sankt Georg |''Sankt Georg'']] Sankt Georg
Alternate usage: Sankt Georg
No 3rd param supplied {{SMS|Novara}}} [[SMS Novara|SMS ''Novara'']] SMS Novara
Template usage Equivalent wikicode Final result
{{SMS|U-90|sub=y}} [[SM U-90|SM ''U-90'']] SM U-90
{{SMS|U-4|Austria-Hungary|sub=y}} [[SM U-4 (Austria-Hungary)|SM ''U-4'' (Austria-Hungary)]] SM U-4 (Austria-Hungary)
{{SMS|U-4|Austria-Hungary|6|sub=y}} [[SM U-4 (Austria-Hungary)|SM ''U-4'']] SM U-4

Sandbox template

[edit]
Value Parameter(s)
displayed
Example Equivalent wikicode Final result
None all {{SMS/sandbox|Novara|1912}} [[SMS Novara (1912) |SMS ''Novara'' (1912)]] SMS Novara (1912)
1 3rd {{SMS/sandbox|Novara|1912|1}} [[SMS Novara (1912) |1912]] 1912
2 2nd {{SMS/sandbox|Novara|1912|2}} [[SMS Novara (1912) |''Novara'']] Novara
3 2nd, 3rd {{SMS/sandbox|Novara|1912|3}} [[SMS Novara (1912) |''Novara'' (1912)]] Novara (1912)
4 invalid result {{SMS/sandbox|Novara|1912|4}} Error: {{SMS}} invalid control parameter: 4 (help)
5 1st, 3rd {{SMS/sandbox|Novara|1912|5}} [[SMS Novara (1912) |SMS (1912)]] SMS 1912
6 1st, 2nd {{SMS/sandbox|Novara|1912|6}} [[SMS Novara (1912) |SMS ''Novara'']] SMS Novara
2nd
(no 3rd)
{{SMS/sandbox|Sankt Georg|3=2}}
Alternate usage: {{SMS/sandbox|Sankt Georg||2}}
[[SMS Sankt Georg |''Sankt Georg'']] Sankt Georg
Alternate usage: Sankt Georg
No 3rd param supplied {{SMS/sandbox |Novara}}} [[SMS Novara|SMS ''Novara'']] SMS Novara
Template usage Equivalent wikicode Final result
{{SMS/sandbox|U-90|sub=y}} [[SM U-90|SM ''U-90'']] SM U-90
{{SMS/sandbox|U-4|Austria-Hungary|sub=y}} [[SM U-4 (Austria-Hungary)|SM ''U-4'' (Austria-Hungary)]] SM U-4 (Austria-Hungary)
{{SMS/sandbox|U-4|Austria-Hungary|6|sub=y}} [[SM U-4 (Austria-Hungary)|SM ''U-4'']] SM U-4