Template:Text: Difference between revisions
From Dudjom Wiki
VSCode edit |
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 |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly>__NOTOC__ | <includeonly>__NOTOC__{{#ifeq: {{{ subclass | }}} | Karchags | ||
| <div class="top-blue-links d-flex justify-content-center">{{#ask: [[Category:Tibetan Volumes]][[collectiontitle::{{{ collectiontitle | }}}]][[volumenumber::{{{ volumenumber | }}}]] | | <div class="top-blue-links d-flex justify-content-center">{{#ask: [[Category:Tibetan Volumes]][[collectiontitle::{{{ collectiontitle | }}}]][[volumenumber::{{{ volumenumber | }}}]] | ||
|limit=1 | |limit=1 | ||
| 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 | |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 | }}} | ||
|{{#ask: [[Category:Tibetan Texts]][[collectiontitle::{{{ collectiontitle | }}}]][[volumenumber::{{{ volumenumber | }}}]][[textnuminvol::{{{ textnuminvol | }}}]][[IsSubText::false]] | |||
|limit=1 | |||
|searchlabel= | |||
|link=none | |||
|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 | |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 75: | Line 84: | ||
! Location | ! Location | ||
{{!}} [[{{{ collectiontitle | }}}]] <br> Volume '''{{#expr:{{{ volumenumber | }}}}}''', {{#if: {{{ textsubnumber | }}} | {{!}} [[{{{ collectiontitle | }}}]] <br> Volume '''{{#expr:{{{ volumenumber | }}}}}''', {{#if: {{{ 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 358: | Line 367: | ||
|tertonnamewylie={{{ tertonnamewylie | }}}|+sep=; | |tertonnamewylie={{{ tertonnamewylie | }}}|+sep=; | ||
|textnuminvol={{#ifeq:{{{ subclass | }}}|Karchags||{{{ 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 407: | Line 420: | ||
|[[Category:@@@]] | |[[Category:@@@]] | ||
| | | | ||
}}{{#default_form:Text}}</includeonly><noinclude>[[Category:Custom Templates]]</noinclude> | }}{{#default_form:Text}}{{#widget:ToggleFolioNumbers}}</includeonly><noinclude>[[Category:Custom Templates]]</noinclude> | ||