Template:P450/Table
From Metabolomics.JP
(Difference between revisions)
m |
|||
Line 19: | Line 19: | ||
{{P450/Table/Header| | {{P450/Table/Header| | ||
{{#repeat:P450/Table/Row|1|{{{1}}}}} | {{#repeat:P450/Table/Row|1|{{{1}}}}} | ||
+ | }} | ||
+ | |||
+ | <!---- next/prev links at the page bottom (same as massbank)----> | ||
+ | {{#repeat:P450/PrevNextLink|4| | ||
+ | {{#lua: | ||
+ | first = nil | ||
+ | prev = nil | ||
+ | next = nil | ||
+ | last = nil | ||
+ | hit = nil | ||
+ | for line in stdin:gmatch("(%w+)") do | ||
+ | if (first == nil) then first = line end | ||
+ | last = line | ||
+ | if (line == "{{PAGENAME}}") then | ||
+ | hit = true | ||
+ | if (tmp ~= nil) then | ||
+ | prev = tmp | ||
+ | else | ||
+ | prev = first | ||
+ | end | ||
+ | elseif (hit) then | ||
+ | next = line | ||
+ | hit = false | ||
+ | end | ||
+ | tmp = line | ||
+ | end | ||
+ | if (next == nil) then next = last end | ||
+ | print(first) | ||
+ | print(prev) | ||
+ | print(next) | ||
+ | print(last) | ||
+ | |{{Persist:P450/AllPages}}}} | ||
}} | }} |
Revision as of 11:35, 21 June 2009