Jump to content

Template:Commentary: Difference between revisions

From Grantha
No edit summary
No edit summary
 
(16 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<!--
<includeonly><div
  Template:Commentary
  class="bhashyam-block"
  ═══════════════════
  data-verse="{{{verse_id|}}}"
  Collapsible commentary block — clean, no background colors.
  data-commentary-id="{{{id|}}}">{{{text|}}}</div></includeonly><noinclude>
  Parameters:
== Template:Bhashyam ==
    verse_id  – e.g. NNS_C01_V01
Renders a primary bhāṣya commentary block as plain running prose.
    name      – slug identifier
No box, no title, no border — flows as body text with left indent.
    label    – display name
    text      – commentary body
-->
<div class="commentary-block mw-collapsible mw-collapsed"
    id="commentary-{{{verse_id}}}-{{{name}}}"
    style="margin:0.8em 0; font-family:'Adishila',serif;
    font-size:28px;">


  <!-- Toggle header — minimal, just a rule and label -->
=== Parameters ===
  <div class="mw-collapsible-toggle commentary-header" style="
{| class="wikitable"
    display:flex;
|-
    align-items:baseline;
! Parameter !! Required !! Description
    gap:0.6em;
|-
    padding:6px 0;
| <code>verse_id</code> || Yes || ID of the parent verse, e.g. <code>ISH_C01_V01</code>
    cursor:pointer;
|-
  ">
| <code>id</code> || No || ID of this commentary block
    <span style="font-size:28px; font-weight:bold; color:#4a3810; font-family:'Adishila',serif;">▶ {{{label}}}</span>
|-
  </div>
| <code>text</code> || Yes || The bhāṣya prose content
|}


  <!-- Body — indented running text -->
=== Example ===
  <div class="commentary-body mw-collapsible-content" style="
<pre>
    padding:0.6em 0 0.8em 2.5em;
{{Bhashyam
    font-family:'Adishila',serif;
| verse_id = ISH_C01_V01
    font-size:28px;
| id      = ISH_C01_V01_B01
    line-height:1.95;
| text     =
     color:#2a1f0a;
ईशस्यावासयोग्यमीशावास्यम् । जगत्यां प्रकृतौ ।
    direction:auto;
}}
    unicode-bidi:plaintext;
</pre>
  ">
[[Category:Templates]]
    {{{text}}}
</noinclude>
  </div>
 
</div>

Latest revision as of 08:53, 10 April 2026

Template:Bhashyam

Renders a primary bhāṣya commentary block as plain running prose. No box, no title, no border — flows as body text with left indent.

Parameters

Parameter Required Description
verse_id Yes ID of the parent verse, e.g. ISH_C01_V01
id No ID of this commentary block
text Yes The bhāṣya prose content

Example

{{Bhashyam
| verse_id = ISH_C01_V01
| id       = ISH_C01_V01_B01
| text     =
ईशस्यावासयोग्यमीशावास्यम् । जगत्यां प्रकृतौ ।
}}