Jump to content

Template:Adhyaya

From Grantha
Revision as of 06:38, 13 April 2026 by Chandrashekars (talk | contribs)

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

Template:Adhyaya

Stores chapter metadata in Cargo and renders the adhyaya heading.

The h2 with mw-headline span is picked up by MediaWiki's TOC generator automatically — the built-in TOC lists all adhyayas without needing == wiki headings == in the page source.

The id= on both the outer div and the inner span uses the document's chapter id (e.g. BGB_C01) so anchor links like #BGB_C01 work directly.

Parameters

Parameter Description
document_id Document ID (e.g. BGB, BS, NNS)
chapter_num Chapter number (1, 2, 3...)
title Chapter/section title in Sanskrit