Difference between revisions of "Template:HMS/testcases"
Jump to navigation
Jump to search
imported>ShakespeareFan00 m (Mismatched formatting repaired) |
imported>Jonesey95 |
||
| Line 7: | Line 7: | ||
{|class=wikitable width=100% | {|class=wikitable width=100% | ||
! Value | ! Value | ||
| − | ! Parameter(s)<br>displayed | + | ! Parameter(s)<br />displayed |
! Example | ! Example | ||
! Equivalent wikicode | ! Equivalent wikicode | ||
| Line 14: | Line 14: | ||
! None | ! None | ||
| style="text-align:center;" | all | | style="text-align:center;" | all | ||
| − | | < | + | | <code><nowiki>{{HMS|Illustrious|R06}}</nowiki></code> |
| − | | < | + | | <code><nowiki>[[HMS Illustrious (R06) |HMS ''Illustrious'' (R06)]]</nowiki></code> |
| {{HMS|Illustrious|R06}} | | {{HMS|Illustrious|R06}} | ||
|- | |- | ||
! 1 | ! 1 | ||
| style="text-align:center;" | 3rd | | style="text-align:center;" | 3rd | ||
| − | | < | + | | <code><nowiki>{{HMS|Illustrious|R06|1}}</nowiki></code> |
| − | | < | + | | <code><nowiki>[[HMS Illustrious (R06) |R06]]</nowiki></code> |
| {{HMS|Illustrious|R06|1}} | | {{HMS|Illustrious|R06|1}} | ||
|- | |- | ||
! 2 | ! 2 | ||
| style="text-align:center;" | 2nd | | style="text-align:center;" | 2nd | ||
| − | | < | + | | <code><nowiki>{{HMS|Illustrious|R06|2}</nowiki>}</code> |
| − | | < | + | | <code><nowiki>[[HMS Illustrious (R06) |''Illustrious'']]</nowiki></code> |
| {{HMS|Illustrious|R06|2}} | | {{HMS|Illustrious|R06|2}} | ||
|- | |- | ||
! 3 | ! 3 | ||
| style="text-align:center;" | 2nd, 3rd | | style="text-align:center;" | 2nd, 3rd | ||
| − | | < | + | | <code><nowiki>{{HMS|Illustrious|R06|3}</nowiki>}</code> |
| − | | < | + | | <code><nowiki>[[HMS Illustrious (R06) |''Illustrious'' (R06)]]</nowiki></code> |
| {{HMS|Illustrious|R06|3}} | | {{HMS|Illustrious|R06|3}} | ||
|- | |- | ||
! 4 | ! 4 | ||
| style="text-align:center;" | invalid result | | style="text-align:center;" | invalid result | ||
| − | | < | + | | <code><nowiki>{{HMS|Illustrious|R06|4}</nowiki>}</code> |
| − | | < | + | | <code><nowiki>[[HMS Illustrious (R06) |Invalid Optional Parameter]]</nowiki></code> |
| {{HMS|Illustrious|R06|4}} | | {{HMS|Illustrious|R06|4}} | ||
|- | |- | ||
! 5 | ! 5 | ||
| style="text-align:center;" | 1st, 3rd | | style="text-align:center;" | 1st, 3rd | ||
| − | | < | + | | <code><nowiki>{{HMS|Illustrious|R06|5}</nowiki>}</code> |
| − | | < | + | | <code><nowiki>[[HMS Illustrious (R06) |HMS (R06)]]</nowiki></code> |
| {{HMS|Illustrious|R06|5}} | | {{HMS|Illustrious|R06|5}} | ||
|- | |- | ||
! 6 | ! 6 | ||
| style="text-align:center;" | 1st, 2nd | | style="text-align:center;" | 1st, 2nd | ||
| − | | < | + | | <code><nowiki>{{HMS|Illustrious|R06|6}</nowiki>}</code> |
| − | | < | + | | <code><nowiki>[[HMS Illustrious (R06) |HMS ''Illustrious'']]</nowiki></code> |
| {{HMS|Illustrious|R06|6}} | | {{HMS|Illustrious|R06|6}} | ||
|- | |- | ||
| | | | ||
| − | | style="text-align:center;" | 2nd<br><small>(no 3rd)</small> | + | | style="text-align:center;" | 2nd<br /><small>(no 3rd)</small> |
| − | | < | + | | <code><nowiki>{{HMS|Victory|3=2}}</nowiki></code> <br/> ''Alternate usage'': <code><nowiki>{{HMS|Victory||2}}</nowiki></code> |
| − | | < | + | | <code><nowiki>[[HMS Victory |''Victory'']]</nowiki></code> |
| {{HMS|Victory|3=2}}<br/> ''Alternate usage'': {{HMS|Victory||2}} | | {{HMS|Victory|3=2}}<br/> ''Alternate usage'': {{HMS|Victory||2}} | ||
|- | |- | ||
| | | | ||
| style="text-align:center;" | No 3rd param supplied | | style="text-align:center;" | No 3rd param supplied | ||
| − | | < | + | | <code><nowiki>{{HMS|Illustrious}}</nowiki>}</code> |
| − | | < | + | | <code><nowiki>[[HMS Illustrious|HMS ''Illustrious'']]</nowiki></code> |
| {{HMS|Illustrious}} | | {{HMS|Illustrious}} | ||
|} | |} | ||
| Line 70: | Line 70: | ||
{|class=wikitable width=100% | {|class=wikitable width=100% | ||
! Value | ! Value | ||
| − | ! Parameter(s)<br>displayed | + | ! Parameter(s)<br />displayed |
! Example | ! Example | ||
! Equivalent wikicode | ! Equivalent wikicode | ||
| Line 77: | Line 77: | ||
! None | ! None | ||
| style="text-align:center;" | all | | style="text-align:center;" | all | ||
| − | | < | + | | <code><nowiki>{{HMS/sandbox|Illustrious|R06}}</nowiki></code> |
| − | | < | + | | <code><nowiki>[[HMS Illustrious (R06) |HMS ''Illustrious'' (R06)]]</nowiki></code> |
| {{HMS/sandbox|Illustrious|R06}} | | {{HMS/sandbox|Illustrious|R06}} | ||
|- | |- | ||
! 1 | ! 1 | ||
| style="text-align:center;" | 3rd | | style="text-align:center;" | 3rd | ||
| − | | < | + | | <code><nowiki>{{HMS/sandbox|Illustrious|R06|1}}</nowiki></code> |
| − | | < | + | | <code><nowiki>[[HMS Illustrious (R06) |R06]]</nowiki></code> |
| {{HMS/sandbox|Illustrious|R06|1}} | | {{HMS/sandbox|Illustrious|R06|1}} | ||
|- | |- | ||
! 2 | ! 2 | ||
| style="text-align:center;" | 2nd | | style="text-align:center;" | 2nd | ||
| − | | < | + | | <code><nowiki>{{HMS/sandbox|Illustrious|R06|2}</nowiki>}</code> |
| − | | < | + | | <code><nowiki>[[HMS Illustrious (R06) |''Illustrious'']]</nowiki></code> |
| {{HMS/sandbox|Illustrious|R06|2}} | | {{HMS/sandbox|Illustrious|R06|2}} | ||
|- | |- | ||
! 3 | ! 3 | ||
| style="text-align:center;" | 2nd, 3rd | | style="text-align:center;" | 2nd, 3rd | ||
| − | | < | + | | <code><nowiki>{{HMS/sandbox|Illustrious|R06|3}</nowiki>}</code> |
| − | | < | + | | <code><nowiki>[[HMS Illustrious (R06) |''Illustrious'' (R06)]]</nowiki></code> |
| {{HMS/sandbox|Illustrious|R06|3}} | | {{HMS/sandbox|Illustrious|R06|3}} | ||
|- | |- | ||
! 4 | ! 4 | ||
| style="text-align:center;" | invalid result | | style="text-align:center;" | invalid result | ||
| − | | < | + | | <code><nowiki>{{HMS/sandbox|Illustrious|R06|4}</nowiki>}</code> |
| − | | < | + | | <code><nowiki>[[HMS Illustrious (R06) |Invalid Optional Parameter]]</nowiki></code> |
| {{HMS/sandbox|Illustrious|R06|4}} | | {{HMS/sandbox|Illustrious|R06|4}} | ||
|- | |- | ||
! 5 | ! 5 | ||
| style="text-align:center;" | 1st, 3rd | | style="text-align:center;" | 1st, 3rd | ||
| − | | < | + | | <code><nowiki>{{HMS/sandbox|Illustrious|R06|5}</nowiki>}</code> |
| − | | < | + | | <code><nowiki>[[HMS Illustrious (R06) |HMS (R06)]]</nowiki></code> |
| {{HMS/sandbox|Illustrious|R06|5}} | | {{HMS/sandbox|Illustrious|R06|5}} | ||
|- | |- | ||
! 6 | ! 6 | ||
| style="text-align:center;" | 1st, 2nd | | style="text-align:center;" | 1st, 2nd | ||
| − | | < | + | | <code><nowiki>{{HMS/sandbox|Illustrious|R06|6}</nowiki>}</code> |
| − | | < | + | | <code><nowiki>[[HMS Illustrious (R06) |HMS ''Illustrious'']]</nowiki></code> |
| {{HMS/sandbox|Illustrious|R06|6}} | | {{HMS/sandbox|Illustrious|R06|6}} | ||
|- | |- | ||
| | | | ||
| − | | style="text-align:center;" | 2nd<br><small>(no 3rd)</small> | + | | style="text-align:center;" | 2nd<br /><small>(no 3rd)</small> |
| − | | < | + | | <code><nowiki>{{HMS/sandbox|Victory|3=2}}</nowiki></code> <br/> ''Alternate usage'': <code><nowiki>{{HMS/sandbox|Victory||2}}</nowiki></code> |
| − | | < | + | | <code><nowiki>[[HMS Victory |''Victory'']]</nowiki></code> |
| {{HMS/sandbox|Victory|3=2}}<br/> ''Alternate usage'': {{HMS/sandbox|Victory||2}} | | {{HMS/sandbox|Victory|3=2}}<br/> ''Alternate usage'': {{HMS/sandbox|Victory||2}} | ||
|- | |- | ||
| | | | ||
| style="text-align:center;" | No 3rd param supplied | | style="text-align:center;" | No 3rd param supplied | ||
| − | | < | + | | <code><nowiki>{{HMS/sandbox |Illustrious}}</nowiki>}</code> |
| − | | < | + | | <code><nowiki>[[HMS Illustrious|HMS ''Illustrious'']]</nowiki></code> |
| {{HMS/sandbox |Illustrious}} | | {{HMS/sandbox |Illustrious}} | ||
|} | |} | ||
Latest revision as of 15:24, 31 May 2020
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 |