Jump to content

Template talk:ASIN

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
(Redirected from Template talk:ASIN/sandbox)

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)[reply]

 Done PeterSymonds (talk) 11:47, 9 April 2009 (UTC)[reply]

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)[reply]

{{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)[reply]
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)[reply]

Tweak for print

[edit]

{{edit protected}} Simply copy paste this.

<!--
-->{{hide in print
    |[[Amazon Standard Identification Number|ASIN]]&nbsp;[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>}}}
    |&nbsp;({{{date}}})
   }}
}}<!--
-->{{only in print
    |ASIN:&nbsp;{{{1}}}<!--
  -->{{#if:{{{title|<noinclude>x</noinclude>}}}
      |, ''{{{title}}}''
     }}<!--
   -->{{#if:{{{date|<noinclude>x</noinclude>}}}
      |&nbsp;({{{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)[reply]

 Done  Ronhjones  (Talk) 22:50, 6 March 2010 (UTC)[reply]
Many thanks. Headbomb {talk / contribs / physics / books} 22:57, 6 March 2010 (UTC)[reply]

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:

I don't know how to fix it. —Eekerz (t) 08:23, 22 April 2010 (UTC)[reply]

Problem solved. Thank you for the report. —TheDJ (talkcontribs) 10:24, 22 April 2010 (UTC)[reply]

Other tweak for print

[edit]

{{edit protected}} Could you please replace

    |ASIN:&nbsp;{{{1}}}<!--

with

    |ASIN{{#if:{{{country|}}}|&nbsp;({{lc:amazon{{#ifeq:{{{country|}}}|uk|.co}}.{{{country|}}}}})}}:&nbsp;{{{1}}}<!--

This would add some missing information in PDFs. Headbomb {talk / contribs / physics / books} 12:26, 20 March 2011 (UTC)[reply]

Could you give a little more detail about what effect this change will have? — Martin (MSGJ · talk) 21:32, 21 March 2011 (UTC)[reply]
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)[reply]
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)[reply]

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)[reply]

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)[reply]
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)[reply]
Then yeah, it's inappropriate in those cases. Still clue must be exercised. A link to Amazon is better than no link at all. But if there are links to Discogs / Allmusic / other sites, then it should be safe to remove then. Headbomb {talk / contribs / physics / books} 19:13, 27 July 2011 (UTC)[reply]

Up for deletion

[edit]

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)[reply]

plus Added — Martin (MSGJ · talk) 21:50, 29 June 2012 (UTC)[reply]

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)[reply]

RFCs on citations templates and the flagging free-to-read sources

[edit]

See

Headbomb {talk / contribs / physics / books} 17:05, 29 October 2016 (UTC)[reply]

[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)[reply]

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)[reply]

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)[reply]

Done GeoffreyT2000 (talk, contribs) 01:11, 27 July 2017 (UTC)[reply]

Template-protected edit request on 29 May 2024

[edit]

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}}}]<!--

‐⁠‑🌀⁠SilSinnAL982100💬 05:59, 29 May 2024 (UTC)[reply]

 Done * Pppery * it has begun... 03:10, 30 May 2024 (UTC)[reply]