Template:MassBank/PrevNextLink

From Metabolomics.JP
(Difference between revisions)
Jump to: navigation, search
m
 
(3 intermediate revisions by one user not shown)
Line 1: Line 1:
{{#def:first|{{#nth:{{#SearchLine:{{{1}}}|Index|MassBank/Molecules}}|5|&&}}}}{{#def:prev|{{#nth:{{#SearchLine:{{{2}}}|Index|MassBank/Molecules}}|5|&&}}}}{{#def:next|{{#nth:{{#SearchLine:{{{3}}}|Index|MassBank/Molecules}}|5|&&}}}}{{#def:last|{{#nth:{{#SearchLine:{{{4}}}|Index|MassBank/Molecules}}|5|&&}}}}
+
{{#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:first}}|[[{{NAMESPACE}}:{{#var:first}}|<<First Page]]}} &nbsp; {{#if:{{#var:prev}}|[[{{NAMESPACE}}:{{#var:prev}}|<Previous Page]]}}
+
({{#if:{{#var:firstP}}|[[{{NAMESPACE}}:{{#var:firstP}}|pos]]|pos}}/{{#if:{{#var:firstN}}|[[Ojima:{{#var:firstN}}|neg]]|neg}})<<First Page &nbsp; ({{#if:{{#var:prevP}}|[[{{NAMESPACE}}:{{#var:prevP}}|pos]]|pos}}/{{#if:{{#var:nextP}}|[[{{NAMESPACE}}:{{#var:nextP}}|neg]]|neg}})<Previous Page</div>
</div><div style="float:right; vertical-align: top; white-space: nowrap;">
+
<div style="float:right; vertical-align: top; white-space: nowrap;">
{{#if:{{#var:next}}|[[{{NAMESPACE}}:{{#var:next}}|Next Page>]]}} &nbsp; {{#if:{{#var:last}}|[[{{NAMESPACE}}:{{#var:last}}|Last Page>>]]}}
+
Next Page>({{#if:{{#var:nextP}}|[[Ojima:{{#var:nextP}}|pos]]|pos}}/{{#if:{{#var:nextN}}|[[Ojima:{{#var:nextN}}|neg]]|neg}}) &nbsp; Last Page>>({{#if:{{#var:lastP}}|[[Ojima:{{#var:lastP}}|pos]]}}/{{#if:{{#var:lastN}}|[[Ojima:{{#var:lastN}}|neg]]}})
</div><br/>
+
<div style="float:left; vertical-align: top; white-space: nowrap;">
+
{{#if:{{#var:first}}|[[{{NAMESPACE}}:{{#var:first}}|<<First Page]]}} &nbsp; {{#if:{{#var:prev}}|[[{{NAMESPACE}}:{{#var:prev}}|<Previous Page]]}}
+
</div><div style="float:right; vertical-align: top; white-space: nowrap;">
+
{{#if:{{#var:next}}|[[{{NAMESPACE}}:{{#var:next}}|Next Page>]]}} &nbsp; {{#if:{{#var:last}}|[[{{NAMESPACE}}:{{#var:last}}|Last Page>>]]}}
+
 
</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]] &nbsp; [[{{NAMESPACE}}:{{{2}}}|<Previous Page]]
 
[[{{NAMESPACE}}:{{{1}}}|<<First Page]] &nbsp; [[{{NAMESPACE}}:{{{2}}}|<Previous Page]]

Latest revision as of 15:20, 7 December 2009

(pos/neg)<<First Page   (pos/neg)<Previous Page

Next Page>(pos/neg)   Last Page>>(/)

Personal tools
Namespaces

Variants
Actions
Navigation
metabolites
Toolbox