Template:Commentary: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
<!-- | <!-- | ||
Template:Commentary | Template:Commentary | ||
--><includeonly><div | --><includeonly><div | ||
class="commentary-body{{# | class="commentary-body{{#ifeq:{{lc:{{{name|}}}}}|bhashyam| gr-bhashyam|{{#ifeq:{{lc:{{{name|}}}}}|bhashya| gr-bhashyam|{{#if:{{{name|}}}| gr-teeka| gr-bhashyam}}}}}}}" | ||
data-verse="{{{verse_id|}}}" | data-verse="{{{verse_id|}}}" | ||
data-commentary-id="{{{id|}}}" | data-commentary-id="{{{id|}}}" | ||
data-commentary-name="{{lc:{{{name|}}}}}">{{#if:{{{ | data-commentary-name="{{lc:{{{name|}}}}}">{{#if:{{{label|}}}|{{#ifeq:{{lc:{{{name|}}}}}|bhashyam||{{#ifeq:{{lc:{{{name|}}}}}|bhashya||<div class="gr-teeka-title">{{{label|{{{name}}}}}}</div>}}}}}}}}{{#if:{{{text|}}}|{{{text}}}}}</div></includeonly><noinclude> | ||
{{{text|}}}</div></includeonly><noinclude> | |||
== Template:Commentary == | == Template:Commentary == | ||
Renders a commentary block (bhāṣya or ṭīkā) attached to a verse. | Renders a commentary block (bhāṣya or ṭīkā) attached to a verse. | ||
Revision as of 08:30, 10 April 2026
Template:Commentary
Renders a commentary block (bhāṣya or ṭīkā) attached to a verse.
Parameters
| Parameter | Required | Description |
|---|---|---|
verse_id |
Yes | ID of the parent verse, e.g. BS_C01_S01_V01
|
id |
No | ID of this commentary block |
name |
No | Type name. Empty or "Bhashyam" = running prose. Any other value = teeka bubble. |
label |
No | Display label shown as bubble title (defaults to name)
|
text |
Yes | The commentary text content |
Rendering behaviour
- Bhashyam (name= empty, "bhashyam", or "bhashya") — renders as plain flowing prose, same size and font as the rest of the document. No background, no title, no border.
- Teeka / sub-commentary (any other name=) — renders with a mild grey background, the name/label in bold as a title, then the prose below. Same font and size as body text. Always visible — no expand/collapse.
Example: Bhashyam (running text)
{{Commentary
| verse_id = BS_C01_S01_V01
| id = BS_C01_S01_V01_B1
| name = Bhashyam
| text = 'अथ' शब्दो मङ्गलार्थोऽधिकारानन्तर्यार्थश्च ।
}}
Example: Teeka (bubble)
{{Commentary
| verse_id = BS_C01_S01_V01
| id = BS_C01_S01_V01_T1
| name = NyayaDeepika
| label = न्यायदीपिका
| text = धर्मक्षेत्रे इति — धर्मस्य क्षेत्रं धर्मक्षेत्रम् ।
}}