Jump to content

Template:ASIN/doc: Difference between revisions

From Noumenapedia
→When to use: clarify remove
 
m 1 revision imported
 
(No difference)

Latest revision as of 10:13, 9 September 2026

__EXPECTED_UNCONNECTED_PAGE__

When to use

This is "an identifier of last resort". Almost any other identifier, such as {{ISBN}}, {{doi}}, {{OCLC}}, {{LCCN}}, etc., is a better choice and should be used instead of this one.

If the ASIN begins with a number, it is a standard ISBN; please use {{ISBN|xxxxxxxxxx}} and remove {{ASIN|xxxxxxxxxx}}, as this will allow us to link to other sites as well as Amazon.

Maintenance categories

  • Category:Articles using Template:ASIN with an all-numeric value (0): Articles in this category are likely to have ASIN templates that can be converted to:
    • use {{ISBN}}
    • or, if {{ASIN}} is in the <syntaxhighlight lang="wikitext" inline style="display: none;" />|id= parameter of a citation template, to use <syntaxhighlight lang="wikitext" inline style="display: none;" />|ISBN=

After conversion, always check the resulting link to ensure that it links to the intended item.

How to use

<syntaxhighlight lang="wikitext"> ASIN [https://www.amazon.com/dp/asin_id_from_Amazon asin_id_from_Amazon ]</syntaxhighlight>

The usage structure above is written for easy reading. You must not have linebreaks or spaces between the parameters.

Examples

  • {{ASIN|B00086U61Y}}
ASIN B00086U61Y
(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 B000F8S4A0
    (note this time it uses amazon.co.uk)
    • {{ASIN|B00M262M1A|country=fr}}
    ASIN B00M262M1A
    (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 Title
  • Here's an item with a supplied date:
{{ASIN|B00086U61Y|date=2000-12-24}}
ASIN B00086U61Y (2000-12-24)
  • 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)
  • 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)

TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:ASIN in articles based on its TemplateData.

TemplateData for ASIN

<templatedata> { "params": { "1": { "label": "ASIN", "description": "ASIN identifier", "example": "B00086U61Y", "type": "string", "required": true }, "title": { "label": "Title", "description": "Title of the item", "example": "Example Book Title", "type": "string" }, "country": { "label": "Country code", "description": "country code to change the URL from .com to (e.g.) .co.uk", "example": "uk", "type": "string" }, "date": { "label": "Date", "description": "Date", "example": "2020-12-14", "type": "string" } }, "description": "Use this template to create a link (or list of links) to Amazon.com using an item's ASIN identifier." } </templatedata>