Difference between revisions of "Template:Cite Talmud/doc"

From blackwiki
Jump to navigation Jump to search
imported>Waddie96
(add nobook)
imported>Waddie96
(add templatedata)
 
Line 20: Line 20:
 
[[Category:Text-specific formatting and function templates]]
 
[[Category:Text-specific formatting and function templates]]
 
}}</includeonly>
 
}}</includeonly>
 +
<templatedata>
 +
{
 +
"params": {
 +
"1": {
 +
"label": "Compilation",
 +
"description": "'b' for Babylonian or 'y' for Jerusalem",
 +
"example": "b",
 +
"type": "string",
 +
"required": true
 +
},
 +
"2": {
 +
"label": "Tractate",
 +
"example": "Shabbat",
 +
"type": "string",
 +
"required": true
 +
},
 +
"3": {
 +
"label": "Chapter",
 +
"description": "Chapter name or number",
 +
"type": "string"
 +
},
 +
"4": {
 +
"label": "daf",
 +
"description": "Page or folio numbers; ranges are accepted",
 +
"example": "32b, 2b-4a",
 +
"type": "string"
 +
},
 +
"5": {
 +
"label": "Remove preceding?",
 +
"description": "Removes preceding Talmud and abbreviation to compilation if 'yes', if blank (default) or 'no' generates normally",
 +
"example": "yes",
 +
"type": "boolean",
 +
"default": "no"
 +
}
 +
},
 +
"description": "Generate Talmud citation linking to an external website"
 +
}
 +
</templatedata>

Latest revision as of 13:29, 18 September 2019

Usage

Parameters

  1. b for Babylonian Talmud or y for Jerusalem Talmud. Babylonian is default.
  2. Tractate name (required)
  3. Chapter name or number (optional)
  4. daf (optional) – These are page or folio numbers as described at Talmud#Slavuta Talmud 1795 and Vilna Talmud 1835. Ranges are accepted, eg. 2b-4a
  5. Boolean (optional) – 'yes' will cause it to generate without the preceding Talmud, b.

Example

{{Cite Talmud|b|Shabbat||3b-5a}}


Talmud, b. Shabbat 3b-5a, or

{{Cite Talmud|b|Shabbat||3b-5a|yes}}


Shabbat 3b-5a if 5 = 'yes'

For additional examples, see Template:Cite Talmud/testcases.


Generate Talmud citation linking to an external website

Template parameters

ParameterDescriptionTypeStatus
Compilation1

'b' for Babylonian or 'y' for Jerusalem

Example
b
Stringrequired
Tractate2

no description

Example
Shabbat
Stringrequired
Chapter3

Chapter name or number

Stringoptional
daf4

Page or folio numbers; ranges are accepted

Example
32b, 2b-4a
Stringoptional
Remove preceding?5

Removes preceding Talmud and abbreviation to compilation if 'yes', if blank (default) or 'no' generates normally

Default
no
Example
yes
Booleanoptional