Jump to content

Template:Cospar/testcases

From Wikipedia, the free encyclopedia

1957-001A

[edit]

Simple link to COSPAR database

{{Cospar|1957-001A}}
Side by side comparison
{{Cospar}}{{Cospar/sandbox}}
1957-001A 1957-001A

1957-001A

[edit]

Same link with named parameter "id"

{{Cospar|id=1957-001A}}
Side by side comparison
{{Cospar}}{{Cospar/sandbox}}
1957-001A 1957-001A

PIONX

[edit]

Simple link with a different form of NSSDCA ID

{{Cospar|id=PIONX}}
Side by side comparison
{{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}}
Side by side comparison
{{Cospar}}{{Cospar/sandbox}}
Pioneer P-3 Pioneer P-3

Sputnik

[edit]

Optional satellite name with id

{{Cospar|id=1957-001A |name=Sputnik}}
Side by side comparison
{{Cospar}}{{Cospar/sandbox}}
Sputnik Sputnik

Galileo

[edit]

Optional satellite name with both unnamed parameters

{{Cospar|1989-084B|Galileo}}
Side by side comparison
{{Cospar}}{{Cospar/sandbox}}
Galileo Galileo

No data

[edit]

Template called with empty params

{{Cospar|}}
Side by side comparison
{{Cospar}}{{Cospar/sandbox}}

Wrong year

[edit]

Too early

[edit]
{{Cospar|demo=yes |id=1901-001A}}
Side by side comparison
{{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}}
Side by side comparison
{{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}}
Side by side comparison
{{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}}
Side by side comparison
{{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}}
Side by side comparison
{{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}}
Side by side comparison
{{Cospar}}{{Cospar/sandbox}}
2017-001ABCD COSPAR ID does not match expected format 2017-001ABCD COSPAR ID does not match expected format