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

Template:Library infobox work: Difference between revisions

Template page
m (Testing template options)
m (Testing display title functionality)
Line 34: Line 34:
| label6 = Audiobook
| label6 = Audiobook
|  data6 = {{{audiobook|}}}
|  data6 = {{{audiobook|}}}
}}
}}{{#ifeq:{{{display_title|}}}|yes|{{DISPLAYTITLE:{{#if:{{{title|}}}|''{{{title}}}''|''{{PAGENAME}}''}}{{#if:{{{written by|}}}|, by {{{written by|}}}}}
<noinclude>
<noinclude>
How to use this template:
How to use this template:
Line 113: Line 113:
"suggested": true
"suggested": true
},
},
"Fancy title": {
"display_title": {
"type": "boolean"
"label": "Full display title",
"description": "Adds title in style \"Work (in italics), by Author\"",
"example": "\"yes\" or \"no\"",
"type": "string",
"autovalue": "no",
"suggested": true
}
}
},
},
Line 128: Line 133:
"source",
"source",
"audiobook",
"audiobook",
"display_title",
"_subheader",
"_subheader",
"image_upright",
"image_upright",
"image_alt",
"image_alt",
"image_size",
"image_size"
"Fancy title"
]
]
}
}
</templatedata></noinclude>
</templatedata></noinclude>

Revision as of 23:47, 25 July 2022

Library infobox work

{{#ifeq:|yes|{{DISPLAYTITLE:Library infobox work

How to use this template:

{{Library infobox work
| image =
| image_size =
| image_upright =
| image_alt =
| caption =
| title = 
| written by =
| written in =
| published = 
| type =
| source = 
| audiobook = 
}}

Adds a small infobox with information for Library works

Template parameters

ParameterDescriptionTypeStatus
Titletitle

Title of the work

Stringsuggested
Imageimage

Book cover

Filesuggested
Captioncaption

Caption of the image, usually for information about the edition of the cover

Stringoptional
Written bywritten by

Author of the source work

Stringsuggested
Written inwritten in

Date or period the work was written

Dateoptional
First publishedpublished

Date the book was first published

Datesuggested
Typetype

Type of work

Example
Book, pamphlet, leaflet, speech, video
Stringsuggested
Sourcesource

URL of the work

URLsuggested
Audiobookaudiobook

URL of an audiobook reading of the work

URLsuggested
Full display titledisplay_title

Adds title in style "Work (in italics), by Author"

Example
"yes" or "no"
Auto value
no
Stringsuggested
_subheader_subheader

no description

Unknownoptional
image_uprightimage_upright

no description

Unknownoptional
image_altimage_alt

no description

Unknownoptional
image_sizeimage_size

no description

Unknownoptional