Template:BibliographicalItemNavigation: Difference between revisions
From International Robin Hood Bibliography
mNo edit summary |
mNo edit summary |
||
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">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: | ||
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"> | 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}}]]|}}}}<div id="dplcatlinks" class="subcategory"> | ||
{{# | {{#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}}<div class="navtxt">title by {{#var:Originator}}</div>{{#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}}]]<div class="navtxt">item by {{#var:Originator}}</div>{{#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}} | |||
{{#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}} | |||
{{#arrayprint:coorigs||@@@@|{{SrcNavCoOrig|@@@@}} }} | {{#arrayprint:coorigs||@@@@|{{SrcNavCoOrig|@@@@}} }} | ||
{{#ask: [[Category:Originators-items]][[Utitle::<<{{#show:{{PAGENAME}}| link=none|?Utitle}}]]|order=descending|searchlabel=|format=template|introtemplate=BeforeNav|template=Nav|outrotemplate=Previous|link=none|limit=1|sort=Utitle}} | {{#ask: [[Category:Originators-items]][[Utitle::<<{{#show:{{PAGENAME}}| link=none|?Utitle}}]]|order=descending|searchlabel=|format=template|introtemplate=BeforeNav|template=Nav|outrotemplate=Previous|link=none|limit=1|sort=Utitle}}<div class="navtxt">item by any</div>{{#ask: [[Category:Originators-items]][[Utitle::>>{{#show:{{PAGENAME}}|?Utitle}}]]|order=ascending|searchlabel=|format=template|introtemplate=BeforeNav|template=Nav|outrotemplate=Next|link=none|limit=1|sort=Utitle}} | ||
<div id="origalphabet">{{OrigAlphabet}}</div></div> | <div id="origalphabet">{{OrigAlphabet}}</div></div> | ||
[[Category:{{#var:Originator}}]] {{#arrayprint:coorigs||@@@@|{{SrcCoOrigCat|@@@@}} }} | [[Category:{{#var:Originator}}]] {{#arrayprint:coorigs||@@@@|{{SrcCoOrigCat|@@@@}} }} |
Revision as of 21:54, 20 October 2017
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:
monograph, paper, postcard etc.