Template:Text: Difference between revisions

From Dudjom Wiki
(by SublimeText.Mediawiker)
Subtexts (as on DNZ): prev/next stay among subtexts or among master texts; a subtext links back to its master text; Location reads Text N, Subtext M
 
(18 intermediate revisions by 2 users not shown)
Line 9: Line 9:
| <div class="top-blue-links d-flex justify-content-between my-4">{{#if: {{{ textsubnumber | }}}
| <div class="top-blue-links d-flex justify-content-between my-4">{{#if: {{{ textsubnumber | }}}
| {{#ask:  
| {{#ask:  
[[Category:Tibetan Texts]] [[collectiontitle::{{{ collectiontitle | }}}]] [[volumenumber::{{{ volumenumber | }}}]] [[textnuminvol::{{{ textnuminvol | }}}]] [[textsubnumber::{{#expr:{{{ textsubnumber | }}}-1}}]]
[[Category:Tibetan Texts]] [[collectiontitle::{{{ collectiontitle | }}}]] [[volumenumber::{{{ volumenumber | }}}]] [[textnuminvol::{{{ textnuminvol | }}}]] [[textsubnumber::{{#expr:{{{ textsubnumber | }}}-1}}]][[IsSubText::true]]
|limit=1
|limit=1
|searchlabel=
|searchlabel=
Line 15: Line 15:
|format=template
|format=template
|template=LinkToPreviousText
|template=LinkToPreviousText
|default=<span class="text-muted">First text in section.</span>
|default=<span class="text-muted">First subtext.</span>
}}
}}
| {{#ask: [[Category:Tibetan Texts]] [[collectiontitle::{{{ collectiontitle | }}}]] [[volumenumber::{{{ volumenumber | }}}]] [[textnuminvol::{{#expr:{{{ textnuminvol | }}}-1}}]]
| {{#ask: [[Category:Tibetan Texts]] [[collectiontitle::{{{ collectiontitle | }}}]] [[volumenumber::{{{ volumenumber | }}}]] [[textnuminvol::{{#expr:{{{ textnuminvol | }}}-1}}]][[IsSubText::false]]
|limit=1
|limit=1
|searchlabel=
|searchlabel=
Line 25: Line 25:
|default=<span class="text-muted">First {{#ifeq: {{{ collectiontitle | }}} | mkhyen brtse'i bka' 'bum | section | text }} in volume.</span>
|default=<span class="text-muted">First {{#ifeq: {{{ collectiontitle | }}} | mkhyen brtse'i bka' 'bum | section | text }} in volume.</span>
}}
}}
}}{{#ask: [[Category:Tibetan Volumes]][[collectiontitle::{{{ collectiontitle | }}}]][[volumenumber::{{{ volumenumber | }}}]]
}}{{#if: {{{ textsubnumber | }}}
|limit=1
|{{#ask: [[Category:Tibetan Texts]][[collectiontitle::{{{ collectiontitle | }}}]][[volumenumber::{{{ volumenumber | }}}]][[textnuminvol::{{{ textnuminvol | }}}]][[IsSubText::false]]
|searchlabel=
|limit=1
|link=none
|searchlabel=
|format=template
|link=none
|template=LinkToVolume
|format=template
|template=LinkToMasterText
}}
|{{#ask: [[Category:Tibetan Volumes]][[collectiontitle::{{{ collectiontitle | }}}]][[volumenumber::{{{ volumenumber | }}}]]
|limit=1
|searchlabel=
|link=none
|format=template
|template=LinkToVolume
}}
}}{{#if: {{{ textsubnumber | }}}  
}}{{#if: {{{ textsubnumber | }}}  
| {{#ask:  
| {{#ask:  
[[Category:Tibetan Texts]] [[collectiontitle::{{{ collectiontitle | }}}]] [[volumenumber::{{{ volumenumber | }}}]] [[textnuminvol::{{{ textnuminvol | }}}]] [[textsubnumber::{{#expr:{{{ textsubnumber | }}}+1}}]]
[[Category:Tibetan Texts]] [[collectiontitle::{{{ collectiontitle | }}}]] [[volumenumber::{{{ volumenumber | }}}]] [[textnuminvol::{{{ textnuminvol | }}}]] [[textsubnumber::{{#expr:{{{ textsubnumber | }}}+1}}]][[IsSubText::true]]
|limit=1
|limit=1
|searchlabel=
|searchlabel=
Line 39: Line 48:
|format=template
|format=template
|template=LinkToNextText
|template=LinkToNextText
|default=<span class="text-muted">Last text in section.</span>
|default=<span class="text-muted">Last subtext.</span>
}}
}}
| {{#ask: [[Category:Tibetan Texts]] [[collectiontitle::{{{ collectiontitle | }}}]] [[volumenumber::{{{ volumenumber | }}}]] [[textnuminvol::{{#expr:{{{ textnuminvol | }}}+1}}]]
| {{#ask: [[Category:Tibetan Texts]] [[collectiontitle::{{{ collectiontitle | }}}]] [[volumenumber::{{{ volumenumber | }}}]] [[textnuminvol::{{#expr:{{{ textnuminvol | }}}+1}}]][[IsSubText::false]]
|limit=1
|limit=1
|searchlabel=
|searchlabel=
Line 62: Line 71:


{{#ifeq: {{{ subclass | }}} | Karchags  
{{#ifeq: {{{ subclass | }}} | Karchags  
| {{#if:{{{ pdflink | }}}
| {{#ifexist:{{{ pdflink | }}}
|[[{{{ pdflink | }}}|page=1|1000px|class=tsdwiki-depth-1 rounded mt-3 mx-auto|link={{filepath:{{PAGENAME:{{{ pdflink | }}}}}}}]]
|[[{{{ pdflink | }}}|page=1|1000px|class=tsdwiki-depth-1 rounded mt-3 mx-auto|link={{filepath:{{PAGENAME:{{{ pdflink | }}}}}}}]]
|
|
Line 71: Line 80:
! Wylie title
! Wylie title
{{!}} ''{{{ fulltitle | }}}''
{{!}} ''{{{ fulltitle | }}}''
{{!}} rowspan="3" class="border-left" style="width: 485px;" {{!}} [[{{{ pdflink | }}}|page=1|x110px|class=tsdwiki-depth-0|link={{filepath:{{PAGENAME:{{{ pdflink | }}}}}}}]]
{{!}} rowspan="3" class="border-left" style="width: 485px;" {{!}} {{#ifexist:{{{ pdflink | }}}|[[{{{ pdflink | }}}|page=1|x110px|class=tsdwiki-depth-0|link={{filepath:{{PAGENAME:{{{ pdflink | }}}}}}}]]|}}
{{!}}-
{{!}}-
! Location
! Location
{{!}} [[{{{ collectiontitle | }}}]] <br> Volume '''{{#expr:{{{ volumenumber | }}}}}''', {{#if: {{{ textsubnumber | }}}  
{{!}} [[{{{ collectiontitle | }}}]] <br> Volume '''{{#expr:{{{ volumenumber | }}}}}''', {{#if: {{{ textsubnumber | }}}  
| sde tshan '''{{#expr:{{{ textnuminvol | }}}}}''', Text '''{{#expr:{{{ textsubnumber | }}}}}'''
| Text '''{{#expr:{{{ textnuminvol | }}}}}''', Subtext '''{{#expr:{{{ textsubnumber | }}}}}'''
| {{#ifeq: {{{ collectiontitle | }}} | mkhyen brtse'i bka' 'bum | sde tshan | Text }} '''{{#expr:{{{ textnuminvol | }}}}}'''
| {{#ifeq: {{{ collectiontitle | }}} | mkhyen brtse'i bka' 'bum | sde tshan | Text }} '''{{#expr:{{{ textnuminvol | }}}}}'''
}}, Pages '''{{{ pagenumbers | }}}''' (Folios '''{{{ beginfolioline | }}}''' to '''{{{ endfolioline | }}}''')
}}, Pages '''{{{ pagenumbers | }}}''' (Folios '''{{{ beginfolioline | }}}''' to '''{{{ endfolioline | }}}''')
Line 81: Line 90:
! Author
! Author
{{!}} {{TibIL|[[{{{ author | }}}|{{{ authortib | }}}]]}}
{{!}} {{TibIL|[[{{{ author | }}}|{{{ authortib | }}}]]}}
{{!}}-
! Citation
{{!}} colspan="2" {{!}} {{{ citation | }}}
{{!}}-
! Side notes
{{!}} colspan="1" {{!}} {{#if: {{{ rectonotes | }}} | '''Recto:''' {{{ rectonotes | }}} | }} &nbsp; {{#if: {{{ versonotes | }}} | '''Verso:''' {{{ versonotes | }}} | }}
{{!}}-
{{!}}-
{{!}} colspan="3" class="text-center" style="padding-right: 1rem !important;" {{!}} <span class="top-blue-links mw-customtoggle-moreDetails">Less details <i class="fa-duotone fa-angles-down ml-1"></i></span><span class="top-blue-links mw-customtoggle-moreDetails d-none">More details <i class="fa-duotone fa-angles-up ml-1"></i></span>{{#if: {{{ sourcerevealer | }}} | <br>
{{!}} colspan="3" class="text-center" style="padding-right: 1rem !important;" {{!}} <span class="top-blue-links mw-customtoggle-moreDetails">More details <i class="fa-duotone fa-angles-down ml-1"></i></span><span class="top-blue-links mw-customtoggle-moreDetails d-none">More details <i class="fa-duotone fa-angles-up ml-1"></i></span>{{#if: {{{ sourcerevealer | }}} | <br>
{{!}}- class="mw-collapsible" id="mw-customcollapsible-moreDetails"
{{!}}- class="mw-collapsible mw-collapsed" id="mw-customcollapsible-moreDetails"
! Tertön
! Tertön
{{!}} colspan="2" {{!}} {{#arraymap:{{{ sourcerevealertib | }}}
{{!}} colspan="2" {{!}} {{#arraymap:{{{ sourcerevealertib | }}}
Line 89: Line 104:
|@@@
|@@@
|{{TibIL|@@@}}
|{{TibIL|@@@}}
|,\s
|,\\s
}} ({{#arraymap:{{{ sourcerevealer | }}}
}} ({{#arraymap:{{{ sourcerevealer | }}}
|;
|;
|@@@
|@@@
|[[@@@]]
|[[@@@]]
|,\s
|,\\s
}}) | }}{{#if: {{{ sourceauthor | }}} | <br>
}}) | }}{{#if: {{{ sourceauthor | }}} | <br>
{{!}}- class="mw-collapsible" id="mw-customcollapsible-moreDetails"
{{!}}- class="mw-collapsible mw-collapsed" id="mw-customcollapsible-moreDetails"
! Source Author(s)
! Source Author(s)
{{!}} colspan="2" {{!}} {{#arraymap:{{{ sourceauthortib | }}}
{{!}} colspan="2" {{!}} {{#arraymap:{{{ sourceauthortib | }}}
Line 102: Line 117:
|@@@
|@@@
|{{TibIL|@@@}}
|{{TibIL|@@@}}
|,\s
|,\\s
}} ({{#arraymap:{{{ sourceauthor | }}}
}} ({{#arraymap:{{{ sourceauthor | }}}
|;
|;
|@@@
|@@@
|[[@@@]]
|[[@@@]]
|,\s
|,\\s
}}) | }}{{#if: {{{ associatedpeople | }}} | <br>
}}) | }}{{#if: {{{ associatedpeople | }}} | <br>
{{!}}- class="mw-collapsible" id="mw-customcollapsible-moreDetails"
{{!}}- class="mw-collapsible mw-collapsed" id="mw-customcollapsible-moreDetails"
! Associated People
! Associated People
{{!}} colspan="2" {{!}} {{#arraymap:{{{ associatedpeopletib | }}}
{{!}} colspan="2" {{!}} {{#arraymap:{{{ associatedpeopletib | }}}
Line 115: Line 130:
|@@@
|@@@
|{{TibIL|@@@}}
|{{TibIL|@@@}}
|,\s
|,\\s
}} ({{#arraymap:{{{ associatedpeople | }}}
}} ({{#arraymap:{{{ associatedpeople | }}}
|;
|;
|@@@
|@@@
|[[@@@]]
|[[@@@]]
|,\s
|,\\s
}}) | }}
}}) | }}
{{!}}- class="mw-collapsible" id="mw-customcollapsible-moreDetails"
{{!}}- class="mw-collapsible mw-collapsed" id="mw-customcollapsible-moreDetails"
! Citation
{{!}} colspan="2" {{!}} {{{ citation | }}}
{{!}}- class="mw-collapsible" id="mw-customcollapsible-moreDetails"
! Genre
! Genre
{{!}} colspan="2" {{!}} {{#arraymap: {{{ tibgenre | }}}
{{!}} colspan="2" {{!}} {{#arraymap: {{{ tibgenre | }}}
Line 133: Line 145:
|&nbsp;&nbsp;·&nbsp;&nbsp;
|&nbsp;&nbsp;·&nbsp;&nbsp;
}}{{#if: {{{ cycle | }}} | <br>
}}{{#if: {{{ cycle | }}} | <br>
{{!}}- class="mw-collapsible" id="mw-customcollapsible-moreDetails"
{{!}}- class="mw-collapsible mw-collapsed" id="mw-customcollapsible-moreDetails"
! Cycle
! Cycle
{{!}} colspan="2" {{!}} [[{{{ cycle | }}}|{{TibIL|{{{ cycletib | }}}}} (''{{lc:{{{ cycle | }}}}}'')]] | }}{{#if: {{{ parentcycle | }}} | <br>
{{!}} colspan="2" {{!}} [[{{{ cycle | }}}|{{TibIL|{{{ cycletib | }}}}} (''{{lc:{{{ cycle | }}}}}'')]] | }}{{#if: {{{ parentcycle | }}} | <br>
{{!}}- class="mw-collapsible" id="mw-customcollapsible-moreDetails"
{{!}}- class="mw-collapsible mw-collapsed" id="mw-customcollapsible-moreDetails"
! Parent Cycle
! Parent Cycle
{{!}} colspan="2" {{!}} [[{{{ parentcycle | }}}|{{TibIL|{{{ parentcycletib | }}}}} (''{{lc:{{{ parentcycle | }}}}}'')]] | }}{{#if: {{{ deity | }}} | <br>
{{!}} colspan="2" {{!}} [[{{{ parentcycle | }}}|{{TibIL|{{{ parentcycletib | }}}}} (''{{lc:{{{ parentcycle | }}}}}'')]] | }}{{#if: {{{ deity | }}} | <br>
{{!}}- class="mw-collapsible" id="mw-customcollapsible-moreDetails"
{{!}}- class="mw-collapsible mw-collapsed" id="mw-customcollapsible-moreDetails"
! Deity
! Deity
{{!}} colspan="2" {{!}} {{#arraymap:{{{ deity | }}}
{{!}} colspan="2" {{!}} {{#arraymap:{{{ deity | }}}
Line 145: Line 157:
|@@@
|@@@
         |[[@@@]]
         |[[@@@]]
|,\s
|,\\s
}} | }} {{#ask: [[Category:Tibetan Volumes]][[collectiontitle::{{{ collectiontitle | }}}]][[volumenumber::{{{ volumenumber | }}}]][[dkarchagpage::+]]
}} | }} {{#ask: [[Category:Tibetan Volumes]][[collectiontitle::{{{ collectiontitle | }}}]][[volumenumber::{{{ volumenumber | }}}]][[dkarchagpage::+]]
|?dkarchagpage
|?dkarchagpage
Line 151: Line 163:
|searchlabel=  
|searchlabel=  
|intro=<br>
|intro=<br>
{{!}}- class="mw-collapsible" id="mw-customcollapsible-moreDetails"
{{!}}- class="mw-collapsible mw-collapsed" id="mw-customcollapsible-moreDetails"
! Karchag page
! Karchag page
{{!}} colspan="2" {{!}}  
{{!}} colspan="2" {{!}}  
Line 157: Line 169:
|template=ShowProp
|template=ShowProp
|default={{#if: {{{ dkarchagpage | }}} |
|default={{#if: {{{ dkarchagpage | }}} |
{{!}}- class="mw-collapsible" id="mw-customcollapsible-moreDetails"
{{!}}- class="mw-collapsible mw-collapsed" id="mw-customcollapsible-moreDetails"
! Karchag page
! Karchag page
{{!}} colspan="2" {{!}} {{{ dkarchagpage | }}} | }}
{{!}} colspan="2" {{!}} {{{ dkarchagpage | }}} | }}
}}{{#if: {{{ recensionlink | }}} | <br>
}}{{#if: {{{ recensionlink | }}} | <br>
{{!}}- class="mw-collapsible" id="mw-customcollapsible-moreDetails"
{{!}}- class="mw-collapsible mw-collapsed" id="mw-customcollapsible-moreDetails"
! Recension Link
! Recension Link
{{!}} colspan="2" {{!}} ''Other Versions on this site'': {{#show:{{PAGENAME}}|?recensionlink}} | }}{{#if: {{{ rtzlink | }}} | <br>
{{!}} colspan="2" {{!}} ''Other Versions on this site'': {{#show:{{PAGENAME}}|?recensionlink}} | }}{{#if: {{{ rtzlink | }}} | <br>
{{!}}- class="mw-collapsible" id="mw-customcollapsible-moreDetails"
{{!}}- class="mw-collapsible mw-collapsed" id="mw-customcollapsible-moreDetails"
! RTZ
! RTZ
{{!}} colspan="2" {{!}} ''In the Rinchen Terdzö'': '''https://rtz.tsadra.org/index.php/{{{ rtzlink | }}}''' | }}{{#if: {{{ dnzlink | }}} | <br>
{{!}} colspan="2" {{!}} ''In the Rinchen Terdzö'': '''https://rtz.tsadra.org/index.php/{{{ rtzlink | }}}''' | }}{{#if: {{{ dnzlink | }}} | <br>
{{!}}- class="mw-collapsible" id="mw-customcollapsible-moreDetails"
{{!}}- class="mw-collapsible mw-collapsed" id="mw-customcollapsible-moreDetails"
! DNZ
! DNZ
{{!}} colspan="2" {{!}} ''In the Damngak Dzö'': '''https://dnz.tsadra.org/index.php/{{{ dnzlink | }}}''' | }}{{#if: {{{ lotsawalink | }}} | <br>
{{!}} colspan="2" {{!}} ''In the Damngak Dzö'': '''https://dnz.tsadra.org/index.php/{{{ dnzlink | }}}''' | }}{{#if: {{{ lotsawalink | }}} | <br>
{{!}}- class="mw-collapsible" id="mw-customcollapsible-moreDetails"
{{!}}- class="mw-collapsible mw-collapsed" id="mw-customcollapsible-moreDetails"
! Lotsawa House Link
! Lotsawa House Link
{{!}} colspan="2" {{!}} {{{ lotsawalink | }}}  | }}{{#if: {{{ colophontib | }}} | <br>
{{!}} colspan="2" {{!}} {{{ lotsawalink | }}}  | }}{{#if: {{{ colophontib | }}} | <br>
{{!}}- class="mw-collapsible" id="mw-customcollapsible-moreDetails"
{{!}}- class="mw-collapsible mw-collapsed" id="mw-customcollapsible-moreDetails"
! rowspan="2" class="border-right" {{!}} Colophon
! rowspan="2" class="border-right" {{!}} Colophon
{{!}} colspan="2" class="text-120" {{!}}
{{!}} colspan="2" class="text-120" {{!}}
{{{ colophontib | }}}
{{{ colophontib | }}}
{{!}}- class="mw-collapsible" id="mw-customcollapsible-moreDetails"
{{!}}- class="mw-collapsible mw-collapsed" id="mw-customcollapsible-moreDetails"
{{!}} colspan="2" {{!}}  
{{!}} colspan="2" {{!}}  
{{{ colophonwylie | }}} | }}{{#if: {{{ archivistnotes | }}} | <br>
{{{ colophonwylie | }}} | }}{{#if: {{{ archivistnotes | }}} | <br>
{{!}}- class="mw-collapsible" id="mw-customcollapsible-moreDetails"
{{!}}- class="mw-collapsible mw-collapsed" id="mw-customcollapsible-moreDetails"
! Notes
! Notes
{{!}} {{{ archivistnotes | }}} | }}
{{!}} {{{ archivistnotes | }}} | }}
Line 212: Line 224:


| }} |#default= }}{{#set:
| }} |#default= }}{{#set:
|Tsaglis={{#ask:[[Category:Tsaglis]][[Category:{{PAGENAME}}]]|sep=;|limit=500|link=none}}|+sep=;
|Mandalas={{#ask:[[Category:Mandalas]][[Category:{{PAGENAME}}]]|sep=;|limit=500|link=none}}|+sep=;
|sectionheading={{{ sectionheading | }}}  
|sectionheading={{{ sectionheading | }}}  
|lotsawalink={{{ lotsawalink | }}}|+sep=;
|lotsawalink={{{ lotsawalink | }}}|+sep=;
Line 312: Line 326:
|place={{{ place | }}}
|place={{{ place | }}}
|placetib={{{ placetib | }}}
|placetib={{{ placetib | }}}
|prevTextMaxSubTextNumber={{#ask: [[Category:Tibetan Texts]][[collectiontitle::{{{ collectiontitle | }}}]][[volumenumber::{{{ volumenumber | }}}]][[textnuminvol::{{#expr:{{{ textnuminvol | }}}-1}}]]
|prevTextMaxSubTextNumber={{#ifeq:{{{ subclass | }}}|Karchags||{{#ask: [[Category:Tibetan Texts]][[collectiontitle::{{{ collectiontitle | }}}]][[volumenumber::{{{ volumenumber | }}}]][[textnuminvol::{{#expr:{{{ textnuminvol | }}}-1}}]]
|?textsubnumber
|?textsubnumber
|format=max
|format=max
}}
}}}}
|printer={{{ printer | }}}|+sep=;
|printer={{{ printer | }}}|+sep=;
|printertib={{{ printertib | }}}|+sep=;
|printertib={{{ printertib | }}}|+sep=;
Line 352: Line 366:
|tertonnametib={{{ tertonnametib | }}}|+sep=;
|tertonnametib={{{ tertonnametib | }}}|+sep=;
|tertonnamewylie={{{ tertonnamewylie | }}}|+sep=;
|tertonnamewylie={{{ tertonnamewylie | }}}|+sep=;
|textnuminvol={{{ textnuminvol | }}}
|textnuminvol={{#ifeq:{{{ subclass | }}}|Karchags||{{{ textnuminvol | }}}}}
|textsubnumber={{{ textsubnumber | }}}
|textsubnumber={{{ textsubnumber | 0 }}}
|IsSubText={{#if: {{{ textsubnumber | }}}
|true
|false
}}
|thlibnglink={{{ thlibnglink | }}}
|thlibnglink={{{ thlibnglink | }}}
|tibgenre={{{ tibgenre | }}}|+sep=,
|tibgenre={{{ tibgenre | }}}|+sep=,
Line 375: Line 393:
|sabcadcategory={{{ sabcadcategory | }}}
|sabcadcategory={{{ sabcadcategory | }}}
|transmissiontype={{{ transmissiontype | }}}
|transmissiontype={{{ transmissiontype | }}}
|volumepage={{#replaceset:{{PAGENAME}}|/-Karchag/=}}
|volumepage={{#ask:[[Category:Tibetan Volumes]][[collectiontitle::{{{ collectiontitle | }}}]][[volumenumber::{{{ volumenumber | }}}]]|link=none|limit=1|searchlabel=}}
|rtzlink={{{ rtzlink | }}}|+sep=;
|rtzlink={{{ rtzlink | }}}|+sep=;
|InitCategories={{{ InitCategories | }}}
|InitCategories={{{ InitCategories | }}}
Line 402: Line 420:
|[[Category:@@@]]
|[[Category:@@@]]
|
|
}}{{#default_form:Text}}</includeonly><noinclude>[[Category:Custom Templates]]</noinclude>
}}{{#default_form:Text}}{{#widget:ToggleFolioNumbers}}</includeonly><noinclude>[[Category:Custom Templates]]</noinclude>

Latest revision as of 14:14, 11 November 2026