Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Cite book: Difference between revisions

Template page
added support for prologue/epilogue
updated templatedata
 
(One intermediate revision by the same user not shown)
Line 4: Line 4:
  | post-epilogue = {{{chapter|{{{2}}}}}}
  | post-epilogue = {{{chapter|{{{2}}}}}}
  | #default = chapter {{{chapter|{{{2}}}}}}
  | #default = chapter {{{chapter|{{{2}}}}}}
}}{{#if:{{{paragraph|{{{3|}}}}}}|, paragraph {{{paragraph|{{{3|}}}}}}}}|{{error|parameters <code>book</code> and <code>chapter</code> are required}}}}</includeonly><noinclude>
}}{{#if:{{{paragraph|{{{3|}}}}}}|, paragraph {{{paragraph|{{{3|}}}}}}}}.{{#if:{{{quote|}}}|&#32;"{{{quote}}}"}}|{{error|parameters <code>book</code> and <code>chapter</code> are required}}}}</includeonly><noinclude>
{{Cite book|<nowiki>{{{book}}}</nowiki>|<nowiki>{{{chapter}}}</nowiki>|<nowiki>{{{paragraph}}}</nowiki>}}
{{Cite book|<nowiki>{{{book}}}</nowiki>|<nowiki>{{{chapter}}}</nowiki>|<nowiki>{{{paragraph}}}</nowiki>}}


Line 25: Line 25:
],
],
"label": "Chapter number",
"label": "Chapter number",
"description": "Chapter number being cited",
"description": "Chapter number being cited. Can be \"prologue\", \"epilogue\", \"post-epilogue\", or a number.",
"example": "2",
"example": "Prologue",
"type": "number",
"type": "string",
"required": true
"required": true
},
},
Line 39: Line 39:
"type": "number",
"type": "number",
"suggested": true
"suggested": true
},
"quote": {
"label": "Quotation",
"description": "A quotation of the text being cited. Placed in quotation marks automatically.",
"type": "string"
}
}
},
},
"description": "Cite a specific paragraph and chapter of a book",
"description": "Cite a book",
"format": "inline"
"format": "inline"
}
}
</templatedata></noinclude>
</templatedata></noinclude>

Latest revision as of 17:12, 23 December 2024

{{{book}}}, chapter {{{chapter}}}, paragraph {{{paragraph}}}.

Cite a book

Template parameters[Edit template data]

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Book namebook 1

Name of the book being cited

Example
The Dragonet Prophecy
Contentrequired
Chapter numberchapter 2

Chapter number being cited. Can be "prologue", "epilogue", "post-epilogue", or a number.

Example
Prologue
Stringrequired
Paragraph numberparagraph 3

Paragraph number being cited

Example
3
Numbersuggested
Quotationquote

A quotation of the text being cited. Placed in quotation marks automatically.

Stringoptional
Cookies help us deliver our services. By using our services, you agree to our use of cookies.