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

imported>Lwc
No limitation for country, but uk is a special case
imported>Lwc
Added new (optional) paramters and examples
വരി 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>
 
==Usage==
വരി 7:
| asin_id_from_Amazon
| *country=country_id
| *country= country_id
| *title= name of item
| *date= date of item
}}
* Optional
</nowiki></pre>
 
==ExampleExamples==
 
* <nowiki>{{ASIN|B00086U61Y}}</nowiki>
Line 40 ⟶ 43:
 
(note this time it uses ''amazon.'''fr''''')
 
 
* And here's an item with a supplied title:
 
* <nowiki>{{ASIN|B00086U61Y| title=mytitle| date=2000-12-24}}</nowiki>
 
This would produce:
 
{{ASIN|B00086U61Y| title=mytitle}}
 
* 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= mytitle| date= 2000-12-24}}</nowiki>
 
This would produce:
 
{{ASIN|B00086U61Y| title= mytitle| date= 2000-12-24}}
 
* Here's an item from the UK with a supplied title ''and'' date:
 
*<nowiki>{{ASIN|B00086U61Y| country=uk| title= mytitle| date= 2000-12-24}}</nowiki>
 
This would produce:
 
{{ASIN|B00086U61Y| country=uk| title= mytitle| date= 2000-12-24}}
 
 
[[Category:Book templates]]
"https://ml.wikipedia.org/wiki/ഫലകം:ASIN" എന്ന താളിൽനിന്ന് ശേഖരിച്ചത്