Template:Cospar/testcases
From The Right Wiki
Jump to navigationJump to search
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
Simple link to COSPAR database
{{Cospar|1957-001A}}
{{Cospar}} | {{Cospar/sandbox}} |
---|---|
1957-001A | 1957-001A |
1957-001A
Same link with named parameter "id"
{{Cospar|id=1957-001A}}
{{Cospar}} | {{Cospar/sandbox}} |
---|---|
1957-001A | 1957-001A |
PIONX
Simple link with a different form of NSSDCA ID
{{Cospar|id=PIONX}}
{{Cospar}} | {{Cospar/sandbox}} |
---|---|
PIONX | PIONX |
Pioneer P-3
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
Optional satellite name with id
{{Cospar|id=1957-001A |name=Sputnik}}
{{Cospar}} | {{Cospar/sandbox}} |
---|---|
Sputnik | Sputnik |
Galileo
Optional satellite name with both unnamed parameters
{{Cospar|1989-084B|Galileo}}
{{Cospar}} | {{Cospar/sandbox}} |
---|---|
Galileo | Galileo |
No data
Template called with empty params
{{Cospar|}}
{{Cospar}} | {{Cospar/sandbox}} |
---|---|
Wrong year
Too early
{{Cospar|demo=yes |id=1901-001A}}
{{Cospar}} | {{Cospar/sandbox}} |
---|---|
1901-001A COSPAR ID year must be between 1957 and 2025 | 1901-001A COSPAR ID year must be between 1957 and 2025 |
Too late
{{Cospar|demo=yes |id=2107-001A}}
{{Cospar}} | {{Cospar/sandbox}} |
---|---|
2107-001A COSPAR ID year must be between 1957 and 2025 | 2107-001A COSPAR ID year must be between 1957 and 2025 |
Wrong launch number
Too short
{{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
{{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
No item letter
{{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
{{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 |