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
No edit summary
No edit summary
Line 26: Line 26:
|  data4  = {{{published_date|}}}{{#if:{{{published_location|}}}|<br/>{{{published_location}}}}}
|  data4  = {{{published_date|}}}{{#if:{{{published_location|}}}|<br/>{{{published_location}}}}}


| label5  = Type
| label5  = Publisher
| data5 = {{{type|}}}
| data5   = {{publisher}}


| label6  = ISBN
| label6  = Edition
| data6 = {{{isbn|}}}
| data6   = {{edition_date}}


| label7  = Source
| label7  = Type
|  data7  = {{{source|}}}
|  data7  = {{{type|}}}


| label8 = Audiobook
| label8 = ISBN
data8 = {{{audiobook|}}}
|  data8  = {{{isbn|}}}
 
| label9  = Source
|  data0  = {{{source|}}}
 
| label10 = Audiobook
data10 = {{{audiobook|}}}
}}{{#ifeq:{{{display_title|}}}|yes|{{DISPLAYTITLE:{{#if:{{{title|}}}|''{{{title}}}''|''{{PAGENAME}}''}}{{#if:{{{written by|}}}|, by {{{written by|}}}}}}}}}<noinclude>
}}{{#ifeq:{{{display_title|}}}|yes|{{DISPLAYTITLE:{{#if:{{{title|}}}|''{{{title}}}''|''{{PAGENAME}}''}}{{#if:{{{written by|}}}|, by {{{written by|}}}}}}}}}<noinclude>
How to use this template:
How to use this template:
Line 51: Line 57:
| written in =
| written in =
| published_date =  
| published_date =  
| published_location =  
| published_location =
| publisher =
| edition_date =
| type =
| type =
| source =  
| source =  
Line 139: Line 147:
"type": "string",
"type": "string",
"suggested": true
"suggested": true
}
},
        "publisher": {
            "label": "Publishing house",
            "description": "Who published this edition",
            "type": "string",
            "suggested": true
        },
        "edition_date": {
            "label": "Edition",
            "description": "When was this edition printed",
            "type":"string",
            "suggested": true
        }
},
},
"description": "Adds a small infobox with information for Library works",
"description": "Adds a small infobox with information for Library works",
Line 148: Line 168:
"author",
"author",
"written in",
"written in",
        "publisher",
"published_date",
"published_date",
"published_location",
"published_location",
        "edition_date",
"type",
"type",
"isbn",
"isbn",

Revision as of 18:51, 10 July 2023

Library infobox work
PublisherTemplate:Publisher
EditionTemplate:Edition date

How to use this template:

{{Library infobox work
| title = 
| subtitle = 
| image =
| image_size =
| image_upright =
| image_alt =
| caption =
| author =
| written in =
| published_date = 
| published_location =
| publisher =
| edition_date =
| 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
Authorauthor

Author of the source work

Stringsuggested
Written inwritten in

Date or period the work was written

Datesuggested
Publishing housepublisher

Who published this edition

Stringsuggested
First publishedpublished_date

Date the book was first published

Datesuggested
Location publishedpublished_location

Location the work was published

Stringsuggested
Editionedition_date

When was this edition printed

Stringsuggested
Typetype

Type of work

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

ISBN number of the work

Numbersuggested
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