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)
(46 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 does not take any parameters. It is usually transcluded via a boilerplate:
<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>
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}}}}}}


<div id="dplcatlinks" class="subcategory">
<p>* '''CoOrigs''' &ndash; co-originators, separated by semicolons.</p>
{{#vardefine:cur|{{#ifexpr:{{#var:othereditions}}>2|[[{{#var:FirstEdition}}]]|}}}}{{#ifexpr:{{#var:othereditions}}=0|AAA|{{#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}}{{#var:cur}}{{#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}}}}


{{#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}}[[{{#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}}
<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">
{{#arrayprint:coorigs||@@@@|{{SrcNavCoOrig|@@@@}} }}
{{#arrayprint:coorigs||@@@@|{{BibliographicalItemNavigationCoOriginator|@@@@}} }}
{{#ask: [[Category:Sources in {{#var:Letter}}]][[Utitle::<<{{#show:{{PAGENAME}}| link=none|?Utitle}}]]|order=descending|searchlabel=|format=template|introtemplate=BeforeNav|template=Nav|outrotemplate=Previous|link=none|limit=1|sort=Utitle}}[[Originators in {{#var:Letter}}|{{#var:Letter}}]]{{#ask: [[Category:Sources in {{#var:Letter}}]][[Utitle::>>{{#show:{{PAGENAME}}|?Utitle}}]]|order=ascending|searchlabel=|format=template|introtemplate=BeforeNav|template=Nav|outrotemplate=Next|link=none|limit=1|sort=Utitle}}</div>
{{#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}}
[[Category:{{#var:Originator}}]]  {{#arrayprint:coorigs||@@@@|{{SrcCoOrigCat|@@@@}} }}   
<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.