Difference between revisions of "Template:Book table"
Jump to navigation
Jump to search
imported>Alex 21 |
imported>Alex 21 |
||
| Line 1: | Line 1: | ||
<includeonly>{{Episode table | <includeonly>{{Episode table | ||
| − | | background | + | | background = {{{background|CCCCFF}}} |
| − | | EpisodeNumber{{# | + | | EpisodeNumber{{#ifeq:{{{book_number|+}}}|{{{book_number|-}}}||NULL}} = auto | EpisodeNumberT = {{{book_number| {{abbr|No.|Number}} }}} |
| − | | Title{{# | + | | Title{{#ifeq:{{{title|+}}}|{{{title|-}}}||NULL}} = auto | TitleT = {{{title|Title}}} |
| − | | Aux1{{# | + | | Aux1{{#ifeq:{{{author|+}}}|{{{author|-}}}||NULL}} = auto | Aux1T = {{{author|Author}}} |
| − | | DirectedBy{{# | + | | DirectedBy{{#ifeq:{{{publisher|+}}}|{{{publisher|-}}}||NULL}} = auto | DirectedByT = {{{publisher|Publisher}}} |
| − | | WrittenBy{{# | + | | WrittenBy{{#ifeq:{{{publish_date|+}}}|{{{publish_date|-}}}||NULL}} = auto | WrittenByT = {{{publish_date|Date}}} |
| − | | Aux2{{# | + | | Aux2{{#ifeq:{{{subject|+}}}|{{{subject|-}}}||NULL}} = auto | Aux2T = {{{subject|Subject}}} |
| − | | Aux3{{# | + | | Aux3{{#ifeq:{{{genre|+}}}|{{{genre|-}}}||NULL}} = auto | Aux3T = {{{genre|Genre}}} |
| − | | AltDate{{# | + | | AltDate{{#ifeq:{{{aux1|+}}}|{{{aux1|-}}}||NULL}} = auto | AltDateT = {{{aux1}}} |
| − | | ProdCode{{# | + | | ProdCode{{#ifeq:{{{aux2|+}}}|{{{aux2|-}}}||NULL}} = auto | ProdCodeT = {{{aux2}}} |
| − | | Viewers{{# | + | | Viewers{{#ifeq:{{{aux3|+}}}|{{{aux3|-}}}||NULL}} = auto | ViewersT = {{{aux3}}} |
| − | | Aux4{{# | + | | Aux4{{#ifeq:{{{isbn|+}}}|{{{isbn|-}}}||NULL}} = auto | Aux4T = {{{isbn|ISBN}}} |
| − | | episodes{{# | + | | episodes{{#ifeq:{{{books|+}}}|{{{books|-}}}||NULL}} = {{{books|}}} |
}}</includeonly><noinclude> | }}</includeonly><noinclude> | ||
{{documentation|Template:Book list/doc}} | {{documentation|Template:Book list/doc}} | ||
</noinclude> | </noinclude> | ||
Revision as of 00:32, 23 October 2020
| This template uses Lua: |
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.
}}
}}
| Length | ||||||||
|---|---|---|---|---|---|---|---|---|
| 1 | Anne of Green Gables | Lucy Maud Montgomery | L. C. Page & Co. | April 1908 | Children's novel | 429 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
- {{Book table}}
- {{Book list}}
| The above documentation is transcluded from Template:Book list/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Subpages of this template. |