Difference between revisions of "Template:Book"

From Nithyanandapedia
Jump to navigation Jump to search
Line 33: Line 33:
 
<templatedata>
 
<templatedata>
 
{
 
{
    "description": "Details about books published.",
+
"description": "Details about books published.",
    "params": {
+
"params": {
        "coverImageUrl": {
+
"coverImageUrl": {
            "label": "Cover Image Url",
+
"label": "Cover Image Url",
            "type": "string",
+
"type": "string",
            "required": false,
+
"required": false,
            "description": "The url of cover image of the book.",
+
"description": "The url of cover image of the book.",
            "aliases": ["1"]
+
"aliases": [
        },
+
"1"
        "author": {
+
]
            "label": "Author/Creator",
+
},
            "type": "string",
+
"author": {
            "required": true,
+
"label": "Author/Creator",
            "description": "Name of the Author or the Creator.",
+
"type": "string",
            "aliases": ["2"]
+
"required": true,
        },
+
"description": "Name of the Author or the Creator.",
        "bookTitle": {
+
"aliases": [
            "label": "Book Title",
+
"2"
            "type": "string",
+
]
            "required": true,
+
},
            "description": "Name or Title of the book.",
+
"bookTitle": {
            "aliases": ["3"]
+
"label": "Book Title",
        },
+
"type": "string",
        "subtitle": {
+
"required": true,
            "label": "Subtitle",
+
"description": "Name or Title of the book.",
            "type": "string",
+
"aliases": [
            "required": false,
+
"3"
            "description": "Optional subtitle of the book or central theme of the book.",
+
]
            "aliases": ["4"]
+
},
        },
+
"subtitle": {
        "downloadUrl": {
+
"label": "Subtitle",
            "label": "Download at",
+
"type": "string",
            "type": "string",
+
"required": false,
            "required": false,
+
"description": "Optional subtitle of the book or central theme of the book.",
            "description": "The url to download the book, if any.",
+
"aliases": [
            "aliases": ["5"]
+
"4"
        },
+
]
        "edition": {
+
},
            "label": "Edition",
+
"downloadUrl": {
            "type": "string",
+
"label": "Download at",
            "required": false,
+
"type": "string",
            "description": "Edition or Revision number",
+
"required": false,
            "aliases": ["6"]
+
"description": "The url to download the book, if any.",
        },
+
"aliases": [
        "isbn": {
+
"5"
            "label": "ISBN",
+
]
            "type": "string",
+
},
            "required": true,
+
"edition": {
            "description": "ISBN - number of the book",
+
"label": "Edition",
            "aliases": ["7"]
+
"type": "string",
        },
+
"required": false,
        "language": {
+
"description": "Edition or Revision number",
            "label": "Language",
+
"aliases": [
            "type": "string",
+
"6"
            "required": true,
+
]
            "description": "Language of the book.",
+
},
            "aliases": ["8"]
+
"isbn": {
        },
+
"label": "ISBN",
        "pageCount": {
+
"type": "string",
            "label": "Page Count",
+
"required": true,
            "type": "number",
+
"description": "ISBN - number of the book",
            "required": true,
+
"aliases": [
            "description": "Number of pages in the book.",
+
"7"
            "aliases": ["9"]
+
]
        },
+
},
        "publishedBy": {
+
"language": {
            "label": "Published By",
+
"label": "Language",
            "type": "string",
+
"type": "string",
            "required": true,
+
"required": true,
            "description": "Name of the publisher.",
+
"description": "Language of the book.",
            "aliases": ["10"]
+
"aliases": [
        },
+
"8"
        "publishedYear": {
+
]
            "label": "Published Year",
+
},
            "type": "string",
+
"pageCount": {
            "required": true,
+
"label": "Page Count",
            "description": "When was the book published?",
+
"type": "number",
            "aliases": ["11"]
+
"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",
 +
"required": true,
 +
"description": "When was the book published?",
 +
"aliases": [
 +
"11"
 +
]
 +
}
 +
}
 
}
 
}
 
</templatedata>
 
</templatedata>
 
</noinclude>
 
</noinclude>

Revision as of 02:20, 1 September 2020


Details about books published.

Template parameters

ParameterDescriptionTypeStatus
Cover Image UrlcoverImageUrl 1

The url of cover image of the book.

Stringoptional
Author/Creatorauthor 2

Name of the Author or the Creator.

Stringrequired
Book TitlebookTitle 3

Name or Title of the book.

Stringrequired
Subtitlesubtitle 4

Optional subtitle of the book or central theme of the book.

Stringoptional
Download atdownloadUrl 5

The url to download the book, if any.

Stringoptional
Editionedition 6

Edition or Revision number

Stringoptional
ISBNisbn 7

ISBN - number of the book

Stringrequired
Languagelanguage 8

Language of the book.

Stringrequired
Page CountpageCount 9

Number of pages in the book.

Numberrequired
Published BypublishedBy 10

Name of the publisher.

Stringrequired
Published YearpublishedYear 11

When was the book published?

Stringrequired