Template:Book: Difference between revisions

From Railway Knowledge Base for New Zealand
Jump to navigation Jump to search
No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
{{#template_params:Book_Full_Title (label=Full Book Title)|Edition|Book_Series (label=Book Series name)|Series_number (label=Series Number)|Author (label=Author(s);list)|Publisher (label=Publisher Name)|Publication_Type (label=Publication Type)|Binding (label=Binding type)|Date_Prefix (label=Date Prefix)|Publication_Date (label=Publication Date)|ISBN|Width (label=Width (mm))|Height|Orientation|Page_Count (label=Number of Pages)|Cover_Image (label=Cover Image;namespace=File)}}
{{#template_params:Book_Full_Title (label=Full Book Title)|Edition|Book_Series (label=Book Series name)|Series_number (label=Series Number)|Author (label=Author(s);list)|Publisher (label=Publisher Name)|Publication_Type (label=Publication Type)|Binding (label=Binding type)|Date_Prefix (label=Date Prefix)|Publication_Date (label=Publication Date)|Reprint (label=Reprint date)|ISBN|Width (label=Width (mm))|Height (label=Height (mm))|Orientation|Page_Count (label=Number of Pages)|Cover_Image (label=Cover Image;namespace=File)}}
{{#cargo_declare:_table=Book|Book_Full_Title=Text|Edition=Integer|Book_Series=Page|Series_number=Integer|Author=List (,) of Page|Publisher=Page|Publication_Type=Text (allowed values=Book,Booklet,Pamphlet,Report)|Binding=Text (allowed values=Hard-cover,Soft-cover,Spiral-bound,Plastic comb,Staple-bound,Stapled on Fold,Stapled,Folded sheet,Loose-leaf Screw,Loose-leaf Ring)|Date_Prefix=Text (allowed values=circa,before,after)|Publication_Date=Date|ISBN=String|Width=Integer|Height=Integer|Orientation=Text (allowed values=Portrait,Landscape)|Page_Count=Integer|Cover_Image=File}}
{{#cargo_declare:_table=Book|Book_Full_Title=Text|Edition=Integer|Book_Series=Page|Series_number=Integer|Author=List (,) of Page|Publisher=Page|Publication_Type=Text (allowed values=Book,Booklet,Pamphlet,Report)|Binding=Text (allowed values=Hard-cover,Soft-cover,Spiral-bound,Plastic comb,Staple-bound,Stapled on Fold,Stapled,Folded sheet,Loose-leaf Screw,Loose-leaf Ring)|Reprint=Date|Date_Prefix=Text (allowed values=circa,before,after)|Publication_Date=Date|ISBN=String|Width=Integer|Height=Integer|Orientation=Text (allowed values=Portrait,Landscape)|Page_Count=Integer|Cover_Image=File}}
</noinclude><includeonly>{{#cargo_store:_table=Book}}
</noinclude><includeonly>{{#cargo_store:_table=Book}}
{{#template_display:_format=standard}}
{{#template_display:_format=standard}}
This book is recorded as being held in the following library(s)
{{#Cargo_query:
|tables=Book_Copy
|fields=_pageName, Lib_Shelf_ID, Title
|where=Book_Copy.Title='{{PAGENAME}}'
|format=table
}}
[[Category:Book]]
[[Category:Book]]
</includeonly>
</includeonly>

Latest revision as of 23:15, 8 May 2024

This is the "Book" template.

It should be called in the following format:

{{Book
|Book_Full_Title=
|Edition=
|Book_Series=
|Series_number=
|Author=
|Publisher=
|Publication_Type=
|Binding=
|Date_Prefix=
|Publication_Date=
|Reprint=
|ISBN=
|Width=
|Height=
|Orientation=
|Page_Count=
|Cover_Image=
}}

Edit the page to see the template text.

This template defines the table "Book". View table.