Jump to content

Template:Adhyaya: Difference between revisions

From Anandamakaranda
No edit summary
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 3: Line 3:
| chapter_id  = String
| chapter_id  = String
| chapter_num  = String
| chapter_num  = String
| section_num  = String
| title        = String
| title        = String
| title_trans  = String
| has_intro    = Boolean
}}</noinclude>{{#cargo_store: _table=Adhyaya
}}</noinclude>{{#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|}}}
| chapter_num  = {{{chapter_num|}}}
| chapter_num  = {{{chapter_num|}}}
| section_num  = {{{section_num|}}}
| title        = {{{title|}}}
| title        = {{{title|}}}
| title_trans  = {{{title_trans|}}}
}}<noinclude>
| has_intro    = {{#if:{{{intro|}}}|yes|no}}
}}<includeonly>{{#if:{{{title_trans|}}}|<p class="adhyaya-trans">{{{title_trans}}}</p>}}{{#if:{{{intro|}}}|<div class="adhyaya-intro">{{{intro}}}</div>}}</includeonly><noinclude>
== Template:Adhyaya ==
== Template:Adhyaya ==
Stores chapter/section metadata in Cargo. The heading itself is rendered
Stores chapter metadata in Cargo only. The visible heading comes from
by the <code>== heading ==</code> wiki markup before this template call,
== wiki markup == in the page wikitext, which MW's TOC picks up natively.
so MediaWiki's built-in TOC picks it up automatically.
 
=== Parameters ===
{| class="wikitable"
|-
! Parameter !! Description
|-
| <code>document_id</code> || Document ID (e.g. IS, AIT)
|-
| <code>chapter_num</code> || Chapter number (1, 2, 3…)
|-
| <code>title</code> || Section/chapter title in Sanskrit
|-
| <code>title_trans</code> || Optional transliteration
|-
| <code>intro</code> || Optional introductory text
|}
[[Category:Templates]]
[[Category:Templates]]
[[Category:Cargo store templates]]
[[Category:Cargo store templates]]
</noinclude>
</noinclude>

Latest revision as of 11:23, 13 April 2026

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 only. The visible heading comes from == wiki markup == in the page wikitext, which MW's TOC picks up natively.