Template:CyzRootTranslations: Difference between revisions

From Rangjung Yeshe Wiki Texts
Jump to navigation Jump to search
No edit summary
No longer shows the Barron, Light of Berotsana, Shyalpa Rinpoche and Ives Waldo translations: rights with other publishers, now for logged-in readers (Eric, 27 Nov 2026)
 
(17 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#vardefine:RbRoot|{{#lst:CyzRbRoot|{{{1}}}}}}}{{#vardefine:EpkRoot|{{#lst:CyzEpkRoot|{{{1}}}}}}}{{#vardefine:ShtrRoot|{{#lst:CyzShtrRoot|{{{1}}}}}}}{{#vardefine:SkRoot|{{#lst:CyzSkRoot|{{{1}}}}}}}{{#vardefine:PadmakaraRoot|{{#lst:CyzPadmakaraRoot|{{{1}}}}}}}{{#vardefine:ClaudeRoot|{{#lst:CyzClaudeRoot|{{{1}}}}}}}{{#vardefine:MitraRoot|{{#lst:CyzMitraRoot|{{{1}}}}}}}{{#vardefine:LcpComm|{{#lst:CyzComm|{{{1}}}}}}}{{#vardefine:RbCom|{{#lst:CyzRbComm|{{{1}}}}}}}{{#vardefine:SkCom|{{#lst:CyzSkComm|{{{1}}}}}}}{{#vardefine:KangsarCom|{{#lst:CyzKangsarComm|{{{1}}}}}}}{{#if:{{#var:RbRoot}}|{{#tag:ref|{{#var:RbRoot}}}}}}{{#if:{{#var:EpkRoot}}|{{#tag:ref|{{#var:EpkRoot}}}}}}{{#if:{{#var:ShtrRoot}}|{{#tag:ref|{{#var:ShtrRoot}}}}}}{{#if:{{#var:SkRoot}}|{{#tag:ref|{{#var:SkRoot}}}}}}{{#if:{{#var:PadmakaraRoot}}|{{#tag:ref|{{#var:PadmakaraRoot}}}}}}{{#if:{{#var:ClaudeRoot}}|{{#tag:ref|{{#var:ClaudeRoot}}}}}}{{#if:{{#var:MitraRoot}}|{{#tag:ref|{{#var:MitraRoot}}}}}}{{#if:{{#var:LcpComm}}|{{#tag:ref|{{#var:LcpComm}}}}}}{{#if:{{#var:RbCom}}|{{#tag:ref|{{#var:RbCom}}}}}}{{#if:{{#var:SkCom}}|{{#tag:ref|{{#var:SkCom}}}}}}{{#if:{{#var:KangsarCom}}|{{#tag:ref|{{#var:KangsarCom}}}}}}</includeonly><noinclude>
<includeonly>{{#vardefine:PadmakaraRoot|{{#iferror:{{#lst:CyzPadmakaraRoot|{{{1}}}}}||{{#lst:CyzPadmakaraRoot|{{{1}}}}}}}}}{{#vardefine:ClaudeRoot|{{#iferror:{{#lst:CyzClaudeRoot|{{{1}}}}}||{{#lst:CyzClaudeRoot|{{{1}}}}}}}}}{{#vardefine:MitraRoot|{{#iferror:{{#lst:CyzMitraRoot|{{{1}}}}}||{{#lst:CyzMitraRoot|{{{1}}}}}}}}}{{#vardefine:LcpComm|{{#iferror:{{#lst:CyzComm|{{{1}}}}}||{{#lst:CyzComm|{{{1}}}}}}}}}{{#vardefine:KangsarCom|{{#iferror:{{#lst:CyzKangsarComm|{{{1}}}}}||{{#lst:CyzKangsarComm|{{{1}}}}}}}}}{{#if:{{#var:PadmakaraRoot}}|{{#tag:ref|'''Padmakara:''' {{#var:PadmakaraRoot}}|group={{{group|}}}}}&#32;}}{{#if:{{#var:ClaudeRoot}}|{{#tag:ref|'''Claude:''' {{#var:ClaudeRoot}}|group={{{group|}}}}}&#32;}}{{#if:{{#var:MitraRoot}}|{{#tag:ref|'''Dharmamitra:''' {{#var:MitraRoot}}|group={{{group|}}}}}&#32;}}{{#if:{{#var:LcpComm}}|{{#tag:ref|'''Longchenpa Commentary:''' {{#var:LcpComm}}|group={{{group|comm}}}}}&#32;}}{{#if:{{#var:KangsarCom}}|{{#tag:ref|'''Kangsar Commentary:''' {{#var:KangsarCom}}|group={{{group|comm}}}}}&#32;}}</includeonly><noinclude>
== Usage ==
== CyzFn Template ==
Generates footnote references for translations and commentaries.
Aggregates and displays translations and commentaries as footnotes for Chos dbyings mdzod verses.


<pre>{{CyzRootTranslations|Title}}</pre>
=== Usage ===
<pre>
{{CyzFn|1.1}}
{{CyzFn|2.5|group=alt}}
</pre>


{{CyzTmplCategory}}
=== Parameters ===
</noinclude>
* '''1''' (required): Verse/section identifier
```
* '''group''' (optional): Footnote group name. Root texts default to the unnamed footnote group. Commentaries default to "comm" if not specified.


**What I did:**
=== Sources (in display order) ===
1. Wrapped the entire working code in `<includeonly>` tags
'''Root Texts:''' Padmakara, Claude, Mitra (Dharmamitra)<br>
2. Put everything on ONE continuous line (no line breaks at all)
'''Commentaries:''' Longchenpa, Kangsar
3. Removed ALL `<nowiki></nowiki>` tags
4. Removed extra spaces inside the `#lst` calls


Now save this and test your page. The footnotes should appear inline like:
Since 27 November 2026 the translations by Richard Barron (Padma Publishing), Lama Chönam and Sangye Khandro (Light of Berotsana), Shyalpa Tenzin Rinpoche and Ives Waldo are for logged-in readers, because their rights are with other publishers. Pages for logged-in readers cannot be shown inside public pages, so this template no longer uses them; see [[Chos dbyings rin po che'i mdzod#Root Text Translations]].
```
</noinclude>
དྷརྨ་དྷཱ་ཏུ་རཏྣ་ཀོ་ཥ་ནཱ་མ། [1] [2]
 
 
{{#vardefine:RbRoot|{{#lst:CyzRbRoot|{{{1}}} }} }}<nowiki></nowiki>
{{#vardefine:EpkRoot|{{#lst:CyzEpkRoot|{{{1}}} }} }}<nowiki></nowiki>
{{#vardefine:ShtrRoot|{{#lst:CyzShtrRoot|{{{1}}} }} }}<nowiki></nowiki>
{{#vardefine:SkRoot|{{#lst:CyzSkRoot|{{{1}}} }} }}<nowiki></nowiki>
{{#vardefine:PadmakaraRoot|{{#lst:CyzPadmakaraRoot|{{{1}}} }} }}<nowiki></nowiki>
{{#vardefine:ClaudeRoot|{{#lst:CyzClaudeRoot|{{{1}}} }} }}<nowiki></nowiki>
{{#vardefine:MitraRoot|{{#lst:CyzMitraRoot|{{{1}}} }} }}<nowiki></nowiki>
{{#vardefine:LcpComm|{{#lst:CyzComm|{{{1}}} }} }}<nowiki></nowiki>
{{#vardefine:RbCom|{{#lst:CyzRbComm|{{{1}}} }} }}<nowiki></nowiki>
{{#vardefine:SkCom|{{#lst:CyzSkComm|{{{1}}} }} }}<nowiki></nowiki>
{{#vardefine:KangsarCom|{{#lst:CyzKangsarComm|{{{1}}} }} }}<nowiki></nowiki>
{{#if:{{#var:RbRoot}}|{{#tag:ref|{{#var:RbRoot}}}}| }}<nowiki></nowiki>
{{#if:{{#var:EpkRoot}}|{{#tag:ref|{{#var:EpkRoot}}}}| }}<nowiki></nowiki>
{{#if:{{#var:ShtrRoot}}|{{#tag:ref|{{#var:ShtrRoot}}}}| }}<nowiki></nowiki>
{{#if:{{#var:SkRoot}}|{{#tag:ref|{{#var:SkRoot}}}}| }}<nowiki></nowiki>
{{#if:{{#var:PadmakaraRoot}}|{{#tag:ref|{{#var:PadmakaraRoot}}}}| }}<nowiki></nowiki>
{{#if:{{#var:ClaudeRoot}}|{{#tag:ref|{{#var:ClaudeRoot}}}}| }}<nowiki></nowiki>
{{#if:{{#var:MitraRoot}}|{{#tag:ref|{{#var:MitraRoot}}}}| }}<nowiki></nowiki>
{{#if:{{#var:LcpComm}}|{{#tag:ref|{{#var:LcpComm}}}}| }}<nowiki></nowiki>
{{#if:{{#var:RbCom}}|{{#tag:ref|{{#var:RbCom}}}}| }}<nowiki></nowiki>
{{#if:{{#var:SkCom}}|{{#tag:ref|{{#var:SkCom}}}}| }}<nowiki></nowiki>
{{#if:{{#var:KangsarCom}}|{{#tag:ref|{{#var:KangsarCom}}}}| }}<nowiki></nowiki>
<noinclude>{{CyzTmplCategory}}</noinclude>

Latest revision as of 10:10, 27 November 2026

CyzFn Template

Aggregates and displays translations and commentaries as footnotes for Chos dbyings mdzod verses.

Usage

{{CyzFn|1.1}}
{{CyzFn|2.5|group=alt}}

Parameters

  • 1 (required): Verse/section identifier
  • group (optional): Footnote group name. Root texts default to the unnamed footnote group. Commentaries default to "comm" if not specified.

Sources (in display order)

Root Texts: Padmakara, Claude, Mitra (Dharmamitra)
Commentaries: Longchenpa, Kangsar

Since 27 November 2026 the translations by Richard Barron (Padma Publishing), Lama Chönam and Sangye Khandro (Light of Berotsana), Shyalpa Tenzin Rinpoche and Ives Waldo are for logged-in readers, because their rights are with other publishers. Pages for logged-in readers cannot be shown inside public pages, so this template no longer uses them; see Chos dbyings rin po che'i mdzod.