|
|
| Line 1: |
Line 1: |
| | | <noinclude> |
| <ninclude> | |
| {{#cargo_declare: _table=Nyaya | | {{#cargo_declare: _table=Nyaya |
| | document_id = String | | | document_id = String |
| Line 14: |
Line 13: |
| Template:Nyaya | | Template:Nyaya |
| ══════════════ | | ══════════════ |
| Renders a collapsible Nyāya (reasoning / argument) block. | | Renders a Nyāya (reasoning / argument) block as clean running text. |
| Visually distinct from Commentary — uses a blue-steel accent.
| |
| | |
| Parameters: | | Parameters: |
| document_id – e.g. NNS (required) | | document_id, chapter_id, nyaya_num, title, title_trans, |
| chapter_id – e.g. NNS_C01 (required)
| | claim, body, source_verse |
| nyaya_num – e.g. 01 (required, zero-padded within chapter)
| | Auto-ID: {chapter_id}_NY{nyaya_num} |
| title – Short title of the Nyāya (required)
| |
| title_trans – IAST transliteration (optional)
| |
| claim – The proposition being argued (optional) | |
| body – Full reasoning / argument text (required)
| |
| source_verse – verse_id this Nyāya is tied to (optional, for cross-ref)
| |
| | |
| Auto-ID format: {chapter_id}_NY{nyaya_num} | |
| Example: NNS_C01_NY01
| |
| | |
| Usage:
| |
| {{Nyaya
| |
| | document_id = NNS
| |
| | chapter_id = NNS_C01
| |
| | nyaya_num = 01
| |
| | title = नखस्य दीप्तिः
| |
| | title_trans = Nakhasya Dīptiḥ
| |
| | claim = The nails of the Lord are self-luminous.
| |
| | body = यतः श्रुतिः प्रमाणम्...
| |
| | source_verse = NNS_C01_V01
| |
| }}
| |
| --> | | --> |
| <div | | <div class="nyaya-block" id="{{{chapter_id}}}_NY{{{nyaya_num}}}" style="margin:2em 0; font-family:'Adishila',serif;"> |
| class="nyaya-block mw-collapsible mw-collapsed"
| |
| id="{{{chapter_id}}}_NY{{{nyaya_num}}}"
| |
| style="margin:1.2em 0;font-family:'Adishila',serif;">
| |
| | |
| <!-- Header (always visible, acts as toggle) -->
| |
| <div
| |
| class="mw-collapsible-toggle nyaya-header"
| |
| style="
| |
| display:flex;
| |
| align-items:center;
| |
| gap:8px;
| |
| background:#eaf0f6;
| |
| border-left:4px solid #3a6b9e;
| |
| padding:7px 12px;
| |
| cursor:pointer;
| |
| font-weight:bold;
| |
| font-family:'Adishila',serif;">
| |
| | |
| <!-- Type badge -->
| |
| <span class="nyaya-badge" style="
| |
| font-size:0.72em;
| |
| font-weight:bold;
| |
| color:#fff;
| |
| background:#3a6b9e;
| |
| padding:2px 8px;
| |
| border-radius:3px;
| |
| letter-spacing:0.04em;
| |
| white-space:nowrap;">
| |
| ⚖ Nyāya
| |
| </span>
| |
| | |
| <!-- Auto-ID chip -->
| |
| <span class="nyaya-id" style="
| |
| font-size:0.7em;
| |
| color:#3a6b9e;
| |
| background:#dce8f5;
| |
| border:1px solid #b0cce6;
| |
| padding:1px 7px;
| |
| border-radius:10px;
| |
| font-family:monospace;
| |
| white-space:nowrap;">
| |
| {{{chapter_id}}}_NY{{{nyaya_num}}}
| |
| </span>
| |
|
| |
|
| <!-- Title -->
| | <!-- Label row --> |
| <span class="nyaya-title" style="
| | <p style="font-size:13px; letter-spacing:0.1em; text-transform:uppercase; color:#aaa; margin:0 0 0.3em; font-family:monospace;"> |
| font-size:1em;
| | ⚖ Nyāya · |
| color:#1a2e40;
| | <a href="#{{{chapter_id}}}_NY{{{nyaya_num}}}" style="color:#aaa; text-decoration:none;">{{{chapter_id}}}_NY{{{nyaya_num}}}</a> |
| flex:1;">
| | {{#if:{{{source_verse|}}}| · <a href="#{{{source_verse}}}" style="color:#aaa; text-decoration:none;">↗ {{{source_verse}}}</a>}} |
| {{{title}}}{{#if:{{{title_trans|}}}|
| | </p> |
| <span style="font-size:0.82em;font-weight:normal;color:#5a7a94;font-style:italic;margin-left:6px;">{{{title_trans}}}</span>
| |
| }}
| |
| </span>
| |
|
| |
|
| {{#if:{{{source_verse|}}}|
| | <!-- Title --> |
| <a href="#{{{source_verse}}}"
| | <h4 style="font-size:24px; font-weight:bold; color:#1a2e40; margin:0 0 0.2em; font-family:'Adishila',serif;"> |
| title="Jump to source verse {{{source_verse}}}"
| | {{{title}}}{{#if:{{{title_trans|}}}| |
| style="font-size:0.7em;color:#3a6b9e;text-decoration:none;opacity:0.8;white-space:nowrap;">
| | <span style="font-size:18px; font-weight:normal; font-style:italic; color:#5a7a94; margin-left:0.5em;">{{{title_trans}}}</span> |
| ↗ {{{source_verse}}}
| |
| </a>
| |
| }} | | }} |
| | </h4> |
|
| |
|
| <!-- Permalink -->
| | {{#if:{{{claim|}}}| |
| <a href="#{{{chapter_id}}}_NY{{{nyaya_num}}}"
| | <!-- Proposition — indented italic --> |
| title="Link to this Nyāya"
| | <p style="font-size:18px; font-style:italic; color:#2a3f52; margin:0.6em 0 0.8em 2em; line-height:1.8; font-family:'Adishila',serif;"> |
| style="font-size:0.7em;color:#3a6b9e;text-decoration:none;opacity:0.6;">
| | {{{claim}}} |
| ¶
| | </p> |
| </a>
| | }} |
| </div>
| |
| | |
| <!-- Collapsible body -->
| |
| <div class="mw-collapsible-content nyaya-body" style=" | |
| background:#f5f9fd;
| |
| border:1px solid #b0cce6;
| |
| border-top:none;
| |
| padding:10px 14px;
| |
| font-family:'Adishila',serif;
| |
| font-size:1em;
| |
| line-height:1.9;
| |
| color:#1a2e40;">
| |
| | |
| {{#if:{{{claim|}}}|
| |
| <!-- Claim / proposition highlight -->
| |
| <div class="nyaya-claim" style="
| |
| background:#dce8f5;
| |
| border-left:3px solid #3a6b9e;
| |
| padding:6px 12px;
| |
| margin-bottom:10px;
| |
| font-style:italic;
| |
| font-size:0.95em;
| |
| color:#1a2e40;
| |
| border-radius:0 3px 3px 0;">
| |
| <span style="font-size:0.72em;font-weight:bold;color:#3a6b9e;display:block;margin-bottom:2px;text-transform:uppercase;letter-spacing:0.06em;">Proposition</span>
| |
| {{{claim}}}
| |
| </div>
| |
| }}
| |
| | |
| <!-- Main reasoning body -->
| |
| <div class="nyaya-reasoning" style="
| |
| direction:auto;
| |
| unicode-bidi:plaintext;">
| |
| {{{body}}}
| |
| </div>
| |
|
| |
|
| | <!-- Reasoning body --> |
| | <div style="font-size:18px; line-height:1.95; color:#1a1a1a; padding-left:1.5em; direction:auto; unicode-bidi:plaintext; font-family:'Adishila',serif;"> |
| | {{{body}}} |
| </div> | | </div> |
|
| |
|
| </div> | | </div> |
| <!-- Cargo store -->
| |
| {{#cargo_store: _table=Nyaya | | {{#cargo_store: _table=Nyaya |
| | document_id = {{{document_id|}}} | | | document_id = {{{document_id|}}} |
| Line 160: |
Line 57: |
| | claim = {{{claim|}}} | | | claim = {{{claim|}}} |
| | source_verse = {{{source_verse|}}} | | | source_verse = {{{source_verse|}}} |
| }}<!--store only--> | | }} |
This template defines the table "Nyaya". View table. A replacement table has been generated for this table; View replacement table.
⚖ Nyāya ·
<a href="#{{{chapter_id}}}_NY{{{nyaya_num}}}" style="color:#aaa; text-decoration:none;">{{{chapter_id}}}_NY{{{nyaya_num}}}</a>
{{{title}}}