Difference between revisions of "Template:Book list"

From blackwiki
Jump to navigation Jump to search
imported>Matthiaspaul
(deliberately routing through (identifier) redirect for consistency with CS1 citation templates and to improve reverse lookup functionality)
imported>Alex 21
(Update from sandbox to use standardized template)
Line 1: Line 1:
<noinclude><table>
+
<includeonly>{{Episode list
</noinclude><tr style="text-align: center; background:#{{{background|F2F2F2}}};">
+
| EpisodeNumber{{#if:{{{book_number|}}}||NULL}}  = {{{book_number|}}}
{{#if:{{{book_number|}}}|<td>{{{book_number}}}</td>}}<td style="text-align: left;">{{#if:{{{title<includeonly>|</includeonly>}}}|''{{replace|{{{title}}}|''|}}''}}{{#if:{{{alt_title<includeonly>|</includeonly>}}}|{{#if:{{{title<includeonly>|</includeonly>}}}|<br />}}{{{alt_title}}}}}</td>{{
+
| RTitle{{#if:{{{title|}}}||NULL}}              = ''{{replace|{{{title}}}|''|}}''
#if:{{{author<includeonly>|</includeonly>}}}|<td>{{{author}}}</td>}}{{
+
| RAltTitle{{#if:{{{alt_title|}}}||NULL}}       = ''{{replace|{{{alt_title}}}|''|}}''
#if:{{{publisher<includeonly>|</includeonly>}}}|<td>{{{publisher}}}</td>}}{{
+
| Aux1{{#if:{{{author|}}}||NULL}}                = {{{author|}}}
#if:{{{publish_date<includeonly>|</includeonly>}}}|<td>{{{publish_date}}}}}{{#if:{{{alt_publish_date|}}}|<br />{{{alt_publish_date}}}}}</td>{{
+
| DirectedBy{{#if:{{{publisher|}}}||NULL}}      = {{{publisher|}}}
#if:{{{subject<includeonly>|</includeonly>}}}|<td>{{{subject}}}</td>}}{{
+
| WrittenBy{{#if:{{{publish_date|}}}||NULL}}    = {{{publish_date|}}} {{#if:{{{alt_publish_date|}}}|<br />{{{alt_publish_date|}}}}}
#if:{{{genre<includeonly>|</includeonly>}}}|<td>{{{genre}}}</td>}}{{
+
| Aux2{{#if:{{{subject|}}}||NULL}}              = {{{subject|}}}
#if:{{{aux1<includeonly>|</includeonly>}}}|<td>{{{aux1}}}</td>}}{{
+
| Aux3{{#if:{{{genre|}}}||NULL}}                = {{{genre|}}}
#if:{{{aux2<includeonly>|</includeonly>}}}|<td>{{{aux2}}}</td>}}{{
+
| AltDate{{#if:{{{aux1|}}}||NULL}}              = {{{aux1|}}}
#if:{{{aux3<includeonly>|</includeonly>}}}|<td>{{{aux3}}}</td>}}{{
+
| ProdCode{{#if:{{{aux2|}}}||NULL}}              = {{{aux2|}}}
#if:{{{isbn<includeonly>|</includeonly>}}}|<td><includeonly>{{ISBN|{{{isbn}}}}}</includeonly><noinclude>[[ISBN (identifier)|ISBN]] {{{isbn}}}</noinclude> {{{isbn_note<includeonly>|</includeonly>}}}</td>}}{{
+
| Viewers{{#if:{{{aux3|}}}||NULL}}              = {{{aux3|}}}
#if:{{{short_summary<includeonly>|</includeonly>}}}
+
| Aux4{{#if:{{{isbn|}}}||NULL}}                  = {{ISBN|{{{isbn}}}}} {{#if:{{{isbn_note|}}}|<br />{{{isbn_note|}}}}}
|<tr><td colspan="11" style="border-bottom:3px solid {{#switch: {{lc:{{{line_color|}}}}}
+
| ShortSummary{{#if:{{{short_summary|}}}||NULL}} = {{{short_summary|}}}
   | novel=#93B8C4
+
| RowColor                                      = {{{background|F2F2F2}}}
   | shortstory=#AFDCEC
+
| LineColor                                      = {{#switch: {{lc:{{{line_color|}}}}}
   | poetry=#FFF380
+
   | novel = #93B8C4
   | play=#CCFB5D
+
   | shortstory = #AFDCEC
   | screenplay=#A0C544
+
   | poetry = #FFF380
   | nonfiction=#636363
+
   | play = #CCFB5D
   | comic=#CC6666
+
   | screenplay = #A0C544
   | unpublished=#DBDBDB
+
   | nonfiction = #636363
 +
   | comic = #CC6666
 +
   | unpublished = #DBDBDB
 
   | {{{line_color|#CCCCFF}}}
 
   | {{{line_color|#CCCCFF}}}
  }}">{{{short_summary}}}&nbsp;</td></tr>
+
  }}
}}<noinclude>
+
}}</includeonly><noinclude>
</table>
 
 
{{documentation}}
 
{{documentation}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 
 
</noinclude>
 
</noinclude>

Revision as of 07:50, 14 August 2020

50px 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