Template:Text: Difference between revisions
From Dudjom Wiki
No edit summary Tag: Reverted |
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 |
||
| (4 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 | |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 81: | Line 90: | ||
! Author | ! Author | ||
{{!}} {{TibIL|[[{{{ author | }}}|{{{ authortib | }}}]]}} | {{!}} {{TibIL|[[{{{ author | }}}|{{{ authortib | }}}]]}} | ||
{{!}}- | {{!}}- | ||
! Citation | ! Citation | ||
| Line 98: | Line 104: | ||
|@@@ | |@@@ | ||
|{{TibIL|@@@}} | |{{TibIL|@@@}} | ||
|,\s | |,\\s | ||
}} ({{#arraymap:{{{ sourcerevealer | }}} | }} ({{#arraymap:{{{ sourcerevealer | }}} | ||
|; | |; | ||
|@@@ | |@@@ | ||
|[[@@@]] | |[[@@@]] | ||
|,\s | |,\\s | ||
}}) | }}{{#if: {{{ sourceauthor | }}} | <br> | }}) | }}{{#if: {{{ sourceauthor | }}} | <br> | ||
{{!}}- class="mw-collapsible mw-collapsed" id="mw-customcollapsible-moreDetails" | {{!}}- class="mw-collapsible mw-collapsed" id="mw-customcollapsible-moreDetails" | ||
| Line 111: | Line 117: | ||
|@@@ | |@@@ | ||
|{{TibIL|@@@}} | |{{TibIL|@@@}} | ||
|,\s | |,\\s | ||
}} ({{#arraymap:{{{ sourceauthor | }}} | }} ({{#arraymap:{{{ sourceauthor | }}} | ||
|; | |; | ||
|@@@ | |@@@ | ||
|[[@@@]] | |[[@@@]] | ||
|,\s | |,\\s | ||
}}) | }}{{#if: {{{ associatedpeople | }}} | <br> | }}) | }}{{#if: {{{ associatedpeople | }}} | <br> | ||
{{!}}- class="mw-collapsible mw-collapsed" id="mw-customcollapsible-moreDetails" | {{!}}- class="mw-collapsible mw-collapsed" id="mw-customcollapsible-moreDetails" | ||
| Line 124: | Line 130: | ||
|@@@ | |@@@ | ||
|{{TibIL|@@@}} | |{{TibIL|@@@}} | ||
|,\s | |,\\s | ||
}} ({{#arraymap:{{{ associatedpeople | }}} | }} ({{#arraymap:{{{ associatedpeople | }}} | ||
|; | |; | ||
|@@@ | |@@@ | ||
|[[@@@]] | |[[@@@]] | ||
|,\s | |,\\s | ||
}}) | }} | }}) | }} | ||
{{!}}- class="mw-collapsible mw-collapsed" id="mw-customcollapsible-moreDetails" | {{!}}- class="mw-collapsible mw-collapsed" id="mw-customcollapsible-moreDetails" | ||
| Line 151: | 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 361: | 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 410: | Line 420: | ||
|[[Category:@@@]] | |[[Category:@@@]] | ||
| | | | ||
}}{{#default_form:Text}}</includeonly><noinclude>[[Category:Custom Templates]]</noinclude> | }}{{#default_form:Text}}{{#widget:ToggleFolioNumbers}}</includeonly><noinclude>[[Category:Custom Templates]]</noinclude> | ||