Template:Cospar/testcases
Appearance
This is the template test cases page for the sandbox of Template:Cospar. to update the examples. If there are many examples of a complicated template, later ones may break due to limits in MediaWiki; see the HTML comment "NewPP limit report" in the rendered page. You can also use Special:ExpandTemplates to examine the results of template uses. You can test how this page looks in the different skins and parsers with these links: |
1957-001A
[edit]Simple link to COSPAR database
{{Cospar|1957-001A}}
{{Cospar}} | {{Cospar/sandbox}} |
---|---|
1957-001A | 1957-001A |
1957-001A
[edit]Same link with named parameter "id"
{{Cospar|id=1957-001A}}
{{Cospar}} | {{Cospar/sandbox}} |
---|---|
1957-001A | 1957-001A |
PIONX
[edit]Simple link with a different form of NSSDCA ID
{{Cospar|id=PIONX}}
{{Cospar}} | {{Cospar/sandbox}} |
---|---|
PIONX | PIONX |
Pioneer P-3
[edit]Optional satellite name with a different form of NSSDCA ID
{{Cospar|id=PIONX |name=Pioneer P-3}}
{{Cospar}} | {{Cospar/sandbox}} |
---|---|
Pioneer P-3 | Pioneer P-3 |
Sputnik
[edit]Optional satellite name with id
{{Cospar|id=1957-001A |name=Sputnik}}
{{Cospar}} | {{Cospar/sandbox}} |
---|---|
Sputnik | Sputnik |
Galileo
[edit]Optional satellite name with both unnamed parameters
{{Cospar|1989-084B|Galileo}}
{{Cospar}} | {{Cospar/sandbox}} |
---|---|
Galileo | Galileo |
No data
[edit]Template called with empty params
{{Cospar|}}
{{Cospar}} | {{Cospar/sandbox}} |
---|---|
Wrong year
[edit]Too early
[edit]{{Cospar|demo=yes |id=1901-001A}}
{{Cospar}} | {{Cospar/sandbox}} |
---|---|
1901-001A COSPAR ID year must be between 1957 and 2024 | 1901-001A COSPAR ID year must be between 1957 and 2024 |
Too late
[edit]{{Cospar|demo=yes |id=2107-001A}}
{{Cospar}} | {{Cospar/sandbox}} |
---|---|
2107-001A COSPAR ID year must be between 1957 and 2024 | 2107-001A COSPAR ID year must be between 1957 and 2024 |
Wrong launch number
[edit]Too short
[edit]{{Cospar|demo=yes |id=2017-1A}}
{{Cospar}} | {{Cospar/sandbox}} |
---|---|
2017-1A COSPAR ID does not match expected format | 2017-1A COSPAR ID does not match expected format |
Too long
[edit]{{Cospar|demo=yes |id=2017-1234A}}
{{Cospar}} | {{Cospar/sandbox}} |
---|---|
2017-1234A COSPAR ID does not match expected format | 2017-1234A COSPAR ID does not match expected format |
Wrong item
[edit]No item letter
[edit]{{Cospar|demo=yes |id=2017-001}}
{{Cospar}} | {{Cospar/sandbox}} |
---|---|
2017-001 COSPAR ID does not match expected format | 2017-001 COSPAR ID does not match expected format |
Item too long
[edit]{{Cospar|demo=yes |id=2017-001ABCD}}
{{Cospar}} | {{Cospar/sandbox}} |
---|---|
2017-001ABCD COSPAR ID does not match expected format | 2017-001ABCD COSPAR ID does not match expected format |