Difference between revisions of "Template:APOD"

From blackwiki
Jump to navigation Jump to search
blackwiki>Tom.Reding
(Accept a wider range of date formats (taken from {{Cite APOD}}))
blackwiki>Tom.Reding
("NASA's APOD" -> "NASA Astronomy Picture of the Day")
Line 24: Line 24:
  
 
m & mm ok:
 
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}} }} }} NASA's APOD: {{{title|}}} ({{{date|}}})]</includeonly><noinclude>
+
-->{{#if:{{{date|}}}|{{str sub|{{date|{{{date|}}}|iso}}|2|2}}{{str sub|{{date|{{{date|}}}|iso}}|5|2}}{{str sub|{{date|{{{date|}}}|iso}}|8|2}}.html}} }} }} NASA Astronomy Picture of the Day: {{{title|}}} ({{{date|}}})]</includeonly><noinclude>
 
{{Documentation}}
 
{{Documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 20:29, 26 September 2016

Template documentation[view] [edit] [history] [purge]

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