Template:Khyentse Metadata: Difference between revisions

From Khyentse Lineage - A Tsadra Foundation Project
((by SublimeText.Mediawiker))
((by SublimeText.Mediawiker))
Line 1: Line 1:
<includeonly>__NOTOC__{{#ifeq: {{{ subclass | }}} | Karchags  
<includeonly>__NOTOC__{{#ifeq: {{{ subclass | }}} | Karchags  
| <div class="top-blue-links">[[{{#replaceset:{{PAGENAME}}|/-Karchag/=}}|<i class="fa-duotone fa-angles-left mr-2"></i> Back to Volume Page]]</div>
| <div class="top-blue-links">[[{{#replaceset:{{PAGENAME}}|/-Karchag/=}}|<i class="fa-duotone fa-angles-left mr-2"></i> Back to Volume Page]]</div>
| <div class="top-blue-links d-flex justify-content-between my-4">{{#if: {{#ask: [[Category:Tibetan Texts]] [[collectiontitle::{{{ collectiontitle | }}}]] [[volumenumber::{{{ volumenumber | }}}]] [[textnuminvol::{{{ textnuminvol | }}}]] [[textsubnumber::{{#expr:{{{ textsubnumber | }}}-1}}]]}}
| <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}}]]
|limit=1
|limit=1
|searchlabel=
|searchlabel=
|link=none
|link=none
|format=template
|format=template
|template=LinkToPreviousText
|template=LinkToPreviousText
|default=<span class="text-muted">First text in volume.</span>
|default=<span class="text-muted">First text in section.</span>
}}
}}
| {{#if: {{{ textsubnumber | }}}
| {{#ask: [[Category:Tibetan Texts]] [[collectiontitle::{{{ collectiontitle | }}}]] [[volumenumber::{{{ volumenumber | }}}]] [[textnuminvol::{{#expr:{{{ textnuminvol | }}}-1}}]]
|{{#ask: [[Category:Tibetan Texts]] [[collectiontitle::{{{ collectiontitle | }}}]] [[volumenumber::{{{ volumenumber | }}}]] [[textnuminvol::{{#expr:{{{ textnuminvol | }}}-1}}]] [[textsubnumber::{{#show: {{PAGENAME}} |?prevTextMaxSubTextNumber# }}]]
|limit=1
|limit=1
|searchlabel=
|searchlabel=
|link=none
|link=none
|format=template
|format=template
|template={{#ifeq: {{{ collectiontitle | }}} | mkhyen brtse'i bka' 'bum | LinkToPreviousSection | LinkToPreviousText }}
|template=LinkToPreviousText
|default=<span class="text-muted">First {{#ifeq: {{{ collectiontitle | }}} | mkhyen brtse'i bka' 'bum | section | text }} in volume.</span>
|default=<span class="text-muted">First text in volume.</span>
}}
|{{#ask: [[Category:Tibetan Texts]] [[collectiontitle::{{{ collectiontitle | }}}]] [[volumenumber::{{{ volumenumber | }}}]] [[textnuminvol::{{#expr:{{{ textnuminvol | }}}-1}}]]
|limit=1
|searchlabel=
|link=none
|format=template
|template={{#ifeq: {{{ collectiontitle | }}} | mkhyen brtse'i bka' 'bum | LinkToPreviousSection | LinkToPreviousText }}
|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 | }}}]]
}}{{#ask: [[Category:Tibetan Volumes]][[collectiontitle::{{{ collectiontitle | }}}]][[volumenumber::{{{ volumenumber | }}}]]
Line 42: Line 32:
|link=none
|link=none
|format=template
|format=template
|template={{#ifeq: {{{ collectiontitle | }}} | mkhyen brtse'i bka' 'bum | LinkToNextSection | LinkToNextText }}
|template=LinkToNextText
|default=<span class="text-muted">Last {{#ifeq: {{{ collectiontitle | }}} | mkhyen brtse'i bka' 'bum | section | text }} in volume.</span>
|default=<span class="text-muted">Last text in section.</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}}]]

Revision as of 22:32, 2 October 2021