Difference between revisions of "Template:Ludography ref"

From Traveller Wiki - Science-Fiction Adventure in the Far future
Jump to navigation Jump to search
(Created page with "{{#cargo_query: tables=RPGBook |fields=author, name, publisher, date_format(year, '%Y')=year,'{{{article|}}}'=article, '{{{page|}}}'=page, _pageName |where=name='{{{name|Book...")
 
Line 2: Line 2:
 
tables=RPGBook
 
tables=RPGBook
 
|fields=author, name, publisher, date_format(year, '%Y')=year,'{{{article|}}}'=article, '{{{page|}}}'=page, _pageName  
 
|fields=author, name, publisher, date_format(year, '%Y')=year,'{{{article|}}}'=article, '{{{page|}}}'=page, _pageName  
|where=name='{{{name|Book 1}}}'
+
|where=name='{{#replace:{{{name|Book 1}}}|'|''}}'
 
|format=template
 
|format=template
 
|template=Ludography ref.layout
 
|template=Ludography ref.layout

Revision as of 12:02, 11 April 2016

Unknown column ' in 'order clause'

Used to create a correct reference citation for a specific book from the Ludography. The ref is a shorter version of the full (and correct) Template:Ludography cite. The list of books is in the Cargo data tables, as created by the Template:InfoboxBook2. If you need a new citation, make sure the book (or magazine) in the Ludography has the correct and updated template.

The final result is formatted by the Template:Ludography ref.layout.

Parameters are:

  • name = Name of the book. While some pages for the book include the Traveller version (e.g. "T4" or "GURPS Traveller:", the name used here generally omits them.
  • page = Page (e.g. 15) or range of pages (1-4) which is being cited.
  • article = Title of article in magazine.