Template:Sourcetext: Difference between revisions
m 1 revision |
(No difference)
|
Latest revision as of 05:21, 8 March 2011
{{#if: |[[s:{{{source}}}{{#if: | ({{{version}}})|}}{{#if: |/{{{book}}}|}}#{{#if: |{{{chapter}}}{{#if:|:|}}|}}{{#if: |{{{verse}}}|}}|{{#if:|{{{source}}}, |}}{{{source}}}{{#if: | {{{chapter}}}|}}{{#if: |:{{{verse}}}|}}{{#if: |{{{range}}}|}}]]|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: {{#if: Bible|[[s:Bible{{#if: King James| (King James)|}}{{#if: 1 Samuel|/1 Samuel|}}#{{#if: 1|1{{#if:10|:|}}|}}{{#if: 10|10|}}|{{#if:|Bible, |}}1 Samuel{{#if: 1| 1|}}{{#if: 10|:10|}}{{#if: , 18|, 18|}}]]|Error on call to Template:Sourcetext. Parameter source must be defined.}}, {{#if: Bible|[[s:Bible{{#if: King James| (King James)|}}{{#if: 1 Samuel|/1 Samuel|}}#{{#if: 3|3{{#if:11|:|}}|}}{{#if: 11|11|}}|{{#if:|Bible, |}}{{#if: 3| 3|}}{{#if: 11|:11|}}{{#if: -21|-21|}}]]|Error on call to Template:Sourcetext. Parameter source must be defined.}}.
Code: {{sourcetext|source=Bible|version=King James|book=Esther|chapter=4|verse=6|range=-10}}
Renders as: {{#if: Bible|[[s:Bible{{#if: King James| (King James)|}}{{#if: Esther|/Esther|}}#{{#if: 4|4{{#if:6|:|}}|}}{{#if: 6|6|}}|{{#if:|Bible, |}}Esther{{#if: 4| 4|}}{{#if: 6|:6|}}{{#if: -10|-10|}}]]|Error on call to Template:Sourcetext. Parameter source must be defined.}}.
Code: {{sourcetext|source=The Canterbury Tales: The Wife of Bath's Prologue and Tale|chapter=19}}
Renders as: {{#if: The Canterbury Tales: The Wife of Bath's Prologue and Tale|[[s:The Canterbury Tales: The Wife of Bath's Prologue and Tale{{#if: | ({{{version}}})|}}{{#if: |/{{{book}}}|}}#{{#if: 19|19{{#if:|:|}}|}}{{#if: |{{{verse}}}|}}|{{#if:|The Canterbury Tales: The Wife of Bath's Prologue and Tale, |}}The Canterbury Tales: The Wife of Bath's Prologue and Tale{{#if: 19| 19|}}{{#if: |:{{{verse}}}|}}{{#if: |{{{range}}}|}}]]|Error on call to Template:Sourcetext. Parameter source must be defined.}}
Code: {{sourcetext|source=The Man From Snowy River}}
Renders as: {{#if: The Man From Snowy River|[[s:The Man From Snowy River{{#if: | ({{{version}}})|}}{{#if: |/{{{book}}}|}}#{{#if: |{{{chapter}}}{{#if:|:|}}|}}{{#if: |{{{verse}}}|}}|{{#if:|The Man From Snowy River, |}}The Man From Snowy River{{#if: | {{{chapter}}}|}}{{#if: |:{{{verse}}}|}}{{#if: |{{{range}}}|}}]]|Error on call to Template:Sourcetext. Parameter source must be defined.}}
Code: {{sourcetext|source=The Doctrine and Covenants|book=D&C 91|verse=1|range=-12|showsource=y}}
Renders as: {{#if: The Doctrine and Covenants|[[s:The Doctrine and Covenants{{#if: | ({{{version}}})|}}{{#if: D&C 91|/D&C 91|}}#{{#if: |{{{chapter}}}{{#if:1|:|}}|}}{{#if: 1|1|}}|{{#if:y|The Doctrine and Covenants, |}}D&C 91{{#if: | {{{chapter}}}|}}{{#if: 1|:1|}}{{#if: -12|-12|}}]]|Error on call to Template:Sourcetext. Parameter source must be defined.}}
{{Esoteric/{{#ifexist: Template:Esoteric/{{#if: |{{{2}}}|⧼Lang⧽}} | {{#if: |{{{2}}}|⧼Lang⧽}} | {{#ifexist: Template:Esoteric/Template:GetFallback | Template:GetFallback | {{#ifexist: Template:Esoteric/Template:GetFallback2 | Template:GetFallback2 | en }} }} }}|1=|2=|3=|4=|5=|6=|7=|8=|9=}}{{#ifeq: Template:Sourcetext | Template:Esoteric | }}