Template:VerseRow: Difference between revisions
No edit summary |
No edit summary |
||
| Line 5: | Line 5: | ||
| verse_type = {{{verse_type|}}} | | verse_type = {{{verse_type|}}} | ||
| verse_text = {{{verse_text|}}} | | verse_text = {{{verse_text|}}} | ||
| verse_lines = | | verse_lines = {{{verse_lines|}}} | ||
| commentaries = {{#if:{{{commentary1|}}}|{{{commentary1}}}}}{{#if:{{{commentary2|}}}|,{{{commentary2}}}}}{{#if:{{{commentary3|}}}|,{{{commentary3}}}}}{{#if:{{{commentary4|}}}|,{{{commentary4}}}}}{{#if:{{{commentary5|}}}|,{{{commentary5}}}}} | | commentaries = {{#if:{{{commentary1|}}}|{{{commentary1}}}}}{{#if:{{{commentary2|}}}|,{{{commentary2}}}}}{{#if:{{{commentary3|}}}|,{{{commentary3}}}}}{{#if:{{{commentary4|}}}|,{{{commentary4}}}}}{{#if:{{{commentary5|}}}|,{{{commentary5}}}}} | ||
}}<!--store only--> | }}<!--store only--> | ||
Latest revision as of 10:23, 4 June 2026
This template defines the table "Verses". View table. A replacement table has been generated for this table; View replacement table.
All verses in a chapter:
{{#cargo_query:
tables = Verses
| fields = verse_id, verse_type, verse_text
| where = chapter_id = "NNS_C01"
| order by = verse_id ASC
| format = table
}}
All verses that have a specific commentary:
{{#cargo_query:
tables = Verses
| fields = verse_id, commentaries
| where = document_id = "NNS"
AND commentaries HOLDS "balabodhini"
| format = table
}}
Count commentaries per document:
{{#cargo_query:
tables = Verses
| fields = document_id, COUNT(*) = total_verses
| where = commentaries HOLDS "shankarabhashya"
| group by = document_id
| format = table
}}