Difference between revisions of "Template:RPGBook TOC Query"

From Traveller Wiki - Science-Fiction Adventure in the Far future
Jump to navigation Jump to search
Line 10: Line 10:
 
  tables=RPGBook_TOC_Entry
 
  tables=RPGBook_TOC_Entry
 
  |fields= '{{{department|}}}'=ShowDepartment, GROUP_CONCAT(DISTINCT _pageName) = book, subject, '{{{ShowAuthor|}}}'=ShowAuthor
 
  |fields= '{{{department|}}}'=ShowDepartment, GROUP_CONCAT(DISTINCT _pageName) = book, subject, '{{{ShowAuthor|}}}'=ShowAuthor
  |where=_pageName=CONCAT('{{#replace:{{book}}|'|\'}}', '/contents')
+
  |where=_pageName=CONCAT('{{#replace:{{book}}|'|\'}}', '/contents')
 
  |order by=subject,start_page
 
  |order by=subject,start_page
 
  |group by=subject
 
  |group by=subject

Revision as of 20:51, 22 September 2024

No results
{{{book}}}
Chapter Author Pages

[[{{{book}}}/contents|c]]

No results
Challenge 25
Department Article Author Pages

c

No results
Journal of the Travellers' Aid Society volume 1
Article Author Pages

c

This is a Cargo query template. This template queries data from the RPGBook TOC Entry table. The data for this table is entered by using the Template:RPGBook TOC Entry.

Parameters:

  • book: The article title for this table of contents.
  • department : Set to include the Department column in the table
  • heading : Set the heading for the chapter title or publication article name, defaults to "Chapter"