Template:Cite book

From Final Fantasy XIV Online Wiki
Jump to navigation Jump to search
Documentation for Template:Cite book [view] [edit] [history] [purge] (How does this work?)
{{Cite book|volume=|page=|passage-text=}}
{{Cite book|title=|page=|passage-text=|name=}}

Parameters

title
Optional. Title of the book. Defaults to Encyclopædia Eorzea.
volume
Required (for Encyclopædia Eorzea). When specified, displays the text "Volume" followed by the parameter value. Current values are I, II, III
page
Required. The page number of the referenced text.
passage-text
Optional. The source text of the passage being referenced in the article. When specified, displays enclosed by a pair of quotation marks.
name
Optional. Used to co-index several references into a single reference entry. When specified, this sets the wikicode for <ref name=[NAME]>.
Note: This should only be used when multiple references will have the same name. Subsequent uses of {{cite book}} with the same name will ignore all parameters other than name, as the ref wiki tag will throw errors if other values are present.



Example

Wiki Code Result
Swethryk's brother is Captain Swethyna.{{cite book|volume=I|page=115|passage-text=The Grand Serpent Marshal of the Order of the Twin Adder and brother to Captain Swethyna of the Wood Wailers, Swethryk Brookstone once enjoyed fame as a master of the lance, and even served as captain of the Wood Wailers.}}

This is sentence references the cookbook and uses name=testA.{{cite book|title=The Ultimate Final Fantasy XIV Cookbook|name=testA}}

This is a third sentence; it references Vol I and uses name=testB.{{cite book|name=testB|volume=I|passage-text=Whoa what's this?}}

This is a fourth sentence, and uses name=testC (but this name isn't used again).{{cite book|name=testC}}

This is a fifth, and also uses name=testA.{{cite book|name=testA}}

This is a sixth sentence, and references volume II, page 27.{{cite book|volume=II|page=27|passage-text=This is what it says in the book.}}

This is a seventh sentence, and also uses name=testB.{{cite book|name=testB}}

This is an eighth sentence, and uses name=testB for the third time.{{cite book|name=testB}}
Swethryk's brother is Captain Swethyna.[1]

This is sentence references the cookbook and uses name=testA.[2]

This is a third sentence; it references Vol I and uses name=testB.[3]

This is a fourth sentence, and uses name=testC (but this name isn't used again).[4]

This is a fifth, and also uses name=testA.[2]

This is a sixth sentence, and references volume II, page 27.[5]

This is a seventh sentence, and also uses name=testB.[3]

This is an eighth sentence, and uses name=testB for the third time.[3]


References (for Example)

  1. Encyclopædia Eorzea, Volume I, page 115. "The Grand Serpent Marshal of the Order of the Twin Adder and brother to Captain Swethyna of the Wood Wailers, Swethryk Brookstone once enjoyed fame as a master of the lance, and even served as captain of the Wood Wailers."
  2. 2.0 2.1 The Ultimate Final Fantasy XIV Cookbook.
  3. 3.0 3.1 3.2 Encyclopædia Eorzea, Volume I. "Whoa what's this?"
  4. Encyclopædia Eorzea.
  5. Encyclopædia Eorzea, Volume II, page 27. "This is what it says in the book."


External References for Template Development

  • MediaWiki Help:Cite - An explanation of how <ref> tags work. Also explains why we need to use {{#tag:ref}}for this.
  • MediaWiki Template:Reflist - While this wiki does not currently implement this template, it's a moderately helpful reference to see how we could do this.