Difference between revisions of "Template:ASIN/doc"
Jump to navigation
Jump to search
blackwiki>Elegie (Use functional ASIN in the amazon.fr example) |
m (17 revisions imported) |
||
| (4 intermediate revisions by 4 users not shown) | |||
| Line 12: | Line 12: | ||
The usage structure above is written for easy reading. | The usage structure above is written for easy reading. | ||
| − | + | You must not have linebreaks or spaces | |
between the parameters. | between the parameters. | ||
| Line 24: | Line 24: | ||
: {{ASIN|B00086U61Y}} | : {{ASIN|B00086U61Y}} | ||
: (note it uses ''amazon.'''com''''' by default) | : (note it uses ''amazon.'''com''''' by default) | ||
| − | * Add <code>country=uk/de/fr/etc.</code>, in order to use their local [[Amazon.com|Amazon]] sites (''' | + | * Add <code>country=uk/de/fr/etc.</code>, in order to use their local [[Amazon.com|Amazon]] sites (the template adds '''.co''' or '''.com''' before the country code as needed, so only the country code itself needs to be specified): |
** <code><nowiki>{{ASIN|B000F8S4A0|country=uk}}</nowiki></code> | ** <code><nowiki>{{ASIN|B000F8S4A0|country=uk}}</nowiki></code> | ||
*: {{ASIN|B000F8S4A0|country=uk}} | *: {{ASIN|B000F8S4A0|country=uk}} | ||
| Line 44: | Line 44: | ||
: {{ASIN|B00086U61Y|country=uk|title=Item's Title|date= 2000-12-24}} | : {{ASIN|B00086U61Y|country=uk|title=Item's Title|date= 2000-12-24}} | ||
| − | <includeonly> | + | <includeonly>{{sandbox other|1=<!-- keep sandbox out of categories -->|2= |
[[Category:Catalog lookup templates]] | [[Category:Catalog lookup templates]] | ||
[[Category:International Standard Book Number templates]] | [[Category:International Standard Book Number templates]] | ||
| − | </includeonly> | + | }}</includeonly> |
Latest revision as of 13:34, 16 October 2020
| This is a documentation subpage for Template:ASIN. It contains usage information, categories and other content that is not part of the original template page. |
Usage
{{ASIN
| asin_id_from_Amazon
| country=
| title=
| date=
}}
The usage structure above is written for easy reading. You must not have linebreaks or spaces between the parameters.
If the ASIN begins with a number, it is a standard ISBN; please use "ISBN xxxxxxxxxx" instead of ASIN xxxxxxxxxxTemplate:Only in print, as this will allow us to link to other sites as well as Amazon.
Examples
{{ASIN|B00086U61Y}}
- ASIN B00086U61YTemplate:Only in print
- (note it uses amazon.com by default)
- Add
country=uk/de/fr/etc., in order to use their local Amazon sites (the template adds .co or .com before the country code as needed, so only the country code itself needs to be specified):{{ASIN|B000F8S4A0|country=uk}}
- ASIN B000F8S4A0Template:Only in print
- (note this time it uses amazon.co.uk)
{{ASIN|B00M262M1A|country=fr}}
- ASIN B00M262M1ATemplate:Only in print
- (note this time it uses amazon.fr)
- And here's an item with a supplied title:
{{ASIN|B00086U61Y|title=Item's Title}}- ASIN B00086U61Y, Item's TitleTemplate:Only in print
- Here's an item with a supplied date:
{{ASIN|B00086U61Y|date=2000-12-24}}- ASIN B00086U61Y (2000-12-24)Template:Only in print
- Here's an item with a supplied title and date:
{{ASIN| B00086U61Y|title=Item's Title|date=2000-12-24}}- ASIN B00086U61Y, Item's Title (2000-12-24)Template:Only in print
- Here's an item from the UK with a supplied title and date:
{{ASIN|B00086U61Y|country=uk|title=Item's Title|date=2000-12-24}}- ASIN B00086U61Y, Item's Title (2000-12-24)Template:Only in print