Difference between revisions of "Template:Ludography cite"

From Traveller Wiki - Science-Fiction Adventure in the Far future
Jump to navigation Jump to search
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
<includeonly>{{#cargo_query:
 
<includeonly>{{#cargo_query:
 
tables=RPGBook
 
tables=RPGBook
|fields=author, name, publisher, date_format(year, '%Y')=year,CONCAT('{{#replace:{{{article|}}}|'|''}}')=article, CONCAT('{{{page|}}}')=page, _pageName  
+
|fields=author, name, publisher, date_format(year, '%Y')=year,CONCAT('{{#replace:{{{article|}}}|'|''}}')=article, CONCAT('{{{page|}}}')=page, _pageName, edition
|where=name='{{#replace: {{{name|Book's 1}}}|'|''}}' {{#if:{{{version|}}}| AND version='{{#replace: {{{version|Classic Traveller}}}|'|''}}'}}
+
|where=name='{{#replace: {{{name|Book's 1}}}|'|''}}' {{#if:{{{version|}}}| AND version='{{#replace: {{{version|Classic Traveller}}}|'|''}}'}} {{#if: {{{edition|}}}| AND edition='{{#replace:{{{edition|1st}}}|'|''}}'}}
 
|format=template
 
|format=template
 
|template=Ludography cite.layout
 
|template=Ludography cite.layout
 
|default=[[:Category: Citation Missing|Citation Missing]] - {{{name}}} [[Category: Citation Missing]]
 
|default=[[:Category: Citation Missing|Citation Missing]] - {{{name}}} [[Category: Citation Missing]]
}}</includeonly><noinclude>
+
}}{{#cargo_query:
 +
tables=RPGBook
 +
|fields=IF (COUNT(_pageName) > 1, 'Category: Duplicate citations', '')=Category
 +
|where=name='{{#replace: {{{name|Merchant Prince}}}|'|''}}' {{#if:{{{version|}}}| AND version='{{#replace: {{{version|Classic Traveller}}}|'|''}}'}} {{#if: {{{edition|}}}| AND edition='{{#replace:{{{edition|1st}}}|'|''}}'}}
 +
|format=template
 +
|template=Ludography cite.duplicate
 +
}}</includeonly><noinclude>  
 
[[Category: Cargo Templates|Ludography cite]]
 
[[Category: Cargo Templates|Ludography cite]]
 
[[Category: Templates|Ludography cite]]
 
[[Category: Templates|Ludography cite]]
 
[[Category: Text Expansion Templates|Ludography cite]]
 
[[Category: Text Expansion Templates|Ludography cite]]
Used to create a correct citation for a specific book from the Ludography. The list of books is in the [[Special:CargoTables/RPGBook|Cargo data tables]], as created by the [[Template:InfoboxBook2]]. If you need a new citation, make sure the book (or magazine) in the [[:Category: Ludography|Ludography]] has the correct and updated template.
+
{{Ludography cite/doc}}
 
 
The final result is formatted by the [[Template:Ludography cite.layout]].
 
 
 
Parameters are:
 
;name
 
: Name of the book, magazine or other reference. This must match the name given in the [[Template:InfoboxBook2]] name parameter.
 
;page
 
: Page (e.g. 15) or range of pages (1-4) being cited.
 
;article
 
: (optional) title of the article in magazine.
 
 
</noinclude>
 
</noinclude>

Latest revision as of 21:13, 8 February 2019

Used to create a correct citation for a specific book from the Ludography. 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 cite.layout.

Parameters are:

name
Name of the book, magazine or other reference. This must match the name given in the Template:InfoboxBook2 name parameter.
page
Page (e.g. 15) or range of pages (1-4) being cited.
article
(optional) title of the article in magazine.
version
(optional) Versions of Traveller name for the book. Used to disambiguate identical titles from different versions of Traveller.
edition
(optional) edition of the book. Used to disambiguate editions of the title.