Difference between revisions of "Template:Book list"

From blackwiki
Jump to navigation Jump to search
imported>Lectonar
m (Changed protection level for "Template:Book list": request at RfPP ([Edit=Require autoconfirmed or confirmed access] (indefinite) [Move=Require autoconfirmed or confirmed access] (indefinite)))
 
(25 intermediate revisions by 12 users not shown)
Line 1: Line 1:
<tr style="text-align: center; background:#F2F2F2; border-top:3px solid {{#switch: {{lc:{{{line_color|Љ}}}}} | novel=#93B8C4 | shortstory=#AFDCEC | poetry=#FFF380 | play=#CCFB5D | screenplay=#A0C544 | nonfiction=#636363 | comic=#CC6666 | unpublished=#DBDBDB | Љ=#CCCCFF | {{{line_color}}} }}">
+
<includeonly>{{Episode list
<td style="text-align: left;">{{#if:{{{title|}}}|'''{{{title}}}'''}}{{#if:{{{alt_title|}}}|<br />{{{alt_title}}}}}</td>{{
+
| EpisodeNumber{{#if:{{{book_number|}}}||NULL}} = {{{book_number|}}}
#ifeq:{{{author|Љ}}}|Љ| |<td>{{{publisher}}}</td>}}{{
+
| RTitle{{#if:{{{title|}}}||NULL}}              = ''{{replace|{{{title}}}|''|}}''
#ifeq:{{{publisher|Љ}}}|Љ| |<td>{{{publisher}}}</td>}}{{
+
| RAltTitle{{#if:{{{alt_title|}}}||NULL}}        = ''{{replace|{{{alt_title}}}|''|}}''
#ifeq:{{{publish_date|Љ}}}|Љ| |<td>{{{publish_date}}}}}{{#if:{{{alt_publish_date|}}}|<br />{{{alt_publish_date}}}}}</td>{{
+
| Aux1{{#if:{{{author|}}}||NULL}}                = {{{author|}}}
#ifeq:{{{subject|Љ}}}|Љ| |<td>{{{publisher}}}</td>}}{{
+
| DirectedBy{{#if:{{{publisher|}}}||NULL}}      = {{{publisher|}}}
#ifeq:{{{genre|Љ}}}|Љ| |<td>{{{publisher}}}</td>}}{{
+
| WrittenBy{{#if:{{{publish_date|}}}||NULL}}    = {{{publish_date|}}} {{#if:{{{alt_publish_date|}}}|<br />{{{alt_publish_date|}}}}}
#ifeq:{{{aux1|Љ}}}|Љ| |<td>{{{aux1}}}</td>}}{{
+
| Aux2{{#if:{{{subject|}}}||NULL}}              = {{{subject|}}}
#ifeq:{{{aux2|Љ}}}|Љ| |<td>{{{aux2}}}</td>}}{{
+
| Aux3{{#if:{{{genre|}}}||NULL}}                = {{{genre|}}}
#ifeq:{{{aux3|Љ}}}|Љ| |<td>{{{aux3}}}</td>}}{{
+
| AltDate{{#if:{{{aux1|}}}||NULL}}              = {{{aux1|}}}
#ifeq:{{{isbn|Љ}}}|Љ| |<td>{{{isbn}}}</td>}}{{
+
| ProdCode{{#if:{{{aux2|}}}||NULL}}              = {{{aux2|}}}
#ifeq:{{{short_summary|Љ}}}|Љ| |<tr><td colspan="{{#expr:1+{{#ifeq:{{{author|Љ}}}|Љ|0|1}}+{{#ifeq:{{{publisher|Љ}}}|Љ|0|1}}+{{#ifeq:{{{publish_date|Љ}}}|Љ|0|1}}+{{#ifeq:{{{subject|Љ}}}|Љ|0|1}}+{{#ifeq:{{{genre|Љ}}}|Љ|0|1}}+{{#ifeq:{{{aux1|Љ}}}|Љ|0|1}}+{{#ifeq:{{{aux2|Љ}}}|Љ|0|1}}+{{#ifeq:{{{aux3|Љ}}}|Љ|0|1}}+{{#ifeq:{{{isbn|Љ}}}|Љ|0|1}}}}">{{{short_summary|}}}&nbsp;</td></tr>
+
| Viewers{{#if:{{{aux3|}}}||NULL}}              = {{{aux3|}}}
}}
+
| Aux4{{#if:{{{isbn|}}}||NULL}}                  = {{ISBN|{{{isbn}}}}} {{#if:{{{isbn_note|}}}|<br />{{{isbn_note|}}}}}
<noinclude>
+
| ShortSummary{{#if:{{{short_summary|}}}||NULL}} = {{#ifeq: {{{1|}}} | {{PAGENAME}} | | {{{short_summary|}}} }}
{{template doc}}
+
| RowColor                                      = {{{background|F2F2F2}}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
+
| LineColor                                      = {{#switch: {{lc:{{{line_color|}}}}}
 +
  | novel = #93B8C4
 +
  | shortstory = #AFDCEC
 +
  | poetry = #FFF380
 +
  | play = #CCFB5D
 +
  | screenplay = #A0C544
 +
  | nonfiction = #545454
 +
  | comic = #E67373
 +
  | unpublished = #DBDBDB
 +
  | {{{line_color|#CCCCFF}}}
 +
}}
 +
}}</includeonly><noinclude>
 +
{{documentation}}
 
</noinclude>
 
</noinclude>

Latest revision as of 07:40, 31 August 2020

Template documentation[view] [edit] [history] [purge]

Usage

Parameters Description
Book list Book table
1 Unnamed parameter. Main page for sublists that are transcluded elsewhere.
Transclusion to declared page will hide summaries.
background HEX code for row background HEX code for table header background
book_number Book number (e.g. series numbering sequence) "No."
title Book title "Title"
alt_title Alternate title (e.g. original foreign language title)
author Author(s) "Author"
publisher Publisher of main publication "Publisher"
publish_date Date first published "Date"
alt_publish_date Alternate date published (e.g. translation release)
subject Subject(s) for non-fiction "Subject"
genre Genre(s) for fiction "Genre"
aux[1-3] Optional parameters, meaning is specified by the table header
(e.g. language, translator, country, series, illustrator, pages, oclc)
Text describing optional cells
isbn ISBN "ISBN"
isbn_note Any notes about the given ISBN (e.g. hardcover)
short_summary If possible, keep summaries under three or four sentences
line_color The separator line between entries, predefined values exist for:
novel, shortstory, poetry, play, screenplay, nonfiction, unpublished
books Usages of {{Book list}}

Example

{{Book table |background=#A2BBAC |book_number= |title= |author= |publisher= |publish_date= |genre= |aux1=Length |isbn= |books=
{{Book list
 | book_number    = 1
 | title          = [[Anne of Green Gables]]
 | author         = [[Lucy Maud Montgomery]]
 | publisher      = [[L. C. Page & Co.]]
 | publish_date   = April 1908
 | genre          = [[Children's literature|Children's novel]]
 | aux1           = 429 pp ''(first edition)''
 | isbn           = 9780393926958
 | line_color     = novel
 | short_summary  = Miss Marilla Cuthbert and Mr. Matthew Cuthbert, middle-aged siblings who live together at Green Gables, a farm in Avonlea, on Prince Edward Island, decide to adopt an orphan boy from the asylum as a helper on their farm. Through a series of mishaps, what ends up under their roof is a precocious girl of eleven named Anne Shirley.
}}
}}
No.TitleAuthorPublisherDateGenreLengthISBN
1Anne of Green GablesLucy Maud MontgomeryL. C. Page & Co.April 1908Children's novel429 pp (first edition)ISBN 9780393926958
Miss Marilla Cuthbert and Mr. Matthew Cuthbert, middle-aged siblings who live together at Green Gables, a farm in Avonlea, on Prince Edward Island, decide to adopt an orphan boy from the asylum as a helper on their farm. Through a series of mishaps, what ends up under their roof is a precocious girl of eleven named Anne Shirley.

See also