Template:BookLink: Difference between revisions
Content added Content deleted
(→When Not to Use: Tweaked content, moved author recommendations from Finances page to here.) |
(Colloquial support, demonstration.) |
||
Line 1: | Line 1: | ||
< |
{{#if:{{{2|}}}|<amazon keywords="{{{1}}}"><span class="plainlinks">''[%url% {{{2}}}]''</span></amazon>|<amazon keywords="{{{1}}}"><span class="plainlinks">''[%url% %title%]'' by '''%author%'''</span></amazon>}}</includeonly><noinclude>{{template}} |
||
==Purpose== |
==Purpose== |
||
Line 30: | Line 30: | ||
<pre>{{BookLink|0201896834}}</pre> |
<pre>{{BookLink|0201896834}}</pre> |
||
This will appear as: |
This will appear as: {{BookLink|0201896834}} |
||
{{BookLink|0201896834}} |
|||
The box set, volumes 1-4A has the ISBN-10 of '''0321751043'''. To create a referral link to this resource, you may use this syntax: |
The box set, volumes 1-4A has the ISBN-10 of '''0321751043'''. To create a referral link to this resource, you may use this syntax: |
||
<pre>{{BookLink|0321751043}}</pre> |
<pre>{{BookLink|0321751043}}</pre> |
||
This will appear as: |
This will appear as: {{BookLink|0321751043}} |
||
{{BookLink|0321751043}} |
|||
===Colloquial naming=== |
|||
Colloquial names are supported, too. For example, {{BookLink|9780596000271}} is colloquially known as the "camel book". To represent this, we take the ISBN (978-0-596-00027-1), remove all dashes (to get 9780596000271), and use this syntax: |
|||
<pre>{{BookLink|9780596000271|camel book}}</pre> |
|||
This will appear as: {{BookLink|9780596000271|camel book}} |