Difference between revisions of "Template:Book"
Jump to navigation
Jump to search
Sri.senthil (talk | contribs) (Standard template for Book) |
Sri.senthil (talk | contribs) |
||
(10 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly> | <includeonly> | ||
− | {|class="wikitable" style="width: | + | {|class="wikitable" style="width: 27%; clear:right; float:right; background:#ffffff; margin: 0 0 0.5em 1em; font-size:110%" |
|- | |- | ||
− | !style="background:# | + | !style="background:#653438;color:#ffffff;text-align:center;" colspan="2"| '''Book Details''' |
|- | |- | ||
− | | style="text-align:center;" colspan="2" | <img src="{{{ | + | | style="text-align:center;" colspan="2" | <img src="{{{coverImageUrl}}}" width="60%" height="40%"> |
|- | |- | ||
− | | style="text-align:center;background:# | + | | style="text-align:center;background:#653438;color:#ffffff;width:35%"|'''Topic'''||style="text-align:center;background:#653438;color:#ffffff;"| '''Details''' |
|- | |- | ||
− | | style="text-align:center;" |Author||{{{author}}} | + | | style="text-align:center;" |Author/Creator||{{{author}}} |
|- | |- | ||
| style="text-align:center;" |Book Title||{{{bookTitle}}} | | style="text-align:center;" |Book Title||{{{bookTitle}}} | ||
|- | |- | ||
− | | style="text-align:center;" |Subtitle||{{{subtitle}}} | + | | style="text-align:center;" |Subtitle||{{#if:{{{subtitle|}}} | {{{subtitle}}} }} |
|- | |- | ||
− | | style="text-align:center;" |Download at||{{{ | + | | style="text-align:center;" |Download at||{{{downloadUrl}}} |
|- | |- | ||
| style="text-align:center;" |Edition||{{{edition}}} | | style="text-align:center;" |Edition||{{{edition}}} | ||
|- | |- | ||
− | | style="text-align:center;" |ISBN||{{{isbn}}} | + | | style="text-align:center;" |ISBN||{{#if:{{{isbn|}}} | {{{isbn}}} }} |
|- | |- | ||
| style="text-align:center;" |Language||{{{language}}} | | style="text-align:center;" |Language||{{{language}}} | ||
Line 26: | Line 26: | ||
| style="text-align:center;" |Published By||{{{publishedBy}}} | | style="text-align:center;" |Published By||{{{publishedBy}}} | ||
|- | |- | ||
− | | style="text-align:center;" |Published Year||{{{publishedYear}}} | + | | style="text-align:center;" |Published Year||{{#if:{{{publishedYear|}}} | {{{publishedYear}}} }} |
|- | |- | ||
|} | |} | ||
Line 33: | Line 33: | ||
<templatedata> | <templatedata> | ||
{ | { | ||
− | + | "description": "Details about books published.", | |
− | + | "params": { | |
− | + | "coverImageUrl": { | |
− | + | "label": "Cover Image Url", | |
− | + | "type": "string", | |
− | + | "required": false, | |
− | + | "description": "The url of cover image of the book.", | |
− | + | "aliases": [ | |
− | + | "1" | |
− | + | ] | |
− | + | }, | |
− | + | "author": { | |
− | + | "label": "Author/Creator", | |
− | + | "type": "string", | |
− | + | "required": true, | |
− | + | "description": "Name of the Author or the Creator.", | |
− | + | "aliases": [ | |
− | + | "2" | |
− | + | ] | |
− | + | }, | |
− | + | "bookTitle": { | |
− | + | "label": "Book Title", | |
− | + | "type": "string", | |
− | + | "required": true, | |
− | + | "description": "Name or Title of the book.", | |
− | + | "aliases": [ | |
− | + | "3" | |
− | + | ] | |
− | + | }, | |
− | + | "subtitle": { | |
− | + | "label": "Subtitle", | |
− | + | "type": "string", | |
− | + | "suggested": false, | |
− | + | "description": "Optional subtitle of the book or central theme of the book.", | |
− | + | "aliases": [ | |
− | + | "4" | |
− | + | ] | |
− | + | }, | |
− | + | "downloadUrl": { | |
− | + | "label": "Download at", | |
− | + | "type": "string", | |
− | + | "required": false, | |
− | + | "description": "The url to download the book, if any.", | |
− | + | "aliases": [ | |
− | + | "5" | |
− | + | ] | |
− | + | }, | |
− | + | "edition": { | |
− | + | "label": "Edition", | |
− | + | "type": "string", | |
− | + | "required": false, | |
− | + | "description": "Edition or Revision number", | |
− | + | "aliases": [ | |
− | + | "6" | |
− | + | ] | |
− | + | }, | |
− | + | "isbn": { | |
− | + | "label": "ISBN", | |
− | + | "type": "string", | |
− | + | "suggested": false, | |
− | + | "description": "ISBN - number of the book", | |
− | + | "aliases": [ | |
− | + | "7" | |
− | + | ] | |
− | + | }, | |
− | + | "language": { | |
− | + | "label": "Language", | |
− | + | "type": "string", | |
− | + | "required": true, | |
− | + | "description": "Language of the book.", | |
− | + | "aliases": [ | |
− | + | "8" | |
− | + | ] | |
− | + | }, | |
− | + | "pageCount": { | |
− | + | "label": "Page Count", | |
− | + | "type": "number", | |
− | + | "required": true, | |
− | + | "description": "Number of pages in the book.", | |
− | + | "aliases": [ | |
+ | "9" | ||
+ | ] | ||
+ | }, | ||
+ | "publishedBy": { | ||
+ | "label": "Published By", | ||
+ | "type": "string", | ||
+ | "required": true, | ||
+ | "description": "Name of the publisher.", | ||
+ | "aliases": [ | ||
+ | "10" | ||
+ | ] | ||
+ | }, | ||
+ | "publishedYear": { | ||
+ | "label": "Published Year", | ||
+ | "type": "string", | ||
+ | "suggested": false, | ||
+ | "description": "When was the book published?", | ||
+ | "aliases": [ | ||
+ | "11" | ||
+ | ] | ||
+ | } | ||
+ | } | ||
} | } | ||
</templatedata> | </templatedata> | ||
</noinclude> | </noinclude> |
Latest revision as of 00:03, 9 September 2020
Details about books published.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Cover Image Url | coverImageUrl 1 | The url of cover image of the book. | String | optional |
Author/Creator | author 2 | Name of the Author or the Creator. | String | required |
Book Title | bookTitle 3 | Name or Title of the book. | String | required |
Subtitle | subtitle 4 | Optional subtitle of the book or central theme of the book. | String | optional |
Download at | downloadUrl 5 | The url to download the book, if any. | String | optional |
Edition | edition 6 | Edition or Revision number | String | optional |
ISBN | isbn 7 | ISBN - number of the book | String | optional |
Language | language 8 | Language of the book. | String | required |
Page Count | pageCount 9 | Number of pages in the book. | Number | required |
Published By | publishedBy 10 | Name of the publisher. | String | required |
Published Year | publishedYear 11 | When was the book published? | String | optional |