[[Amazon Standard Identification Number|ASIN]] [http://www.amazon{{ #if:{{{country|}}}|{{ #ifeq:{{{country|}}}|uk|.co}}.{{{country}}}|.com}}/dp/{{{1}}} {{{1}}}]{{#if:{{{title|<noinclude>x</noinclude>}}}|, ''{{{title}}}''}}{{#if:{{{date|<noinclude>x</noinclude>}}}| ([[{{{date}}}]])}}<noinclude>
{{pp-template|small=yes}}
{{documentation}}
==Usage==
<pre><nowiki>
{{ASIN
| asin_id_from_Amazon
| *country=country_id
| *title=name of item
| *date=date of item
}}
* Optional
(The usage structure above is written for easy reading.
Note that for some reason you can't use neither linebreaks nor spaces
between the parameters).
</nowiki></pre>
==Examples==
* <nowiki>{{ASIN|B00086U61Y}}</nowiki>
Would produce:
{{ASIN|B00086U61Y}}
(note it uses ''amazon.'''com''''' by default)
* Add country=uk/de/fr/etc., in order to use their local [[Amazon.com|Amazon]] sites
('''uk''' gets an automated '''co.''' added before it):
** <nowiki>{{ASIN|B000F8S4A0|country=uk}}</nowiki>
Would produce:
{{ASIN|B000F8S4A0|country=uk}}
(note this time it uses ''amazon.'''co.uk''''')
** <nowiki>{{ASIN|B000F8S4A0|country=fr}}</nowiki>
Would produce:
{{ASIN|B000F8S4A0|country=fr}}
(note this time it uses ''amazon.'''fr''''')
* And here's an item with a supplied title:
* <nowiki>{{ASIN|B00086U61Y|title=Item's Title}}</nowiki>
This would produce:
{{ASIN|B00086U61Y|title=Item's Title}}
* Here's an item with a supplied date:
* <nowiki>{{ASIN|B00086U61Y|date=2000-12-24}}</nowiki>
This would produce:
{{ASIN|B00086U61Y|date=2000-12-24}}
* Here's an item with a supplied title ''and'' date:
*<nowiki>{{ASIN| B00086U61Y|title=Item's Title|date=2000-12-24}}</nowiki>
This would produce:
{{ASIN|B00086U61Y|title=Item's Title|date=2000-12-24}}
* Here's an item from the UK with a supplied title ''and'' date:
*<nowiki>{{ASIN|B00086U61Y|country=uk|title=Item's Title|date=2000-12-24}}</nowiki>
This would produce:
{{ASIN|B00086U61Y|country=uk|title=Item's Title|date= 2000-12-24}}
{{DEFAULTSORT:{{PAGENAME}}}}
[[Category:Book templates]]
[[Category:External link templates]]
[[it:Template:ASIN]]
[[ja:Template:ASIN]]
[[pl:Szablon:ASIN]]
</noinclude>
|