More actions
Created page with "{{#if:{{{book|{{{1|}}}}}}|{{#ifexist:{{{book|{{{1}}}}}}|''[[{{{book|{{{1}}}}}}]]''|''{{{book|{{{1|}}}}}}''}}, chapter {{{chapter|{{{2}}}}}}{{#if:{{{paragraph|{{{3|}}}}}}|, paragraph {{{paragraph|{{{3|}}}}}}}}}}" |
updated templatedata |
||
(8 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{#if:{{{book|{{{1|}}}}}}|{{#ifexist:{{{book|{{{1}}}}}}|''[[{{{book|{{{1}}}}}}]]''|''{{{book|{{{1|}}}}}}''}}, chapter {{{chapter|{{{2}}}}}}{{#if:{{{paragraph|{{{3|}}}}}}|, paragraph {{{paragraph|{{{3|}}}}}}}}}} | <includeonly>{{#if:{{{book|{{{1|}}}}}}{{{chapter|{{{2|}}}}}}|{{#ifexist:{{{book|{{{1}}}}}}|''[[{{{book|{{{1}}}}}}]]''|''{{{book|{{{1|}}}}}}''}}, {{#switch:{{lc:{{{chapter|{{{2}}}}}}}} | ||
| prologue | |||
| epilogue | |||
| post-epilogue = {{{chapter|{{{2}}}}}} | |||
| #default = chapter {{{chapter|{{{2}}}}}} | |||
}}{{#if:{{{paragraph|{{{3|}}}}}}|, paragraph {{{paragraph|{{{3|}}}}}}}}.{{#if:{{{quote|}}}| "{{{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>}} | |||
<templatedata> | |||
{ | |||
"params": { | |||
"book": { | |||
"aliases": [ | |||
"1" | |||
], | |||
"label": "Book name", | |||
"description": "Name of the book being cited", | |||
"example": "The Dragonet Prophecy", | |||
"type": "content", | |||
"required": true | |||
}, | |||
"chapter": { | |||
"aliases": [ | |||
"2" | |||
], | |||
"label": "Chapter number", | |||
"description": "Chapter number being cited. Can be \"prologue\", \"epilogue\", \"post-epilogue\", or a number.", | |||
"example": "Prologue", | |||
"type": "string", | |||
"required": true | |||
}, | |||
"paragraph": { | |||
"aliases": [ | |||
"3" | |||
], | |||
"label": "Paragraph number", | |||
"description": "Paragraph number being cited", | |||
"example": "3", | |||
"type": "number", | |||
"suggested": true | |||
}, | |||
"quote": { | |||
"label": "Quotation", | |||
"description": "A quotation of the text being cited. Placed in quotation marks automatically.", | |||
"type": "string" | |||
} | |||
}, | |||
"description": "Cite a book", | |||
"format": "inline" | |||
} | |||
</templatedata></noinclude> |
Latest revision as of 18:12, 23 December 2024
{{{book}}}, chapter {{{chapter}}}, paragraph {{{paragraph}}}.
Cite a book
Parameter | Description | Type | Status | |
---|---|---|---|---|
Book name | book 1 | Name of the book being cited
| Content | required |
Chapter number | chapter 2 | Chapter number being cited. Can be "prologue", "epilogue", "post-epilogue", or a number.
| String | required |
Paragraph number | paragraph 3 | Paragraph number being cited
| Number | suggested |
Quotation | quote | A quotation of the text being cited. Placed in quotation marks automatically. | String | optional |