Template talk:ASIN
![]() | This template was considered for deletion on 15 April 2007. The result of the discussion was "Keep". |
![]() | This template was considered for deletion on 25 June 2012. The result of the discussion was "keep for now". |
![]() | This template was considered for deletion on 13 April 2017. The result of the discussion was "keep". |
Remove date auto-linking
[edit]{{Editprotect}}
Please remove the set of square brackets around [[{{{date}}}]]
which I believe is responsible for attempting to autolink the provided date. This will fail in many circumstances, e.g. {{ASIN|42|date=12 April 2008}} -> ASIN 42 (12 April 2008). -- Michael Bednarek (talk) 07:09, 9 April 2009 (UTC)
Why advertise Amazon
[edit]I don't see why Wikipedia should designate or link to Amazon, or any particular vendor, of a work mentioned in the encyclopedia.—Finell 22:35, 27 January 2010 (UTC)
- {{cite}} also links to Amazon with ASINs... , unlike this template, that one is used directly for references... 70.49.127.65 (talk) 03:14, 27 June 2012 (UTC)
- I have put this template up fro deletion. See Wikipedia:Templates_for_discussion/Log/2012_June_25#Template:ASIN. -- Alan Liefting (talk - contribs) 03:18, 27 June 2012 (UTC)
Tweak for print
[edit]{{edit protected}}
Simply copy paste this.
<!-- -->{{hide in print |[[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}}}) }} }}<!-- -->{{only in print |ASIN: {{{1}}}<!-- -->{{#if:{{{title|<noinclude>x</noinclude>}}} |, ''{{{title}}}'' }}<!-- -->{{#if:{{{date|<noinclude>x</noinclude>}}} | ({{{date}}}) }} }}<!-- --><noinclude> {{pp-template|small=yes}} {{documentation}} </noinclude>
This will help clean up PDFs and Books. The code has been tested and works. Headbomb {ταλκκοντριβς – WP Physics} 22:13, 3 March 2010 (UTC)
blank lines and messed up formatting
[edit]{{editprotected}} I am trying to use this template in a list but it is messing up the line spacing and more if there is any text after:
- text text text text text
- text text text text text
- ASIN 012345678
- ASIN 012345678 test
- ASIN 012345678
- text text text text text
- text text text text text
I don't know how to fix it. —Eekerz (t) 08:23, 22 April 2010 (UTC)
- Problem solved. Thank you for the report. —TheDJ (talk • contribs) 10:24, 22 April 2010 (UTC)
Other tweak for print
[edit]{{edit protected}}
Could you please replace
|ASIN: {{{1}}}<!--
with
|ASIN{{#if:{{{country|}}}| ({{lc:amazon{{#ifeq:{{{country|}}}|uk|.co}}.{{{country|}}}}})}}: {{{1}}}<!--
This would add some missing information in PDFs. Headbomb {talk / contribs / physics / books} 12:26, 20 March 2011 (UTC)
- Could you give a little more detail about what effect this change will have? — Martin (MSGJ · talk) 21:32, 21 March 2011 (UTC)
- It would display as ASIN (amazon.fr): B000F8S4A0 instead of ASIN: B000F8S4A0 (for a link to the French Amazon) in the PDFs. Online output is unaffected. Headbomb {talk / contribs / physics / books} 21:40, 21 March 2011 (UTC)
- Okay, I don't really understand the benefit or purpose but there is no opposition, so
Done! — Martin (MSGJ · talk) 16:14, 23 March 2011 (UTC)
- Okay, I don't really understand the benefit or purpose but there is no opposition, so
- It would display as ASIN (amazon.fr): B000F8S4A0 instead of ASIN: B000F8S4A0 (for a link to the French Amazon) in the PDFs. Online output is unaffected. Headbomb {talk / contribs / physics / books} 21:40, 21 March 2011 (UTC)
When to use this
[edit]Is there any guideline as to when using this template is appropriate? Is it meant to be used in the external links section for common items like books and music? I see the old deletion discussion talking about "an ID of last resort". Yet I see this template used in External links sections for albums which are readily available in hundreds of other shops. Is it not promoting Amazon in such a case? It also seems directly against WP:ELNO #5 in this specific case. I have much less problem with it being used to source information, it is External links that bother me. Would there be objection to adding comments about apropriate usage to the documentation? --Muhandes (talk) 15:45, 27 July 2011 (UTC)
- It is very much an ID of last resort. I'm fine with it if it's used for referencing purposes, but alternatives should be used if available. Headbomb {talk / contribs / physics / books} 15:56, 27 July 2011 (UTC)
- As I said above, I'm find with its use for references, my concern is with its use for external links, especially when many free alternatives exist (discogs and allmusic to name just two).--Muhandes (talk) 18:25, 27 July 2011 (UTC)
Up for deletion
[edit]![]() | This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
See Wikipedia:Templates_for_discussion/Log/2012_June_25#Template:ASIN. Not sure if some sort of indication of the discussion can be added to the template. -- Alan Liefting (talk - contribs) 19:55, 26 June 2012 (UTC)
Added — Martin (MSGJ · talk) 21:50, 29 June 2012 (UTC)
Number of usages for ISBN
[edit]If the first digit in the parameter is a numeral the item is a book with an ISBN. Can someone pull out a list of these occurrences? I would like to get them converted to a {{cite book}} format. -- Alan Liefting (talk - contribs) 23:02, 28 June 2012 (UTC)
RFCs on citations templates and the flagging free-to-read sources
[edit]See
- Wikipedia:Village pump (proposals)#Access locks: Visual Design RFC
- Wikipedia:Village pump (proposals)#Access Locks: Citation Template Behaviour RFC
Headbomb {talk / contribs / physics / books} 17:05, 29 October 2016 (UTC)
Proposal: Use HTTPS for links to Amazon
[edit]This template generates a link to an Amazon page for a specific ASIN. Using HTTPS instead of HTTP when generating a link to Amazon should provide increased privacy and security to users. If all Amazon sites, regardless of country (such as http://www.amazon.ca/ and http://www.amazon.de/) support HTTPS, then it should be possible to have the template generate an HTTPS link in all cases. If, on the other hand, there are only some specific Amazon sites that support HTTPS, then it might be possible to have a whitelist of HTTPS-supporting domains or country codes stored in the template, and to have the template only generate an HTTPS link when a country code on the whitelist is specified. Thoughts? --Elegie (talk) 10:57, 22 January 2017 (UTC)
In this sandbox revision, I have put together an enhanced version of the template. This enhanced version automatically handles the situation where the country
parameter is a two-character country code for one of the country-specific Amazon sites listed under Amazon.com#Website. (Depending on the specific country code, the template may add .co or .com before the country code, so in each case, only the country code needs to be specified.) In addition, for most of the country codes and for the situation where no country code is specified, the enhanced version of the template uses HTTPS for the Amazon link. (The exception is that HTTPS is not used in the case of amazon.in, for India.) By doing this, users get increased privacy and security. Test cases for the original and sandbox versions of the template are available at Template:ASIN/testcases. --Elegie (talk) 08:24, 22 July 2017 (UTC)
![]() | This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Please adjust the template so that its content matches this sandbox revision. (View the diff between the template and the sandbox revision.) The purpose of this edit is to have the template automatically use HTTPS for Amazon links (in most cases) in order to provide increased privacy and security for users, and also to have the template automatically handle two-letter country extensions such as au or de (by adding .co or .com before the country extension as needed) for the country-specific Amazon sites listed under Amazon.com#Website.
Note: When copying material within Wikipedia, the information at WP:Copying within Wikipedia may be relevant, particularly with regard to copyright licensing and attribution requirements. Thanks. Elegie (talk) 08:38, 24 July 2017 (UTC)
Template-protected edit request on 29 May 2024
[edit]![]() | This edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
United Kingdom is not the only Amazon country that precedes its TLD with ".co" (.co.uk), for Japan & South Africa also do the same (".co.jp" & ".co.za" respectively). Also, the current code does not take into account that some countries also precede their TLDs with ".com" (specifically, Australia, Belgium, Brazil, Mexico, & Turkey as ".com.au", ".com.be", ".com.br", ".com.mx", & ".com.tr" respectively). This can be done by changing
-->{{#if:{{{country|}}} |{{#ifeq:{{{country|}}}|uk|.co}}.{{{country}}} |.com }}/dp/{{1x|1={{{1}}} }} {{{1}}}]<!--
to
-->{{#if:{{{country|}}} |{{#switch:{{{country}}}|jp|uk|za=.co|au|be|br|mx|tr=.com}}.{{{country}}} |.com }}/dp/{{1x|1={{{1}}} }} {{{1}}}]<!--