Template:Cite Talmud/sandbox: Difference between revisions
Appearance
Content deleted Content added
Use character code to replace spaces in URLs |
|||
Line 1: | Line 1: | ||
<includeonly>[[Talmud]], {{#switch: {{#ifeq:{{{1|}}}||b|{{{1|}}}}} |
<includeonly>[[Talmud]], {{#switch: {{#ifeq:{{{1|}}}||b|{{{1|}}}}} |
||
| b = [https://www.sefaria.org/{{replace|{{{2}}}| |
| b = [https://www.sefaria.org/{{replace|{{{2}}}| |_}}.{{#if:{{{4|}}}|{{{4}}}|2a}} <abbr title="Babylonian">b.</abbr> {{{2}}} {{{4|}}}] |
||
| y = [https://www.sefaria.org/Jerusalem_Talmud_{{replace|{{{2}}}| |
| y = [https://www.sefaria.org/Jerusalem_Talmud_{{replace|{{{2}}}| |_}}.{{#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. "{{{3|}}}" }} }}| }}</includeonly><noinclude> |
}}{{Ifpreview|{{#ifeq: {{trim|{{{3|}}}}}||| {{small| Note: Chapter name and numbers are not yet implemented. "{{{3|}}}" }} }}| }}</includeonly><noinclude> |
Revision as of 06:21, 28 March 2018
This is the template sandbox page for Template:Cite Talmud (diff). See also the companion subpage for test cases. |
This template uses Lua: |
Usage
This template's documentation is missing, inadequate, or does not accurately describe its functionality or the parameters in its code. Please help to expand and improve it. |
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Cite Talmud in articles based on its TemplateData.
TemplateData for Cite Talmud
Generate Talmud citation linking to an external website
Parameter | Description | Type | Status | |
---|---|---|---|---|
Compilation | 1 | 'b' for Babylonian Talmud or 'y' for Jerusalem Talmud
| String | required |
Tractate | 2 | The specific tractate of talmud to cite
| String | required |
Daf | 3 4 daf | Page or folio numbers; ranges are accepted
| String | suggested |
Remove book label | nobook 5 | If set, don't include preceding "Talmud, b."
| Boolean | optional |
Example
{{Cite Talmud|b|Shabbat|3b-5a}}
{{Cite Talmud|b|Shabbat|3b-5a|nobook=yes}}
nobook = 'yes'
For additional examples, see Template:Cite Talmud/testcases.