Content deleted Content added
No edit summary |
No edit summary |
||
| (4 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<noinclude> |
<noinclude> |
||
== Example == |
|||
This is the "Talmud Source" template. |
|||
== Example == |
|||
<pre>{{Talmud source |
<pre>{{Talmud source |
||
| Tractate = Berakhot |
| Tractate = Berakhot |
||
| Line 25: | Line 24: | ||
| Flags = This source has been debated, see… |
| Flags = This source has been debated, see… |
||
}} |
}} |
||
This is the "Talmud source" template. |
|||
{{#cargo_declare: _table=TalmudSources |
|||
{{#cargo_declare:_table=TalmudSources |
|||
| Tractate = String |
|||
|Tractate=String |
|||
| PageNo = Integer |
|||
|PageNo=Integer |
|||
| Layout = String (size=1; allowed values=a,b) |
|||
|Layout=String(size=1;allowedvalues=a,b) |
|||
| Line = Integer |
|||
|Line=Integer |
|||
| SelectedText = Text |
|||
|SelectedText=Text |
|||
| EnglishTranslation = Text |
|||
|EnglishTranslation=Text |
|||
|Data=Text |
|||
|Context=Text |
|||
|Flags=Text}} |
|||
</noinclude> |
|||
<templatedata> |
|||
{ |
|||
"description": "Footnote template for Talmud sources", |
|||
"params": { |
|||
"Tractate": { |
|||
"label": "Tractate", |
|||
"type": "string", |
|||
"required": true |
|||
}, |
|||
"PageNo": { |
|||
"label": "Page No.", |
|||
"type": "number", |
|||
"required": true |
|||
}, |
|||
"Layout": { |
|||
"label": "Layout (a or b)", |
|||
"type": "string", |
|||
"required": true |
|||
}, |
|||
"Line": { |
|||
"label": "Line", |
|||
"type": "number", |
|||
"required": true |
|||
}, |
|||
"SelectedText": { |
|||
"label": "Selected Text", |
|||
"type": "string", |
|||
"required": true |
|||
}, |
|||
"EnglishTranslation": { |
|||
"label": "English Translation", |
|||
"type": "string" |
|||
}, |
|||
"Data": { |
|||
"label": "Data (what's interesting)", |
|||
"type": "string" |
|||
}, |
|||
"Context": { |
|||
"label": "Context in the Talmud", |
|||
"type": "string" |
|||
}, |
|||
"Flags": { |
|||
"label": "Flags", |
|||
"type": "string" |
|||
} |
|||
} |
|||
} |
|||
</templatedata> |
|||
</noinclude> |
|||
<includeonly> |
<includeonly> |
||
{{#cargo_store: |
{{#cargo_store:_table=TalmudSources |
||
|Tractate={{{Tractate|}}} |
|||
|PageNo={{{PageNo|}}} |
|||
|Layout={{{Layout|}}} |
|||
|Line={{{Line|}}} |
|||
|SelectedText={{{SelectedText|}}} |
|||
|EnglishTranslation={{{EnglishTranslation|}}} |
|||
|Data={{{Data|}}} |
|||
|Context={{{Context|}}} |
|||
|Flags={{{Flags|}}} |
|||
}} |
|||
<span class="talmud-source"> |
<span class="talmud-source"> |
||
[[Sefaria:{{{Tractate|}}}.{{{PageNo|}}}{{{Layout|}}}.{{{Line|}}}|{{{Tractate|}}} |
[[Sefaria:{{{Tractate|}}}.{{{PageNo|}}}{{{Layout|}}}.{{{Line|}}}|{{{Tractate|}}}{{{PageNo|}}}{{{Layout|}}}:{{{Line|}}}]] |
||
{{{Flags|}}} |
|||
<!-- Flowbite Modal Trigger --> |
|||
<!--FlowbiteModalTrigger(using span)--> |
|||
<span data-modal-target="source-modal-{{{Tractate|}}}-{{{PageNo|}}}{{{Layout|}}}-{{{Line|}}}" data-modal-toggle="source-modal-{{{Tractate|}}}-{{{PageNo|}}}{{{Layout|}}}-{{{Line|}}}" class="inline-block px-2 py-1 text-xs font-medium text-center text-white bg-blue-700 rounded-lg hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800 cursor-pointer">More</span> |
|||
<span data-modal-target="source-modal-{{{Tractate|}}}-{{{PageNo|}}}{{{Layout|}}}-{{{Line|}}}" data-modal-toggle="source-modal-{{{Tractate|}}}-{{{PageNo|}}}{{{Layout|}}}-{{{Line|}}}" class="inline-block px-2 py-1 text-xs font-medium text-center text-white bg-blue-700 rounded-lg hover:bg-blue-800 focus:ring-4 focus:outline-none focus:ring-blue-300 dark:bg-blue-600 dark:hover:bg-blue-700 dark:focus:ring-blue-800 cursor-pointer"> |
|||
<!-- Flowbite Modal --> |
|||
{{I|info-circle|fas}}More |
|||
<div id="source-modal-{{{Tractate|}}}-{{{PageNo|}}}{{{Layout|}}}-{{{Line|}}}" tabindex="-1" aria-hidden="true" class="fixed top-0 left-0 right-0 z-50 hidden w-full p-4 overflow-y-auto md:inset-0 h-[calc(100%-1rem)] max-h-full"> |
|||
</span> |
|||
<div class="relative w-full max-w-2xl max-h-full"> |
|||
<!--FlowbiteModal--> |
|||
<div class="relative bg-white rounded-lg shadow dark:bg-gray-700"> |
|||
<div id="source-modal-{{{Tractate|}}}-{{{PageNo|}}}{{{Layout|}}}-{{{Line|}}}" tabindex="-1" aria-hidden="true" class="fixed top-0 left-0 right-0 z-50 hidden h-full w-full p-4 overflow-y-auto md:inset-0 h-[calc(100%-1rem)] max-h-full"> |
|||
<div class="flex items-start justify-between p-4 border-b rounded-t dark:border-gray-600"> |
|||
<div class="relative w-full max-w-2xl max-h-full"> |
|||
<h3 class="text-xl font-medium text-gray-900 dark:text-white">Source Details</h3> |
|||
<div class="relative bg-white rounded-lg shadow dark:bg-gray-700"> |
|||
<button type="button" class="text-gray-400 bg-transparent hover:bg-gray-200 hover:text-gray-900 rounded-lg text-sm p-1.5 ml-auto inline-flex items-center dark:hover:bg-gray-600 dark:hover:text-white" data-modal-hide="source-modal-{{{Tractate|}}}-{{{PageNo|}}}{{{Layout|}}}-{{{Line|}}}"> |
|||
<div class="flex items-start justify-between p-4 border-b rounded-t dark:border-gray-600"> |
|||
<svg aria-hidden="true" class="w-5 h-5" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z" clip-rule="evenodd"></path></svg> |
|||
<h3 class="text-xl font-medium text-gray-900 dark:text-white">Source Details</h3> |
|||
<span class="sr-only">Close modal</span> |
|||
<span type="button" class="text-gray-400 bg-transparent hover:bg-gray-200 hover:text-gray-900 rounded-lg text-sm p-1.5 ml-auto inline-flex items-center dark:hover:bg-gray-600 dark:hover:text-white" data-modal-hide="source-modal-{{{Tractate|}}}-{{{PageNo|}}}{{{Layout|}}}-{{{Line|}}}"> |
|||
</button> |
|||
{{I|times|fas}} |
|||
</div> |
|||
<span class="sr-only">Close modal</span> |
|||
</span> |
|||
<p class="text-base leading-relaxed text-gray-500 dark:text-gray-400"><b>English Translation:</b> {{{EnglishTranslation|}}}</p> |
|||
</div> |
|||
<p class="text-base leading-relaxed text-gray-500 dark:text-gray-400"><b>Interesting Data:</b> {{{Data|}}}</p> |
|||
<div class="p-6 space-y-6"> |
|||
<p class="text-base leading-relaxed text-gray-500 dark:text-gray-400"><b>Talmudic Context:</b> {{{Context|}}}</p> |
|||
<p class="text-base leading-relaxed text-gray-500 dark:text-gray-400"><b>English Translation:</b> {{{EnglishTranslation|}}}</p> |
|||
<p class="text-base leading-relaxed text-gray-500 dark:text-gray-400"><b>Interesting Data:</b> {{{Data|}}}</p> |
|||
</div> |
|||
<p class="text-base leading-relaxed text-gray-500 dark:text-gray-400"><b>Talmudic Context:</b> {{{Context|}}}</p> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
|||
</div> |
</div> |
||
</span> |
</span> |
||
</includeonly> |
</includeonly> |
||
Latest revision as of 22:28, 12 December 2024
Example
{{Talmud source
| Tractate = Berakhot
| PageNo = 16
| Layout = a
| Line = 7
| SelectedText = Some interesting Aramaic text
| EnglishTranslation = This is the English translation of the text.
| Data = This is particularly interesting because…
| Context = The broader discussion in the Talmud here is about…
| Flags = This source has been debated, see…
}}Result
Berakhot16a:7 This source has been debated, see… More
This is the "Talmud source" template. This template defines the table "TalmudSources". This table has not been created yet.
Footnote template for Talmud sources
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Tractate | Tractate | no description | String | required |
| Page No. | PageNo | no description | Number | required |
| Layout (a or b) | Layout | no description | String | required |
| Line | Line | no description | Number | required |
| Selected Text | SelectedText | no description | String | required |
| English Translation | EnglishTranslation | no description | String | optional |
| Data (what's interesting) | Data | no description | String | optional |
| Context in the Talmud | Context | no description | String | optional |
| Flags | Flags | no description | String | optional |