"साँचा:Cospar" के अवतरणों में अंतर
नेविगेशन पर जाएँ
खोज पर जाएँ
imported>Jayprakash12345 (from en.w) |
https://hiwiki.iiit.ac.in/index.php?title=>GKFX (Simplify with regex) |
||
पंक्ति १: | पंक्ति १: | ||
{{#if:{{{id|{{{1|}}}}}}|{{nowrap|1=[ | {{#if:{{{id|{{{1|}}}}}}|{{nowrap|1=[https://nssdc.gsfc.nasa.gov/nmc/spacecraft/display.action?id={{{id|{{{1|}}}}}} {{{name|{{{2|{{{id|{{{1|}}}}}}}}}}}}]}} {{#if: {{{noval|}}} | ||
| | |||
|{{#ifeq: {{#invoke:ustring|sub|\{{{id|{{{1|}}}}}}|5|5}}|- | |||
|{{#ifexpr: | |||
1957 <= {{#invoke:ustring|sub|\{{{id|{{{1|}}}}}}|1|4}} | |||
and {{#invoke:ustring|sub|\{{{id|{{{1|}}}}}}|1|4}} <= {{CURRENTYEAR}} | |||
||{{error-small|COSPAR ID year must be between 1957 and {{CURRENTYEAR}}}}{{#if: {{{demo|}}}||[[Category:Pages with COSPAR ID errors]]}} | |||
}} | |||
{{#if:{{#invoke:ustring|match|\{{{id|{{{1|}}}}}}|^[0-9][0-9][0-9][A-Za-z][A-Za-z]?[A-Za-z]?[^A-Za-z]*$|6}} | |||
||{{error-small|COSPAR ID does not match expected format}}{{#if: {{{demo|}}}||[[Category:Pages with COSPAR ID errors]]}} | |||
}} | |||
|<!--skip validation in case of TLE format--> | |||
}} | |||
}}}}<noinclude> | |||
{{documentation}} | {{documentation}} | ||
</noinclude> | </noinclude> |