Jump to content

Template:Bhashyam: Difference between revisions

From Anandamakaranda
No edit summary
Tag: Reverted
No edit summary
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><div
<noinclude>{{#cargo_declare: _table=Commentaries
  class="bhashyam-block"
| verse_id      = String
  id="{{{id|}}}"
| commentary_id  = String
  data-verse="{{{verse_id|}}}"
| name          = String
  data-commentary-id="{{{id|}}}"
| text          = Wikitext
>{{#tag:div|{{{text|}}}|class=bhashya-inner}}</div><!--
}}</noinclude><div class="bhashyam-block" id="{{{id|}}}" data-verse="{{{verse_id|}}}" data-block-id="{{{id|}}}">{{{text|}}}</div>{{#cargo_store: _table=Commentaries
-->{{#cargo_store: _table=Commentaries
| verse_id      = {{{verse_id|}}}
| verse_id      = {{{verse_id|}}}
| commentary_id  = {{{id|}}}
| commentary_id  = {{{id|}}}
| name          = bhashyam
| name          = bhashyam
| text          = {{{text|}}}
| text          = {{{text|}}}
}}</includeonly><noinclude>
}}<noinclude>
== Template:Bhashyam ==
== Template:Bhashyam ==
Renders a primary bhāṣya commentary block as plain running prose.
Renders a bhāṣya block and stores it in the Commentaries Cargo table.
No box, no title, no border — flows as body text with left indent.
Emits: <div class="bhashya" id="{id}" data-verse="{verse_id}" data-block-id="{id}">
 
[[Category:Templates]][[Category:Cargo store templates]]
=== Parameters ===
{| class="wikitable"
|-
! Parameter !! Required !! Description
|-
| <code>verse_id</code> || Yes || ID of the parent verse, e.g. <code>ISH_C01_V01</code>
|-
| <code>id</code> || No || ID of this commentary block
|-
| <code>text</code> || Yes || The bhāṣya prose content
|}
 
=== Example ===
<pre>
{{Bhashyam
| verse_id = ISH_C01_V01
| id       = ISH_C01_V01_B01
| text    =
ईशस्यावासयोग्यमीशावास्यम् । जगत्यां प्रकृतौ ।
}}
</pre>
[[Category:Templates]]
</noinclude>
</noinclude>

Latest revision as of 09:29, 29 May 2026

This template defines the table "Commentaries". View table.

Template:Bhashyam

Renders a bhāṣya block and stores it in the Commentaries Cargo table.

Emits: