Jump to content

Template:Adhyaya: Difference between revisions

From Grantha
No edit summary
No edit summary
Line 19: Line 19:
     intro        – Introductory prose    (optional)
     intro        – Introductory prose    (optional)
   Auto-ID format: {document_id}_C{chapter_num}
   Auto-ID format: {document_id}_C{chapter_num}
--><div class="adhyaya-block" id="{{{document_id}}}_C{{{chapter_num}}}" style="margin:2em 0 1.5em;font-family:'Adishila',serif;"><div class="adhyaya-heading" style="border-bottom:2px solid #8b6914;padding-bottom:8px;margin-bottom:0.8em;"><div style="display:flex;align-items:center;gap:12px;flex-wrap:wrap;"><span class="adhyaya-num" style="display:inline-flex;align-items:center;font-size:1em;font-weight:bold;color:#fff;background:#8b6914;padding:4px 14px;border-radius:4px;letter-spacing:0.05em;white-space:nowrap;flex-shrink:0;">Chapter {{{chapter_num}}}</span><div style="display:flex;flex-direction:column;gap:2px;"><span class="adhyaya-title" style="font-size:1.8em;font-weight:bold;color:#2a1f0a;line-height:1.2;">{{{title}}}</span>{{#if:{{{title_trans|}}}|<span class="adhyaya-title-trans" style="font-size:1.1em;color:#7a6030;font-style:italic;margin-top:1px;">{{{title_trans}}}</span>|}}</div><span style="margin-left:auto;font-size:0.9em;color:#c9a84c;opacity:0.8;white-space:nowrap;align-self:center;">[[#{{{document_id}}}_C{{{chapter_num}}}|¶ {{{document_id}}}_C{{{chapter_num}}}]]</span></div></div>{{#if:{{{intro|}}}|<div class="adhyaya-intro mw-collapsible mw-collapsed" style="width:100%;box-sizing:border-box;border:1px solid #d4b866;border-radius:0 4px 4px 0;margin-top:0.6em;font-family:'Adishila',serif;font-size:1.1em;line-height:1.9;color:#2a1f0a;"><div class="mw-collapsible-toggle" style="background:#f8f3e8;border-left:4px solid #8b6914;padding:10px 14px;font-size:1em;font-weight:bold;color:#8b6914;text-transform:uppercase;letter-spacing:0.07em;cursor:pointer;">▶ Introduction</div><div class="mw-collapsible-content" style="background:#f8f3e8;border-left:4px solid #8b6914;padding:12px 16px;direction:auto;unicode-bidi:plaintext;">{{{intro}}}</div></div>|}}</div>{{#cargo_store: _table=Adhyaya
-->
<div class="adhyaya-block" id="{{{document_id}}}_C{{{chapter_num}}}" style="margin:3em 0 2em; font-family:'Adishila',serif; text-align:center;">
 
  <p style="font-size:14px; letter-spacing:0.12em; text-transform:uppercase; color:#888; margin:0 0 0.4em;">
    Chapter {{{chapter_num}}}
    <span style="margin-left:1.2em; font-size:12px; font-family:monospace; color:#bbb; text-transform:none; letter-spacing:0;">[[#{{{document_id}}}_C{{{chapter_num}}}|{{{document_id}}}_C{{{chapter_num}}}]]</span>
  </p>
 
  <h2 style="font-size:32px; font-weight:bold; color:#1a1208; margin:0; line-height:1.3; font-family:'Adishila',serif;">
    {{{title}}}
  </h2>
 
  {{#if:{{{title_trans|}}}|
  <p style="font-size:20px; font-style:italic; color:#5a4a28; margin:0.3em 0 0; font-family:'Adishila',serif;">
    {{{title_trans}}}
  </p>
  }}
 
  {{#if:{{{intro|}}}|
  <div style="margin:1.6em auto 0; max-width:720px; text-align:left; font-size:18px; line-height:1.9; color:#2a1f0a; font-family:'Adishila',serif; padding-left:2em; border-left:2px solid #c9a84c;">
    {{{intro}}}
  </div>
  }}
 
</div>
{{#cargo_store: _table=Adhyaya
| document_id  = {{{document_id|}}}
| document_id  = {{{document_id|}}}
| chapter_id  = {{{document_id}}}_C{{{chapter_num}}}
| chapter_id  = {{{document_id}}}_C{{{chapter_num}}}

Revision as of 18:09, 15 March 2026

This template defines the table "Adhyaya". View table. A replacement table has been generated for this table; View replacement table.

Chapter {{{chapter_num}}} [[#{{{document_id}}}_C{{{chapter_num}}}|{{{document_id}}}_C{{{chapter_num}}}]]

{{{title}}}