"ഫലകം:ASIN" എന്ന താളിന്റെ പതിപ്പുകൾ തമ്മിലുള്ള വ്യത്യാസം

(ചെ.) Protected Template:ASIN: Highly visible template ([edit=sysop] (indefinite) [move=sysop] (indefinite))
add pp-template (small), move usage to documentation page
വരി 1:
[[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>}}}|&nbsp;([[{{{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>
"https://ml.wikipedia.org/wiki/ഫലകം:ASIN" എന്ന താളിൽനിന്ന് ശേഖരിച്ചത്