Actions

Template

Amazon: Difference between revisions

From HacDC Wiki

(Created template to simplify links to Amazon (and maybe add HacDC affiliate ID))
 
(Wrote documentation on how the template works)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
Generate a link to a book at Amazon, possible adding in a HacDC affiliate account if one is created.
= Generate a link to a book at Amazon =


Usage:
== Usage ==


   <nowiki>{{amazon|ASIN|Title}}</nowiki>
   <nowiki>{{amazon|ASIN|Title}}</nowiki>
Line 8: Line 8:
This will generate:
This will generate:


   <nowiki>[http://www.amazon.com/gp/product/ASIN TITLE]</nowiki>
   <nowiki>[http://www.amazon.com/dp/product/ASIN TITLE]</nowiki>


</noinclude>
== Affiliates ==
<includeonly>[http://www.amazon.com/gp/product/{{{1|}}} {{{2|}}}]</includeonly>
 
If HacDC gets an affiliate account, update the link below to add in ''<nowiki>?tag=HACDC-AMAZON-ID</nowiki>'' and all the links to Amazon products will generate revenue for the organization.
 
</noinclude><includeonly>[http://www.amazon.com/dp/product/{{{1|}}} {{{2|}}}]</includeonly>

Latest revision as of 22:06, 30 July 2008

Generate a link to a book at Amazon

Usage

 {{amazon|ASIN|Title}}

This will generate:

 [http://www.amazon.com/dp/product/ASIN TITLE]

Affiliates

If HacDC gets an affiliate account, update the link below to add in ?tag=HACDC-AMAZON-ID and all the links to Amazon products will generate revenue for the organization.