Template:Library infobox work: Difference between revisions

Template page
m (Added template data)
m (Removed broken native tile name parameters)
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; {{#if:{{{colorcode|}}}|border-top:2px solid {{{colorcode}}}; border-bottom:2px solid {{{colorcode}}};}} line-height: 1;">{{Br separated entries
| 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>
| 1 = <div style="display:inline;" class="fn org">{{if empty|{{{title|}}}|{{PAGENAMEBASE}}}}</div>
| 2 = {{#if:{{{native_name|}}} |<div style="display:inline;" class="nickname" {{#if:{{{native_name_lang|}}}|lang="{{{native_name_lang}}}"}} style="font-size: 0.8em;">{{{native_name}}}</div>}}
}}</div>


| subheader = {{{_subheader|}}}
| subheader = {{{_subheader|}}}
Line 61: Line 58:
"label": "Title",
"label": "Title",
"description": "Title of the work",
"description": "Title of the work",
"type": "string",
"suggested": true
},
"native_name": {
"label": "Native title",
"description": "Title in native language",
"type": "string",
"suggested": true
},
"native_name_lang": {
"label": "Native name language",
"type": "string",
"type": "string",
"suggested": true
"suggested": true
Line 130: Line 116:
"paramOrder": [
"paramOrder": [
"title",
"title",
"native_name",
"native_name_lang",
"image",
"image",
"caption",
"caption",

Revision as of 19:38, 7 January 2022

Library infobox work

How to use this template:

{{Library 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
_subheader_subheader

no description

Unknownoptional
image_uprightimage_upright

no description

Unknownoptional
image_altimage_alt

no description

Unknownoptional
image_sizeimage_size

no description

Unknownoptional