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

Template:Infobox work: Difference between revisions

Template page
m (Created infobox)
m (Added library link option)
 
(2 intermediate revisions by the same user not shown)
Line 34: Line 34:
| label6  = Original title
| label6  = Original title
|  data6  = {{{original_title|}}}
|  data6  = {{{original_title|}}}
| header7 =
|  data7 = {{#if:{{{library_link|}}}|[[{{{library_link}}}|'''Available in library''' 📕]]}}
}}
}}
<noinclude>
<noinclude>
Line 39: Line 43:
  <nowiki>
  <nowiki>
{{Library infobox work
{{Library infobox work
| title =
| image =
| image =
| image_size =
| image_size =
| image_upright =
| image_upright =
| image_alt =
| image_alt =
| type =
| caption =
| caption =
| title =
| written by =
| written by =
| written in =
| written in =
Line 50: Line 55:
| original_language =
| original_language =
| original_title =
| original_title =
| type =
| library_link =
}}
}}
</nowiki>
</nowiki>
Line 113: Line 118:
"description": "Title in original language",
"description": "Title in original language",
"type": "string",
"type": "string",
"suggested": true
},
"library_link": {
"label": "Library link",
"description": "If the work is available in library, link its page",
"example": "Library:Capital, vol. I",
"type": "wiki-page-name",
"suggested": true
"suggested": true
}
}
Line 118: Line 130:
"description": "Adds a small infobox with information for Library works",
"description": "Adds a small infobox with information for Library works",
"paramOrder": [
"paramOrder": [
"title",
"type",
"type",
"title",
"image",
"image",
"caption",
"caption",
Line 127: Line 139:
"original_language",
"original_language",
"original_title",
"original_title",
"library_link",
"_subheader",
"_subheader",
"image_upright",
"image_upright",

Latest revision as of 00:50, 16 June 2022

Infobox work

How to use this template:

{{Library infobox work
| title = 
| image =
| image_size =
| image_upright =
| image_alt =
| type =
| caption =
| written by =
| written in =
| published = 
| original_language =
| original_title =
| library_link =
}}

Adds a small infobox with information for Library works

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Titletitle

Title of the work

Stringsuggested
Typetype

Type of work

Example
Book, pamphlet, leaflet, speech, video
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
Original languageoriginal_language

If not an English work, the language it was originally written

Example
Russian
Stringsuggested
Original titleoriginal_title

Title in original language

Stringsuggested
Library linklibrary_link

If the work is available in library, link its page

Example
Library:Capital, vol. I
Page namesuggested
_subheader_subheader

no description

Unknownoptional
image_uprightimage_upright

no description

Unknownoptional
image_altimage_alt

no description

Unknownoptional
image_sizeimage_size

no description

Unknownoptional
subtitlesubtitle

no description

Unknownoptional