Template:AmazonLinks/Epub: Difference between revisions

From The Green Hills Series
Jump to navigationJump to search
Created page with "<noinclude> Parameters: # Book Number Returns: * Kindle Amazon Link </noinclude> <includeonly> {{#switch: {{{1|}}} | 1 = B0BCXHG5TD <!--Green Hills and Daffodils--> | 2 = B0BH12GZD6 <!--Green Hills and Dragon Tales--> | 3 = B0BKLTQDLH <!--Green Hills and Fairy Bells--> | 4 = B0BNTCPQ6J <!--Green Hills and Holy Wells--> | 5 = B0BTDSDZSX <!--Green Hills and Battlefields--> | 6 = <!--Green Hills and Whippoorwills--> | 7 = <!--Green Hills and Prison Cells--> }} </incl..."
 
No edit summary
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude><templatedata>
Parameters:
{
# Book Number
"params": {
Returns:
"1": {
* Kindle Amazon Link
"aliases": [
</noinclude>
"book"
<includeonly>
],
{{#switch: {{{1|}}}
"label": "Book Number",
"description": "Book Number in series",
"example": "1, 2, 3",
"type": "number",
"suggestedvalues": [
"1"
],
"required": true
},
"2": {
"aliases": [
"series"
],
"label": "Series Number",
"description": "Series Number",
"example": "1, 2, 3",
"type": "number",
"default": "1",
"required": true
}
},
"description": "Returns Epub ASIN"
}
</templatedata></noinclude>
<!--define book and series-->
{{#vardefine:book|{{{1|}}}}}
{{#if: {{{2|}}}
|{{#vardefine:series|{{{2}}}}}
|{{#vardefine:series|1}}
}}
 
{{#switch: {{#var:series}}
|{{#switch: {{#var:book}}
  | 1 = B0BCXHG5TD <!--Green Hills and Daffodils-->
  | 1 = B0BCXHG5TD <!--Green Hills and Daffodils-->
  | 2 = B0BH12GZD6 <!--Green Hills and Dragon Tales-->
  | 2 = B0BH12GZD6 <!--Green Hills and Dragon Tales-->
Line 12: Line 44:
  | 4 = B0BNTCPQ6J <!--Green Hills and Holy Wells-->
  | 4 = B0BNTCPQ6J <!--Green Hills and Holy Wells-->
  | 5 = B0BTDSDZSX <!--Green Hills and Battlefields-->
  | 5 = B0BTDSDZSX <!--Green Hills and Battlefields-->
  | 6 = <!--Green Hills and Whippoorwills-->
  | 6 = B0C2WJMCCZ <!--Green Hills and Whippoorwills-->
  | 7 = <!--Green Hills and Prison Cells-->
  | 7 = B0C59Y6QQ7 <!--Green Hills and Prison Cells-->
|}}
}}
}}
</includeonly>

Latest revision as of 17:07, 9 December 2023

Returns Epub ASIN

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Book Number1 book

Book Number in series

Suggested values
1
Example
1, 2, 3
Numberrequired
Series Number2 series

Series Number

Default
1
Example
1, 2, 3
Numberrequired