Difference between revisions of "Template:Cite Talmud"
Jump to navigation
Jump to search
Talmud, b. Shabbat 3b-5a, or
Talmud, b. Shabbat 3b-5a if
imported>Daask (Change page number from 3rd to 4th argument) |
imported>Daask (Fix first argument per m:Help:Template#Making emptiness and undefinedness equivalent) |
||
| Line 1: | Line 1: | ||
| − | <includeonly>[[Talmud]], {{#switch: {{{ | + | <includeonly>[[Talmud]], {{#switch: {{#if:{{{p|}}}|{{{p}}}|b}} |
| b = [https://www.sefaria.org/{{replace|{{{2}}}| |_}}.{{{4|2a}}} <abbr title="Babylonian">b.</abbr> {{{2}}} {{{4|2a}}}] | | b = [https://www.sefaria.org/{{replace|{{{2}}}| |_}}.{{{4|2a}}} <abbr title="Babylonian">b.</abbr> {{{2}}} {{{4|2a}}}] | ||
| y = [https://www.sefaria.org/Jerusalem_Talmud_{{replace|{{{2}}}| |_}}.{{{4|2a}}} <abbr title="Jerusalem">y.</abbr> {{{2}}} {{{4|2a}}}] | | y = [https://www.sefaria.org/Jerusalem_Talmud_{{replace|{{{2}}}| |_}}.{{{4|2a}}} <abbr title="Jerusalem">y.</abbr> {{{2}}} {{{4|2a}}}] | ||
Revision as of 04:07, 28 March 2018
| This template uses Lua: |
Usage
Parameters
bfor Babylonian Talmud oryfor Jerusalem Talmud. Babylonian is default.- Tractate name (required)
- Chapter name or number (optional)
- 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
- 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}}Talmud, b. Shabbat 3b-5a if
5 = 'yes'
For additional examples, see Template:Cite Talmud/testcases.
Generate Talmud citation linking to an external website
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Compilation | 1 | 'b' for Babylonian or 'y' for Jerusalem
| String | required |
| Tractate | 2 | no description
| String | required |
| Chapter | 3 | Chapter name or number | String | optional |
| daf | 4 | Page or folio numbers; ranges are accepted
| String | optional |
| Remove preceding? | 5 | Removes preceding Talmud and abbreviation to compilation if 'yes', if blank (default) or 'no' generates normally
| Boolean | optional |
| The above documentation is transcluded from Template:Cite Talmud/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |