Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Book infobox: Difference between revisions

Template page
Remove image param: images are protected under copyright and cannot be distributed
No edit summary
 
(10 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
{{Infobox
<noinclude>
| title    = {{{name|{{PAGENAME}}}}}
| image    = {{#if:{{{image|}}}|[[File:{{{image}}}|{{{image_size|250px}}}|alt={{{alt|{{{caption|}}}}}}]]}}
| caption  = {{{caption|}}}
| label1    = Cover artist
| data1    = {{{cover_artist|}}}
| label2    = Published
| data2    = {{{published|}}}
| label3    = Page count
| data3    = {{{pages|}}}
| label4    = ISBN
| data4    = {{{isbn|}}}
| label5    = Preceded by
| data5    = {{{preceded_by|}}}
| label6    = Followed by
| data6    = {{{followed_by|}}}
}}<noinclude>
<templatedata>
<templatedata>
{
{
Line 13: Line 28:
"published": {
"published": {
"label": "Published",
"label": "Published",
"description": "The date of publication if published.",
"description": "The date of publication, if published.",
"type": "date",
"type": "date",
"suggested": true
"suggested": true
},
"image": {
"label": "Image",
"description": "An image of the book's front cover.",
"type": "wiki-file-name",
"suggested": true,
"example": "The Dragonet Prophecy Cover.png"
},
"caption": {
"label": "Image caption",
"description": "The caption for the image",
"type": "content"
},
"alt": {
"label": "Image alt text",
"description": "The alternate text for the image if the image cannot load and for screen readers.",
"type": "content",
"suggested": true
},
"image_size": {
"label": "Image size",
"description": "Size of the image.",
"example": "250px",
"type": "string",
"default": "250px"
},
"cover_artist": {
"label": "Cover artist",
"description": "Artist who drew cover art for this book.",
"example": "Joy Ang",
"type": "string",
"suggestedvalues": [
"Joy Ang"
]
},
"pages": {
"label": "Page count",
"description": "The number of pages in this book.",
"example": "297",
"type": "number"
},
"isbn": {
"label": "ISBN",
"description": "ISBN identifier for this book.",
"example": "978-0-545-34923-9",
"type": "string",
"suggested": true
},
"preceded_by": {
"label": "Preceded by",
"description": "The book that precedes this book, if any.",
"example": "The Dragonet Prophecy",
"type": "string"
},
"followed_by": {
"label": "Followed by",
"description": "The book that precedes this book, if any.",
"example": "The Dragonet Prophecy",
"type": "string"
}
}
},
},
Line 21: Line 95:
"paramOrder": [
"paramOrder": [
"name",
"name",
"published"
"image",
]
"alt",
"caption",
"image_size",
"published",
"pages",
"cover_artist",
"isbn",
"preceded_by",
"followed_by"
],
"format": "block"
}
}
</templatedata>
</templatedata>
</noinclude>
</noinclude>
{{Infobox
| title    = {{{name|{{PAGENAME}}}}}
| label1  = Published
|  data1  = {{{published|}}}
}}

Latest revision as of 16:45, 17 December 2024

Book infobox

An infobox that describes a book

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Namename

The name of the book without "Wings of Fire"

Example
The Dragonet Prophecy
Stringrequired
Imageimage

An image of the book's front cover.

Example
The Dragonet Prophecy Cover.png
Filesuggested
Image alt textalt

The alternate text for the image if the image cannot load and for screen readers.

Contentsuggested
Image captioncaption

The caption for the image

Contentoptional
Image sizeimage_size

Size of the image.

Default
250px
Example
250px
Stringoptional
Publishedpublished

The date of publication, if published.

Datesuggested
Page countpages

The number of pages in this book.

Example
297
Numberoptional
Cover artistcover_artist

Artist who drew cover art for this book.

Suggested values
Joy Ang
Example
Joy Ang
Stringoptional
ISBNisbn

ISBN identifier for this book.

Example
978-0-545-34923-9
Stringsuggested
Preceded bypreceded_by

The book that precedes this book, if any.

Example
The Dragonet Prophecy
Stringoptional
Followed byfollowed_by

The book that precedes this book, if any.

Example
The Dragonet Prophecy
Stringoptional
Cookies help us deliver our services. By using our services, you agree to our use of cookies.