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
No edit summary
Format image in template for easier use
Line 1: Line 1:
{{Infobox
{{Infobox
| title    = {{{name|{{PAGENAME}}}}}
| title    = {{{name|{{PAGENAME}}}}}
| image    = {{{image|}}}
| image    = {{#if: {{{image|}}} | [[{{{image}}}|250px|alt={{{image}}}]] }}
| caption  = {{{caption|}}}
| caption  = {{{caption|}}}
| label1    = Published
| label1    = Published
Line 33: Line 33:
"description": "The caption for the image",
"description": "The caption for the image",
"type": "content"
"type": "content"
},
"alt": {
"label": "Image Alt Text",
"description": "The alternate text for the image if the image cannot load and for screen readers.",
"type": "string",
"suggested": true
}
}
},
},
Line 39: Line 45:
"name",
"name",
"image",
"image",
"alt",
"published",
"published",
"caption"
"caption"

Revision as of 20:48, 16 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.

Filesuggested
Image Alt Textalt

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

Stringsuggested
Publishedpublished

The date of publication if published.

Datesuggested
Image captioncaption

The caption for the image

Contentoptional
Cookies help us deliver our services. By using our services, you agree to our use of cookies.