Difference between revisions of "Template:Cite Talmud/sandbox"
Jump to navigation
Jump to search
Talmud, b. Shabbat 3b-5a, or
Shabbat 3b-5a if
imported>Daask (Allow URL to be passed as parameter) |
imported>Daask m (Fix typo) |
||
| Line 1: | Line 1: | ||
<includeonly>[[Talmud]], {{#switch: {{#ifeq:{{{1|}}}||b|{{{1|}}}}} | <includeonly>[[Talmud]], {{#switch: {{#ifeq:{{{1|}}}||b|{{{1|}}}}} | ||
| b = [{{{url|https://www.sefaria.org/{{replace|{{{2}}}| |_}}.{{replace|{{#if:{{{4|}}}|{{{4}}}|2a}}| |}}}}} <abbr title="Babylonian">b.</abbr> {{{2}}} {{{4|}}}] | | b = [{{{url|https://www.sefaria.org/{{replace|{{{2}}}| |_}}.{{replace|{{#if:{{{4|}}}|{{{4}}}|2a}}| |}}}}} <abbr title="Babylonian">b.</abbr> {{{2}}} {{{4|}}}] | ||
| − | | y = [{{{url|https://www.sefaria.org/Jerusalem_Talmud_{{replace|{{{2}}}| |_}}.{{replace|{{#if:{{{4|}}}|{{{4}}}|2a}}| |}}}} <abbr title="Jerusalem">y.</abbr> {{{2}}} {{{4|}}}] | + | | y = [{{{url|https://www.sefaria.org/Jerusalem_Talmud_{{replace|{{{2}}}| |_}}.{{replace|{{#if:{{{4|}}}|{{{4}}}|2a}}| |}}}}} <abbr title="Jerusalem">y.</abbr> {{{2}}} {{{4|}}}] |
| {{error | First argument must be either b for Babylonian Talmud or y for Jerusalem Talmud.}} | | {{error | First argument must be either b for Babylonian Talmud or y for Jerusalem Talmud.}} | ||
}}{{Ifpreview|{{#ifeq: {{trim|{{{3|}}}}}||| {{small| Note: Chapter name and numbers are not yet implemented. This message is shown only in previews. }} }}| }}</includeonly><noinclude> | }}{{Ifpreview|{{#ifeq: {{trim|{{{3|}}}}}||| {{small| Note: Chapter name and numbers are not yet implemented. This message is shown only in previews. }} }}| }}</includeonly><noinclude> | ||
Revision as of 21:46, 14 May 2019
| This is the template sandbox page for Template:Cite Talmud (diff). See also the companion subpage for test cases. |
| 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}}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. |