Difference between revisions of "Template:APOD"
Jump to navigation
Jump to search
blackwiki>Tom.Reding ("NASA's APOD" -> "NASA Astronomy Picture of the Day") |
blackwiki>Elegie (Use HTTPS for apod.nasa.gov link to provide increased user privacy/security) |
||
| Line 1: | Line 1: | ||
| − | <includeonly>[ | + | <includeonly>[https://apod.nasa.gov/apod/ap{{#iferror: {{#expr:{{str sub|{{{date|}}}|0|4}} * 1}}|<!-- |
!YMD (yyyy is 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}}|<!-- | !YMD (yyyy is 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}}|<!-- | ||
Revision as of 12:08, 26 November 2016
Usage
This template aids in the creation and standardization of an external link to NASA's Astronomy Picture of the Day (APOD).
The following 2 named parameters are required:
|date=is the date the picture appeared on APOD.|title=refers to the title of the|date='s APOD image, which normally appears immediately below the image. Do not use|title=Astronomy Picture of the Day.
Empty template with all parameters:
{{APOD |date= |title=}}
Examples
{{APOD |date=19 January 2014 |title=Spiral Galaxies in Collision}}- Template:Str subTemplate:Str subTemplate:Str sub.html NASA Astronomy Picture of the Day: Spiral Galaxies in Collision (19 January 2014)
See also
{{Cite APOD}}— for the citation version of this template
| The above documentation is transcluded from Template:APOD/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |