Template:Text: Difference between revisions
From Dudjom Wiki
Store IsSubText, and textsubnumber 0 on master texts (as on DNZ), so volume pages can leave subtexts out |
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 |
||
| 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 | }}}''') | ||