Jump to content

Template:Adhyaya

From Grantha
Revision as of 07:13, 10 March 2026 by Vaishnavi (talk | contribs) (Created page with "<!-- Template:Adhyaya/doc --> == Usage == Renders a chapter heading with optional collapsible introduction. Auto-generates a stable anchor ID (<code>{document_id}_C{chapter_num}</code>) for cross-referencing. === Example === <pre> {{Adhyaya | document_id = NNS | chapter_num = 01 | title = प्रथमोऽध्यायः | title_trans = Prathamō'dhyāyaḥ | intro = This chapter discusses the luminosity of the Lord's nails. }} </pre> === Linkin...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Usage

Renders a chapter heading with optional collapsible introduction. Auto-generates a stable anchor ID ({document_id}_C{chapter_num}) for cross-referencing.

Example

{{Adhyaya
| document_id  = NNS
| chapter_num  = 01
| title        = प्रथमोऽध्यायः
| title_trans  = Prathamō'dhyāyaḥ
| intro        = This chapter discusses the luminosity of the Lord's nails.
}}

Linking to a chapter

Use [[PageName#{document_id}_C{chapter_num}]] anywhere on the wiki.

Example: Nakha#NNS_C01

Parameters

Parameter Required Description
document_id Yes Short document code, e.g. NNS
chapter_num Yes Zero-padded chapter number, e.g. 01
title Yes Chapter title in Sanskrit / Kannada
title_trans No IAST transliteration of the title
intro No Introductory prose (shown collapsible)

Auto-ID format

{document_id}_C{chapter_num} → e.g. NNS_C01

Cargo table

Stores to table Adhyaya. To initialise the table, run: Special:CargoTables → Recreate table for Adhyaya.

Cargo table declaration

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