Template:BibliographicalItemNavigation: Difference between revisions

From International Robin Hood Bibliography
mNo edit summary
m (Henryfunk moved page Template:SrcNav to Template:BibliographicalItemNavigation without leaving a redirect)
(24 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude><div class="no-img">This template generates the navigation widgets displayed at the foot of item (monograph, paper, article etc.) pages in the Originators section of IRHB. It takes the following parameters:
<noinclude><div class="no-img"><p>This template generates the navigation widgets displayed at the foot of item (monograph, paper, article etc.) pages in the Originators section of IRHB. It takes the following parameters:</p>
* CoOrigs &ndash; co-originators, separated by semicolons.
It is usually transcluded via a boilerplate: monograph, paper, postcard etc.</div></noinclude><includeonly>{{#arraydefine:coorigs|{{{CoOrigs|}}}|;}}{{#vardefine:prioreditions|{{#ask:[[Category:{{#var:FirstUpper}}]][[Utitle::<<{{#show:{{PAGENAME}}|link=none|?Utitle}}]]|format=count}}}}{{#vardefine:othereditions|{{#expr:{{#var:prioreditions}}+{{#ask: [[Category:{{#var:FirstUpper}}]][[Utitle::>>{{#show:{{PAGENAME}}|link=none|?Utitle}}]]|format=count}}}}}}{{#vardefine:cur|{{#ifexpr:{{#var:othereditions}}>2|[[{{#var:FirstEdition}}]]|}}}}<!--CATLINKS START--><div id="dplcatlinks" class="subcategory">
<!--Editions of title - Start-->{{#ifexpr:{{#var:othereditions}}=0||{{#ask:[[Category:{{#var:FirstUpper}}]][[Utitle::<<{{#show:{{PAGENAME}}| link=none|?Utitle}}]]|order=descending|searchlabel=|format=template|introtemplate=BeforeNav|template=Nav|outrotemplate=Previous|link=none|limit=1|sort=Utitle}}<span class="navtxt">Editions/impressions of title</span>{{#ask: [[Category:{{#var:FirstUpper}}]][[Utitle::>>{{#show:{{PAGENAME}}|?Utitle}}]]|order=ascending|searchlabel=|format=template|introtemplate=BeforeNav|template=Nav|outrotemplate=Next|link=none|limit=1|sort=Utitle}}}}<!--Editions of title - end-->


<!--Any item by Originator - Start-->{{#ask: [[Category:{{#var:Originator}}]][[Utitle::<<{{#show:{{PAGENAME}}| link=none|?Utitle}}]]|order=descending|searchlabel=|format=template|introtemplate=BeforeNav|template=Nav|outrotemplate=Previous|link=none|limit=1|sort=Utitle}}<span class="navtxt">Item by </span>[[{{#sub:{{PAGENAME}}|0|{{#rpos:{{PAGENAME}}| }}+1}}]]{{#ask: [[Category:{{#var:Originator}}]][[Utitle::>>{{#show:{{PAGENAME}}|?Utitle}}]]|order=ascending|searchlabel=|format=template|introtemplate=BeforeNav|template=Nav|outrotemplate=Next|link=none|limit=1|sort=Utitle}}<!--Any item by Originator - End-->
<p>* '''CoOrigs''' &ndash; co-originators, separated by semicolons.</p>
{{#arrayprint:coorigs||@@@@|{{SrcNavCoOrig|@@@@}} }}
 
<!--Item by any originator - Start-->{{#ask: [[Category:Originators-originators]][[Utitle::<<{{#show:{{PAGENAME}}| link=none|?Utitle}}]]|order=descending|searchlabel=|format=template|introtemplate=BeforeNav|template=Nav|outrotemplate=Previous|link=none|limit=1|sort=Utitle}}<span class="navtxt">Title by any originator</span>{{#ask: [[Category:Originators-originators]][[Utitle::>>{{#show:{{PAGENAME}}|?Utitle}}]]|order=ascending|searchlabel=|format=template|introtemplate=BeforeNav|template=Nav|outrotemplate=Next|link=none|limit=1|sort=Utitle}}<!--Item by any originator - End-->
<p>It is usually transcluded via a boilerplate: monograph, paper, postcard etc.</p></div></noinclude><includeonly>{{#vardefine:ActualPageName|{{#replace:{{#replace:{{PAGENAME}}|&#39;|'}}|&#38;|&}}}}{{#arraydefine:coorigs|{{{CoOrigs|}}}|;}}{{#vardefine:prioreditions|{{#ask:[[Category:{{#var:FirstUpper}}]][[Utitle::<<{{#ask:[[{{#var:ActualPageName}}]]|?Utitle=|mainlabel=-}}]]|format=count}}}}{{#vardefine:othereditions|{{#expr:{{#var:prioreditions}}+{{#ask: [[Category:{{#var:FirstUpper}}]][[Utitle::>>{{#ask:[[{{#var:ActualPageName}}]]|?Utitle=|mainlabel=-}}]]|format=count}}}}}}{{#vardefine:cur|{{#ifexpr:{{#var:othereditions}}>2|[[{{#var:FirstEdition}}]]|}}}}<!--CATLINKS START--><div id="dplcatlinks" class="subcategory">
<div id="origalphabet">{{OrigAlphabet}}</div></div><!--CATLINKS END-->
{{#arrayprint:coorigs||@@@@|{{BibliographicalItemNavigationCoOriginator|@@@@}} }}
[[Category:{{#var:Originator}}]]  {{#arrayprint:coorigs||@@@@|{{SrcCoOrigCat|@@@@}} }}   
{{#ask: [[Category:Originators-items]][[Utitle::<<{{#ask:[[{{#var:ActualPageName}}]]|?Utitle=|mainlabel=-}}]]|order=descending|searchlabel=|format=template|introtemplate=BeforeNavigation|template=ItemPrint|outrotemplate=ItemPrevious|link=none|limit=1|sort=Utitle}}[[{{#sub:{{PAGENAME}}|0|{{#rpos:{{PAGENAME}}| }}+1}}]]{{#ask: [[Category:Originators-items]][[Utitle::>>{{#ask:[[{{#var:ActualPageName}}]]|?Utitle=|mainlabel=-}}]]|order=ascending|searchlabel=|format=template|introtemplate=BeforeNavigation|template=ItemPrint|outrotemplate=ItemNext|link=none|limit=1|sort=Utitle}}
<div id="origalphabet">{{OriginatorAlphabet}}</div></div><!--CATLINKS END-->
{{#vardefine:utitl|{{#ifeq:{{#var:Originator}}|Anonymous|◿{{uc:{{PAGENAME}}}}|{{#var:UpperTitle}}}}}}
[[Category:{{#var:Originator}}]]  {{#arrayprint:coorigs||@@@@|{{BibliographicalItemCoOriginatorsCategories|@@@@}} }}   
[[Category:Originators-topics]]
[[Category:Originators-topics]]
[[Category:Originators-items]]
[[Category:Originators-items]]
[[Category:Sources in {{#var:Letter}}]]
[[Category:Sources in {{#var:Letter}}]]
[[Category:{{#var:FirstUpper}}]]
[[Category:{{#var:FirstUpper}}]]
{{#ifeq:{{#var:FirstUpper}}|||[[Category:{{#var:FirstUpper}}-{{#var:Language}}]]}}
{{#set:Year={{#var:Year}}}}
{{#set:Year={{#var:Year}}}}
{{#set:Utitle={{#ifeq:{{#var:Originator}}|Anonymous|◿{{uc:{{PAGENAME}}}}|{{#var:UpperTitle}}}}}}</includeonly>
{{#set:Utitle={{#var:utitl}}}}</includeonly>

Revision as of 02:06, 9 January 2021

This template generates the navigation widgets displayed at the foot of item (monograph, paper, article etc.) pages in the Originators section of IRHB. It takes the following parameters:

* CoOrigs – co-originators, separated by semicolons.

It is usually transcluded via a boilerplate: monograph, paper, postcard etc.