Difference between revisions of "Template:Book list/doc"

From blackwiki
Jump to navigation Jump to search
(lua)
imported>Alex 21
 
(10 intermediate revisions by 2 users not shown)
Line 4: Line 4:
  
 
==Usage==
 
==Usage==
{| class="wikitable" style="width:100%;"
+
{| class="wikitable" style="width:90%;"
 
|-
 
|-
! Parameters !! Description
+
! rowspan="2" style="width:20%" | Parameters
 +
! colspan="2" | Description
 
|-
 
|-
| book_number || book number (e.g., series numbering sequence)
+
! style="width:50%" | Book list
 +
! style="width:30%" | Book table
 
|-
 
|-
| title || book title
+
| 1 || Unnamed parameter. Main page for sublists that are transcluded elsewhere. <br /> Transclusion to declared page will hide summaries. || –
 
|-
 
|-
| alt_title || alternate title (e.g., original foreign language title)
+
| background || HEX code for row background || HEX code for table header background
 
|-
 
|-
| author || author (or authors)
+
| book_number || Book number (e.g. series numbering sequence) || "{{abbr|No.|Number}}"
 
|-
 
|-
| publisher || publisher of main publication (prefer 1st edition)
+
| title || Book title || "Title"
 
|-
 
|-
| publish_date || date published (1st edition)
+
| alt_title || Alternate title (e.g. original foreign language title) || –
 
|-
 
|-
| alt_publish_date || alternate date published (e.g., translation release)
+
| author || Author(s) || "Author"
 
|-
 
|-
| subject || subject(s) for non-fiction
+
| publisher || Publisher of main publication || "Publisher"
 
|-
 
|-
| genre || genre(s) for fiction
+
| publish_date || Date first published || "Date"
 
|-
 
|-
| aux[1-3] || optional parameters, meaning is specified by the table header (e.g., language, translator, country, series, illustrator, pages, oclc)
+
| alt_publish_date || Alternate date published (e.g. translation release) || –
 
|-
 
|-
| isbn || isbn (prefer 1st edition)
+
| subject || Subject(s) for non-fiction || "Subject"
 
|-
 
|-
| isbn_note || any notes about the given isbn (e.g., hardcover)
+
| genre || Genre(s) for fiction || "Genre"
 
|-
 
|-
| short_summary || if possible, keep summaries under three or four sentences
+
| aux[1-3] || Optional parameters, meaning is specified by the table header <br /> (e.g. language, translator, country, series, illustrator, pages, oclc) || Text describing optional cells
 
|-
 
|-
| line_color || the separator line between entries, predefined values exist for:
+
| isbn || ISBN || "ISBN"
novel, shortstory, poetry, play, screenplay, nonfiction, unpublished
 
 
|-
 
|-
 +
| 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: <br /> novel, shortstory, poetry, play, screenplay, nonfiction, unpublished || –
 +
|-
 +
| books || – || Usages of {{tl|Book list}}
 
|}
 
|}
  
 
==Example==
 
==Example==
<pre>
+
<pre>{{Book table |background=#A2BBAC |book_number= |title= |author= |publisher= |publish_date= |genre= |aux1=Length |isbn= |books=
{| class="wikitable" style="width:100%; margin:auto;"
 
|-
 
! scope="col" | {{abbr|No.|Number}}
 
! scope="col" | Title
 
! scope="col" | Author
 
! scope="col" | Publisher
 
! scope="col" | Date
 
! scope="col" | Genre
 
! scope="col" | Length
 
 
{{Book list
 
{{Book list
 
  | book_number    = 1
 
  | book_number    = 1
Line 58: Line 57:
 
  | genre          = [[Children's literature|Children's novel]]
 
  | genre          = [[Children's literature|Children's novel]]
 
  | aux1          = 429 pp ''(first edition)''
 
  | aux1          = 429 pp ''(first edition)''
 +
| isbn          = 9780393926958
 
  | line_color    = novel
 
  | 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.
 
  | 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.
 
}}
 
}}
|}
+
}}</pre>
</pre>
 
  
{| class="wikitable" style="width:100%; margin:auto;"
+
{{Book table |background=#A2BBAC |book_number= |title= |author= |publisher= |publish_date= |genre= |aux1=Length |isbn= |books=
|-
 
! scope="col" | {{abbr|No.|Number}}
 
! scope="col" | Title
 
! scope="col" | Author
 
! scope="col" | Publisher
 
! scope="col" | Date
 
! scope="col" | Genre
 
! scope="col" | Length
 
 
{{Book list
 
{{Book list
 
  | book_number    = 1
 
  | book_number    = 1
Line 81: Line 72:
 
  | genre          = [[Children's literature|Children's novel]]
 
  | genre          = [[Children's literature|Children's novel]]
 
  | aux1          = 429 pp ''(first edition)''
 
  | aux1          = 429 pp ''(first edition)''
 +
| isbn          = 9780393926958
 
  | line_color    = novel
 
  | 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.
 
  | 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.
 
}}
 
}}
|}
+
}}
  
 
==See also==
 
==See also==
* {{tl|Book list/sublist}}
+
* {{tl|Book table}}
 +
* {{tl|Book list}}
  
<includeonly>
+
<includeonly>{{sandbox other||
 
<!-- ADD CATEGORIES BELOW THIS LINE -->
 
<!-- ADD CATEGORIES BELOW THIS LINE -->
[[Category:Book templates|{{PAGENAME}}]]
+
[[Category:Book templates]]
<!-- ADD INTERWIKIS BELOW THIS LINE -->
+
}}</includeonly>
</includeonly>
 

Latest revision as of 00:32, 23 October 2020

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