|
|
| (One intermediate revision by the same user not shown) |
| Line 11: |
Line 11: |
| | section_num = {{{section_num|}}} | | | section_num = {{{section_num|}}} |
| | title = {{{title|}}} | | | title = {{{title|}}} |
| }}<includeonly><div class="adhyaya-block" id="{{{document_id|}}}_C{{{chapter_num|}}}{{#if:{{{section_num|}}}|_S{{{section_num|}}}}}"><h1 class="adhyaya-heading"><span class="mw-headline" id="{{{document_id|}}}_C{{{chapter_num|}}}{{#if:{{{section_num|}}}|_S{{{section_num|}}}}}}">{{{title|}}}</span></h1></div></includeonly><noinclude> | | }}<noinclude> |
| == Template:Adhyaya == | | == Template:Adhyaya == |
| Renders the chapter/section heading as h1.adhyaya-heading (black, large)
| | Stores chapter metadata in Cargo only. The visible heading comes from |
| matching the reference site structure where chapter titles are prominent h1
| | == wiki markup == in the page wikitext, which MW's TOC picks up natively. |
| headings. Adhikarana (sub-section) headings use === wiki markup (h2/h3, orange).
| |
| | |
| The mw-headline span registers this heading with MW's TOC generator.
| |
| The id= matches the XML chapter id for [[#BGB_C01|anchor]] links.
| |
| | |
| === Parameters ===
| |
| {| class="wikitable"
| |
| |-
| |
| ! Parameter !! Description
| |
| |-
| |
| | document_id || Document ID (e.g. BGB, BS)
| |
| |-
| |
| | chapter_num || Chapter number (1, 2, 3...)
| |
| |-
| |
| | section_num || Section/pada number (optional, for BS padas)
| |
| |-
| |
| | title || Chapter title in Sanskrit
| |
| |}
| |
| [[Category:Templates]] | | [[Category:Templates]] |
| [[Category:Cargo store templates]] | | [[Category:Cargo store templates]] |
| </noinclude> | | </noinclude> |