Template:MassBank/PrevNextLink
From Metabolomics.JP
(Difference between revisions)
m |
m |
||
Line 1: | Line 1: | ||
− | {{#def: | + | {{#def:firstP|{{#nth:{{#SearchLine:{{{1}}}+|Index|MassBank/Molecules}}|5|&&}}}}{{#def:prevP|{{#nth:{{#SearchLine:{{{2}}}+|Index|MassBank/Molecules}}|5|&&}}}}{{#def:nextP|{{#nth:{{#SearchLine:{{{3}}}+|Index|MassBank/Molecules}}|5|&&}}}}{{#def:lastP|{{#nth:{{#SearchLine:{{{4}}}+|Index|MassBank/Molecules}}|5|&&}}}}{{#def:firstN|{{#nth:{{#SearchLine:{{{1}}}-|Index|MassBank/Molecules}}|5|&&}}}}{{#def:prevN|{{#nth:{{#SearchLine:{{{2}}}-|Index|MassBank/Molecules}}|5|&&}}}}{{#def:nextN|{{#nth:{{#SearchLine:{{{3}}}-|Index|MassBank/Molecules}}|5|&&}}}}{{#def:lastN|{{#nth:{{#SearchLine:{{{4}}}-|Index|MassBank/Molecules}}|5|&&}}}} |
<div style="float:left; vertical-align: top; white-space: nowrap;"> | <div style="float:left; vertical-align: top; white-space: nowrap;"> | ||
− | {{#if:{{#var: | + | {{#if:{{#var:firstP}}|[[{{NAMESPACE}}:{{#var:firstP}}|<<First Page]]}} {{#if:{{#var:prevP}}|[[{{NAMESPACE}}:{{#var:prevP}}|<Previous Page]]}}<br/> |
+ | {{#if:{{#var:firstN}}|[[{{NAMESPACE}}:{{#var:firstN}}|<<First Page]]}} {{#if:{{#var:prevN}}|[[{{NAMESPACE}}:{{#var:prevN}}|<Previous Page]]}} | ||
</div><div style="float:right; vertical-align: top; white-space: nowrap;"> | </div><div style="float:right; vertical-align: top; white-space: nowrap;"> | ||
− | {{#if:{{#var: | + | {{#if:{{#var:nextP}}|[[{{NAMESPACE}}:{{#var:nextP}}|Next Page>]]}} {{#if:{{#var:lastP}}|[[{{NAMESPACE}}:{{#var:lastP}}|Last Page>>]]}}<br/> |
− | + | {{#if:{{#var:nextN}}|[[{{NAMESPACE}}:{{#var:nextN}}|Next Page>]]}} {{#if:{{#var:lastN}}|[[{{NAMESPACE}}:{{#var:lastN}}|Last Page>>]]}} | |
− | + | ||
− | + | ||
− | + | ||
− | {{#if:{{#var: | + | |
</div> | </div> | ||
− | |||
<!---ORIGINAL LINK---<div style="float:left; vertical-align: top; white-space: nowrap;"> | <!---ORIGINAL LINK---<div style="float:left; vertical-align: top; white-space: nowrap;"> | ||
[[{{NAMESPACE}}:{{{1}}}|<<First Page]] [[{{NAMESPACE}}:{{{2}}}|<Previous Page]] | [[{{NAMESPACE}}:{{{1}}}|<<First Page]] [[{{NAMESPACE}}:{{{2}}}|<Previous Page]] |