Difference between revisions of "Template:HMS/testcases"
Jump to navigation
Jump to search
imported>Bellhalla (←Created page with '[http://en.wikipedia.org/w/index.php?title=Template:HMS/testcases&action=purge Purge] this page. == Test of {{tl|ship}} as meta-template == This is modified from t...') |
imported>WOSlinker (tidy style) |
||
| Line 13: | Line 13: | ||
|- | |- | ||
! None | ! None | ||
| − | | align | + | | style="text-align:center;" | all |
| <tt><nowiki>{{HMS|Illustrious|R06}}</nowiki></tt> | | <tt><nowiki>{{HMS|Illustrious|R06}}</nowiki></tt> | ||
| <tt><nowiki>[[HMS Illustrious (R06) |HMS ''Illustrious'' (R06)]]</nowiki></tt> | | <tt><nowiki>[[HMS Illustrious (R06) |HMS ''Illustrious'' (R06)]]</nowiki></tt> | ||
| Line 19: | Line 19: | ||
|- | |- | ||
! 1 | ! 1 | ||
| − | | align | + | | style="text-align:center;" | 3rd |
| <tt><nowiki>{{HMS|Illustrious|R06|1}}</nowiki></tt> | | <tt><nowiki>{{HMS|Illustrious|R06|1}}</nowiki></tt> | ||
| <tt><nowiki>[[HMS Illustrious (R06) |R06]]</nowiki></tt> | | <tt><nowiki>[[HMS Illustrious (R06) |R06]]</nowiki></tt> | ||
| Line 25: | Line 25: | ||
|- | |- | ||
! 2 | ! 2 | ||
| − | | align | + | | style="text-align:center;" | 2nd |
| <tt><nowiki>{{HMS|Illustrious|R06|2}</nowiki>}</tt> | | <tt><nowiki>{{HMS|Illustrious|R06|2}</nowiki>}</tt> | ||
| <tt><nowiki>[[HMS Illustrious (R06) |''Illustrious'']]</nowiki></tt> | | <tt><nowiki>[[HMS Illustrious (R06) |''Illustrious'']]</nowiki></tt> | ||
| Line 31: | Line 31: | ||
|- | |- | ||
! 3 | ! 3 | ||
| − | | align | + | | style="text-align:center;" | 2nd, 3rd |
| <tt><nowiki>{{HMS|Illustrious|R06|3}</nowiki>} | | <tt><nowiki>{{HMS|Illustrious|R06|3}</nowiki>} | ||
| <tt><nowiki>[[HMS Illustrious (R06) |''Illustrious'' (R06)]]</nowiki> | | <tt><nowiki>[[HMS Illustrious (R06) |''Illustrious'' (R06)]]</nowiki> | ||
| Line 37: | Line 37: | ||
|- | |- | ||
! 4 | ! 4 | ||
| − | | align | + | | style="text-align:center;" | invalid result |
| <tt><nowiki>{{HMS|Illustrious|R06|4}</nowiki>}</tt> | | <tt><nowiki>{{HMS|Illustrious|R06|4}</nowiki>}</tt> | ||
| <tt><nowiki>[[HMS Illustrious (R06) |Invalid Optional Parameter]]</nowiki></tt> | | <tt><nowiki>[[HMS Illustrious (R06) |Invalid Optional Parameter]]</nowiki></tt> | ||
| Line 43: | Line 43: | ||
|- | |- | ||
! 5 | ! 5 | ||
| − | | align | + | | style="text-align:center;" | 1st, 3rd |
| <tt><nowiki>{{HMS|Illustrious|R06|5}</nowiki>}</tt> | | <tt><nowiki>{{HMS|Illustrious|R06|5}</nowiki>}</tt> | ||
| <tt><nowiki>[[HMS Illustrious (R06) |HMS (R06)]]</nowiki></tt> | | <tt><nowiki>[[HMS Illustrious (R06) |HMS (R06)]]</nowiki></tt> | ||
| Line 49: | Line 49: | ||
|- | |- | ||
! 6 | ! 6 | ||
| − | | align | + | | style="text-align:center;" | 1st, 2nd |
| <tt><nowiki>{{HMS|Illustrious|R06|6}</nowiki>}</tt> | | <tt><nowiki>{{HMS|Illustrious|R06|6}</nowiki>}</tt> | ||
| <tt><nowiki>[[HMS Illustrious (R06) |HMS ''Illustrious'']]</nowiki></tt> | | <tt><nowiki>[[HMS Illustrious (R06) |HMS ''Illustrious'']]</nowiki></tt> | ||
| Line 55: | Line 55: | ||
|- | |- | ||
| | | | ||
| − | | align | + | | style="text-align:center;" | 2nd<br><small>(no 3rd)</small> |
| <tt><nowiki>{{HMS|Victory|3=2}}</nowiki></tt> <br/> ''Alternate usage'': <tt><nowiki>{{HMS|Victory||2}}</nowiki></tt> | | <tt><nowiki>{{HMS|Victory|3=2}}</nowiki></tt> <br/> ''Alternate usage'': <tt><nowiki>{{HMS|Victory||2}}</nowiki></tt> | ||
| <tt><nowiki>[[HMS Victory |''Victory'']]</nowiki></tt> | | <tt><nowiki>[[HMS Victory |''Victory'']]</nowiki></tt> | ||
| Line 61: | Line 61: | ||
|- | |- | ||
| | | | ||
| − | | align | + | | style="text-align:center;" | No 3rd param supplied |
| <tt><nowiki>{{HMS|Illustrious}}</nowiki>}</tt> | | <tt><nowiki>{{HMS|Illustrious}}</nowiki>}</tt> | ||
| <tt><nowiki>[[HMS Illustrious|HMS ''Illustrious'']]</nowiki></tt> | | <tt><nowiki>[[HMS Illustrious|HMS ''Illustrious'']]</nowiki></tt> | ||
| Line 76: | Line 76: | ||
|- | |- | ||
! None | ! None | ||
| − | | align | + | | style="text-align:center;" | all |
| <tt><nowiki>{{HMS/sandbox|Illustrious|R06}}</nowiki></tt> | | <tt><nowiki>{{HMS/sandbox|Illustrious|R06}}</nowiki></tt> | ||
| <tt><nowiki>[[HMS Illustrious (R06) |HMS ''Illustrious'' (R06)]]</nowiki></tt> | | <tt><nowiki>[[HMS Illustrious (R06) |HMS ''Illustrious'' (R06)]]</nowiki></tt> | ||
| Line 82: | Line 82: | ||
|- | |- | ||
! 1 | ! 1 | ||
| − | | align | + | | style="text-align:center;" | 3rd |
| <tt><nowiki>{{HMS/sandbox|Illustrious|R06|1}}</nowiki></tt> | | <tt><nowiki>{{HMS/sandbox|Illustrious|R06|1}}</nowiki></tt> | ||
| <tt><nowiki>[[HMS Illustrious (R06) |R06]]</nowiki></tt> | | <tt><nowiki>[[HMS Illustrious (R06) |R06]]</nowiki></tt> | ||
| Line 88: | Line 88: | ||
|- | |- | ||
! 2 | ! 2 | ||
| − | | align | + | | style="text-align:center;" | 2nd |
| <tt><nowiki>{{HMS/sandbox|Illustrious|R06|2}</nowiki>}</tt> | | <tt><nowiki>{{HMS/sandbox|Illustrious|R06|2}</nowiki>}</tt> | ||
| <tt><nowiki>[[HMS Illustrious (R06) |''Illustrious'']]</nowiki></tt> | | <tt><nowiki>[[HMS Illustrious (R06) |''Illustrious'']]</nowiki></tt> | ||
| Line 94: | Line 94: | ||
|- | |- | ||
! 3 | ! 3 | ||
| − | | align | + | | style="text-align:center;" | 2nd, 3rd |
| <tt><nowiki>{{HMS/sandbox|Illustrious|R06|3}</nowiki>} | | <tt><nowiki>{{HMS/sandbox|Illustrious|R06|3}</nowiki>} | ||
| <tt><nowiki>[[HMS Illustrious (R06) |''Illustrious'' (R06)]]</nowiki> | | <tt><nowiki>[[HMS Illustrious (R06) |''Illustrious'' (R06)]]</nowiki> | ||
| Line 100: | Line 100: | ||
|- | |- | ||
! 4 | ! 4 | ||
| − | | align | + | | style="text-align:center;" | invalid result |
| <tt><nowiki>{{HMS/sandbox|Illustrious|R06|4}</nowiki>}</tt> | | <tt><nowiki>{{HMS/sandbox|Illustrious|R06|4}</nowiki>}</tt> | ||
| <tt><nowiki>[[HMS Illustrious (R06) |Invalid Optional Parameter]]</nowiki></tt> | | <tt><nowiki>[[HMS Illustrious (R06) |Invalid Optional Parameter]]</nowiki></tt> | ||
| Line 106: | Line 106: | ||
|- | |- | ||
! 5 | ! 5 | ||
| − | | align | + | | style="text-align:center;" | 1st, 3rd |
| <tt><nowiki>{{HMS/sandbox|Illustrious|R06|5}</nowiki>}</tt> | | <tt><nowiki>{{HMS/sandbox|Illustrious|R06|5}</nowiki>}</tt> | ||
| <tt><nowiki>[[HMS Illustrious (R06) |HMS (R06)]]</nowiki></tt> | | <tt><nowiki>[[HMS Illustrious (R06) |HMS (R06)]]</nowiki></tt> | ||
| Line 112: | Line 112: | ||
|- | |- | ||
! 6 | ! 6 | ||
| − | | align | + | | style="text-align:center;" | 1st, 2nd |
| <tt><nowiki>{{HMS/sandbox|Illustrious|R06|6}</nowiki>}</tt> | | <tt><nowiki>{{HMS/sandbox|Illustrious|R06|6}</nowiki>}</tt> | ||
| <tt><nowiki>[[HMS Illustrious (R06) |HMS ''Illustrious'']]</nowiki></tt> | | <tt><nowiki>[[HMS Illustrious (R06) |HMS ''Illustrious'']]</nowiki></tt> | ||
| Line 118: | Line 118: | ||
|- | |- | ||
| | | | ||
| − | | align | + | | style="text-align:center;" | 2nd<br><small>(no 3rd)</small> |
| <tt><nowiki>{{HMS/sandbox|Victory|3=2}}</nowiki></tt> <br/> ''Alternate usage'': <tt><nowiki>{{HMS/sandbox|Victory||2}}</nowiki></tt> | | <tt><nowiki>{{HMS/sandbox|Victory|3=2}}</nowiki></tt> <br/> ''Alternate usage'': <tt><nowiki>{{HMS/sandbox|Victory||2}}</nowiki></tt> | ||
| <tt><nowiki>[[HMS Victory |''Victory'']]</nowiki></tt> | | <tt><nowiki>[[HMS Victory |''Victory'']]</nowiki></tt> | ||
| Line 124: | Line 124: | ||
|- | |- | ||
| | | | ||
| − | | align | + | | style="text-align:center;" | No 3rd param supplied |
| <tt><nowiki>{{HMS/sandbox |Illustrious}}</nowiki>}</tt> | | <tt><nowiki>{{HMS/sandbox |Illustrious}}</nowiki>}</tt> | ||
| <tt><nowiki>[[HMS Illustrious|HMS ''Illustrious'']]</nowiki></tt> | | <tt><nowiki>[[HMS Illustrious|HMS ''Illustrious'']]</nowiki></tt> | ||
| {{HMS/sandbox |Illustrious}} | | {{HMS/sandbox |Illustrious}} | ||
|} | |} | ||
Revision as of 21:10, 22 November 2014
Purge this page.
Test of {{ship}} as meta-template
This is modified from the chart of examples from the {{HMS}} documentation page, and is used for testing the proposed change of the current template to use {{ship}} as a meta-template
Current template
| Value | Parameter(s) displayed |
Example | Equivalent wikicode | Final result |
|---|---|---|---|---|
| None | all | {{HMS|Illustrious|R06}} | [[HMS Illustrious (R06) |HMS ''Illustrious'' (R06)]] | HMS Illustrious (R06) |
| 1 | 3rd | {{HMS|Illustrious|R06|1}} | [[HMS Illustrious (R06) |R06]] | R06 |
| 2 | 2nd | {{HMS|Illustrious|R06|2}} | [[HMS Illustrious (R06) |''Illustrious'']] | Illustrious |
| 3 | 2nd, 3rd | {{HMS|Illustrious|R06|3}} | [[HMS Illustrious (R06) |''Illustrious'' (R06)]] | Illustrious (R06) |
| 4 | invalid result | {{HMS|Illustrious|R06|4}} | [[HMS Illustrious (R06) |Invalid Optional Parameter]] | HMS Illustrious (R06) |
| 5 | 1st, 3rd | {{HMS|Illustrious|R06|5}} | [[HMS Illustrious (R06) |HMS (R06)]] | HMS R06 |
| 6 | 1st, 2nd | {{HMS|Illustrious|R06|6}} | [[HMS Illustrious (R06) |HMS ''Illustrious'']] | HMS Illustrious |
| 2nd (no 3rd) |
{{HMS|Victory|3=2}} Alternate usage: {{HMS|Victory||2}} |
[[HMS Victory |''Victory'']] | Victory Alternate usage: Victory | |
| No 3rd param supplied | {{HMS|Illustrious}}} | [[HMS Illustrious|HMS ''Illustrious'']] | HMS Illustrious |
Sandbox template
| Value | Parameter(s) displayed |
Example | Equivalent wikicode | Final result |
|---|---|---|---|---|
| None | all | {{HMS/sandbox|Illustrious|R06}} | [[HMS Illustrious (R06) |HMS ''Illustrious'' (R06)]] | HMS Illustrious (R06) |
| 1 | 3rd | {{HMS/sandbox|Illustrious|R06|1}} | [[HMS Illustrious (R06) |R06]] | R06 |
| 2 | 2nd | {{HMS/sandbox|Illustrious|R06|2}} | [[HMS Illustrious (R06) |''Illustrious'']] | Illustrious |
| 3 | 2nd, 3rd | {{HMS/sandbox|Illustrious|R06|3}} | [[HMS Illustrious (R06) |''Illustrious'' (R06)]] | Illustrious (R06) |
| 4 | invalid result | {{HMS/sandbox|Illustrious|R06|4}} | [[HMS Illustrious (R06) |Invalid Optional Parameter]] | HMS Illustrious (R06) |
| 5 | 1st, 3rd | {{HMS/sandbox|Illustrious|R06|5}} | [[HMS Illustrious (R06) |HMS (R06)]] | HMS R06 |
| 6 | 1st, 2nd | {{HMS/sandbox|Illustrious|R06|6}} | [[HMS Illustrious (R06) |HMS ''Illustrious'']] | HMS Illustrious |
| 2nd (no 3rd) |
{{HMS/sandbox|Victory|3=2}} Alternate usage: {{HMS/sandbox|Victory||2}} |
[[HMS Victory |''Victory'']] | Victory Alternate usage: Victory | |
| No 3rd param supplied | {{HMS/sandbox |Illustrious}}} | [[HMS Illustrious|HMS ''Illustrious'']] | HMS Illustrious |