Template:Library infobox work: Difference between revisions

Template page
m (Working as intended, added a small notice on how parameter display_title should be used)
m (Testing automatic linking to pages without [[ ]])
Line 3: Line 3:


| abovestyle = padding-top:0; padding-bottom:0;
| abovestyle = padding-top:0; padding-bottom:0;
| above = <div style="padding-top:0.3em; padding-bottom:0.3em; line-height: 1;"><div style="display:inline;" class="fn org">{{if empty|{{{title|}}}|{{PAGENAMEBASE}}}}</div></div>
| above = <div style="padding-top:0.3em; padding-bottom:0.3em; line-height: 1;"><div style="display:inline;" class="fn org">{{if empty|{{{title|}}}|{{BASEPAGENAME}}}}</div></div>


| subheaderstyle = font-size:100%;
| subheaderstyle = font-size:100%;
Line 18: Line 18:


| label1  = Written by
| label1  = Written by
|  data1  = {{{written by|}}}
|  data1  = {{#ifexist:{{{written by|}}}|[[{{{written by}}}]]|{{{written by}}}}}


| label2  = Written in
| label2  = Written in
Line 88: Line 88:
"label": "Written in",
"label": "Written in",
"description": "Date or period the work was written",
"description": "Date or period the work was written",
"type": "date"
"type": "date",
"suggested": true
},
},
"published": {
"published": {

Revision as of 01:58, 26 July 2022

Library infobox work
Written by{{{written by}}}

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 = 
| display_title =
}}

Add "yes" to parameter "display_title" to produce a page title in the format: Title of work, by Author

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

Datesuggested
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
Write "yes" to activate the title styling
Auto value
Stringsuggested
_subheader_subheader

no description

Unknownoptional
image_uprightimage_upright

no description

Unknownoptional
image_altimage_alt

no description

Unknownoptional
image_sizeimage_size

no description

Unknownoptional