Difference between revisions of "Template:Page cite"

From Traveller Wiki - Science-Fiction Adventure in the Far future
Jump to: navigation, search
Line 2: Line 2:
 
  |{{#ifeq: {{#counter: {{{citeName}}}|type=numeral}}
 
  |{{#ifeq: {{#counter: {{{citeName}}}|type=numeral}}
 
     |1
 
     |1
     |{{#tag:ref|{{Ludography cite{{!}}name={{{name}}}{{!}}page={{{page|}}}{{!}}article={{{article|}}}{{!}}version={{{version|}}}{{!}}edition={{{edition|}}} }}|name={{{citeName}}} }}
+
     |{{#tag:ref|{{Ludography cite{{!}}name={{{name}}}{{!}}page={{{page/s|}}}{{!}}article={{{article|}}}{{!}}version={{{version|}}}{{!}}edition={{{edition|}}} }}|name={{{citeName}}} }}
 
     |{{#tag:ref||name={{{citeName}}} }}
 
     |{{#tag:ref||name={{{citeName}}} }}
 
   }}
 
   }}
  |{{#tag:ref|{{Ludography cite{{!}}name={{{name}}}{{!}}page={{{page|}}}{{!}}article={{{article|}}}{{!}}version={{{version|}}}{{!}}edition={{{edition|}}} }} }} }}</includeonly><noinclude>
+
  |{{#tag:ref|{{Ludography cite{{!}}name={{{name}}}{{!}}page={{{page/s|}}}{{!}}article={{{article|}}}{{!}}version={{{version|}}}{{!}}edition={{{edition|}}} }} }} }}</includeonly><noinclude>
 
[[Category: Templates|Page cite]]  
 
[[Category: Templates|Page cite]]  
 
[[Category: Text Expansion Templates|Page Cite]]
 
[[Category: Text Expansion Templates|Page Cite]]
 
{{Page cite/doc}}
 
{{Page cite/doc}}
 
</noinclude>
 
</noinclude>

Revision as of 04:14, 11 September 2019

This template combines the Cite extension <ref> tag with a call to the Template:Ludography cite to allow fast set up of the correct references in a page to the formatted citations.

Parameters are:

citeName
A name for this citation. Used by the ref tag to allow multiple reference to the same citation
name
Ludography cite document name.
page
Ludography cite document page (e.g. 15) or range of pages (1-4) being cited.
article
(optional) Ludography cite article within the document to reference.
version
(optional) Ludography cite Versions of Traveller name for the book. Used to disambiguate identical titles from different versions of Traveller.
edition
(optional) Ludography cite edition of the book. Used to disambiguate identical titles with different editions.