Template:Talmud source: Difference between revisions

Content deleted Content added
No edit summary
No edit summary
 
(2 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
| EnglishTranslation = Text
|SelectedText=Text
| Data = Text
|EnglishTranslation=Text
| Context = Text
|Data=Text
| Flags = Text }}
|Context=Text
|Flags=Text}}
</noinclude>
<includeonly>
{{#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">
[[Sefaria:{{{Tractate|}}}.{{{PageNo|}}}{{{Layout|}}}.{{{Line|}}}|{{{Tractate|}}} {{{PageNo|}}}{{{Layout|}}}:{{{Line|}}}]] {{{Flags|}}} - {{{SelectedText|}}}
<!-- Flowbite Modal Trigger (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">
<i class="fas fa-info-circle"></i> More
</span>
<!-- Flowbite Modal -->
<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">
<div class="relative w-full max-w-2xl max-h-full">
<div class="relative bg-white rounded-lg shadow dark:bg-gray-700">
<div class="flex items-start justify-between p-4 border-b rounded-t dark:border-gray-600">
<h3 class="text-xl font-medium text-gray-900 dark:text-white">Source Details</h3>
<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|}}}">{{i|times}}<span class="sr-only">Close modal</span></span>
</div>
<div class="p-6 space-y-6">
<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>
<p class="text-base leading-relaxed text-gray-500 dark:text-gray-400"><b>Talmudic Context:</b> {{{Context|}}}</p>
</div>
</div>
</div>
</div>
</span>
</includeonly>


<templatedata>
<templatedata>
Line 121: Line 84:
}
}
</templatedata>
</templatedata>
</noinclude>
<includeonly>
{{#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">
[[Sefaria:{{{Tractate|}}}.{{{PageNo|}}}{{{Layout|}}}.{{{Line|}}}|{{{Tractate|}}}{{{PageNo|}}}{{{Layout|}}}:{{{Line|}}}]]
{{{Flags|}}}
<!--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">
{{I|info-circle|fas}}More
</span>
<!--FlowbiteModal-->
<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="relative w-full max-w-2xl max-h-full">
<div class="relative bg-white rounded-lg shadow dark:bg-gray-700">
<div class="flex items-start justify-between p-4 border-b rounded-t dark:border-gray-600">
<h3 class="text-xl font-medium text-gray-900 dark:text-white">Source Details</h3>
<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|}}}">
{{I|times|fas}}
<span class="sr-only">Close modal</span>
</span>
</div>
<div class="p-6 space-y-6">
<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>
<p class="text-base leading-relaxed text-gray-500 dark:text-gray-400"><b>Talmudic Context:</b> {{{Context|}}}</p>
</div>
</div>
</div>
</div>
</span>
</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

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
TractateTractate

no description

Stringrequired
Page No.PageNo

no description

Numberrequired
Layout (a or b)Layout

no description

Stringrequired
LineLine

no description

Numberrequired
Selected TextSelectedText

no description

Stringrequired
English TranslationEnglishTranslation

no description

Stringoptional
Data (what's interesting)Data

no description

Stringoptional
Context in the TalmudContext

no description

Stringoptional
FlagsFlags

no description

Stringoptional