"ഫലകം:Cite APOD" എന്ന താളിന്റെ പതിപ്പുകൾ തമ്മിലുള്ള വ്യത്യാസം

imported>Tom.Reding
(ചെ.) <includeonly></includeonly>
imported>Tom.Reding
Sync from live (handle m/mm & mmm/mmmm differently when preceded by year)
വരി 8:
|url=http://apod.nasa.gov/apod/ap{{#iferror: {{#expr:{{str sub|{{{date|}}}|0|4}} * 1}}|<!--
 
!YMD (theyyyy ruleis not in front): --> {{#if:{{{date|}}}|{{str sub|{{date|{{{date|}}}|iso}}|2|2}}{{str sub|{{date|{{{date|}}}|iso}}|5|2}}{{str sub|{{date|{{{date|}}}|iso}}|8|2}}.html}}|<!--
 
Y *is* in front. Now check month: m & mm ok, mmm & mmmm bad.
Using date=yyyy mmm d (the exception to the rule) will cause {{cite web}} to emit a "Check date value" message, but the APOD URL (yymmdd) will not be broken after this.
-->{{#iferror: {{#expr:{{str sub|{{{date|}}}|5|2}} * 1}}|<!--
 
mmm & mmmm bad:
Using date=yyyy mmm d (the exception to the rule) will cause {{cite web}} to emit a "Check date value" message, but the APOD URL (yymmdd) will not be broken after this.
{{date|YMD|iso}} doesn't work, so YMD needs to be reformatted to an acceptable format.
YMD: --> {{#if:{{{date|}}}|<!--
Line 24 ⟶ 28:
YMD input M-->{{MONTHNUMBER|{{str sub|{{{date|}}}|5|3}}}}-<!--
YMD input D-->{{str rightc|{{{date|}}}|2}}|iso}}<!--
YMD output D-->|8|2}}.html}} }}|<!--
 
m & mm ok:
-->{{#if:{{{date|}}}|{{str sub|{{date|{{{date|}}}|iso}}|2|2}}{{str sub|{{date|{{{date|}}}|iso}}|5|2}}{{str sub|{{date|{{{date|}}}|iso}}|8|2}}.html}} }} }}
|work=[[Astronomy Picture of the Day]]
|publisher=[[NASA]]
"https://ml.wikipedia.org/wiki/ഫലകം:Cite_APOD" എന്ന താളിൽനിന്ന് ശേഖരിച്ചത്