Template:Sourcetext
Error on call to Template:Sourcetext. Parameter source must be defined.
Description
Template for linking to standardised Wikisource texts.
Usage
- source, the source text (must be defined, or the template will generate an error)
- version, version of the source text (optional, use if there is more than one version of a text, for example, Bible translations, etc)
- book, the book of the source text (optional, use if chapters or books are defined as subpages)
- chapter, the chapter of the book of the source text (chapter/anchor of the book)
- verse, the verse of the chapter of the book of the source text (verse of the book)
- range, specific verse range (optional range, will not link to these verses, will only display)
- nobook, if defined, will not display a book name
- showsource, if defined, will display the title of the sourcetext
Examples
Code: {{sourcetext|source=Bible|version=King James|book=1 Samuel|chapter=1|verse=10|range=, 18}}, {{sourcetext|source=Bible|version=King James|book=1 Samuel|chapter=3|verse=11|range=-21|nobook=}}
Renders as: 1 Samuel 1:10, 18, 3:11-21.
Code: {{sourcetext|source=Bible|version=King James|book=Esther|chapter=4|verse=6|range=-10}}
Renders as: Esther 4:6-10.
Code: {{sourcetext|source=The Canterbury Tales: The Wife of Bath's Prologue and Tale|chapter=19}}
Renders as: The Canterbury Tales: The Wife of Bath's Prologue and Tale 19
Code: {{sourcetext|source=The Man From Snowy River}}
Renders as: The Man From Snowy River
Code: {{sourcetext|source=The Doctrine and Covenants|book=D&C 91|verse=1|range=-12|showsource=y}}
Renders as: The Doctrine and Covenants, D&C 91:1-12
本模板含有複雜而精密的扩展语法。 編輯本模板前,建議您先熟悉解析器函數与本模板的设计思路、运作原理等。若您的編輯引發了意外的問題,請儘快撤銷編輯,因為本模板可能被大量頁面使用。 您所作的编辑可先在模板沙盒或您的个人页面中进行測試。 |