Volatile:Search
From Metabolomics.JP
(Difference between revisions)
Line 7: | Line 7: | ||
==Search Result== | ==Search Result== | ||
View (previous {{#ifexpr: {{{3}}} <= 0 | {{{2}}} | [[Volatile:Search|{{{1}}}|{{{2}}}|{{#expr:{{{3}}}-1}}|{{{2}}}]]}}) (next {{#ifexpr: {{{3}}}*{{{2}}} > {{#var:SIZE}} | {{{2}}} | [[Volatile:Search|{{{1}}}|{{{2}}}|{{#expr:{{{3}}}+1}}|{{{2}}}]]}}) | View (previous {{#ifexpr: {{{3}}} <= 0 | {{{2}}} | [[Volatile:Search|{{{1}}}|{{{2}}}|{{#expr:{{{3}}}-1}}|{{{2}}}]]}}) (next {{#ifexpr: {{{3}}}*{{{2}}} > {{#var:SIZE}} | {{{2}}} | [[Volatile:Search|{{{1}}}|{{{2}}}|{{#expr:{{{3}}}+1}}|{{{2}}}]]}}) | ||
+ | ([[Volatile:Search|{{{1}}}|20|{{{3}}}|20]] | [[Volatile:Search|{{{1}}}|50|{{{3}}}|50]] | [[Volatile:Search|{{{1}}}|100|{{{3}}}|100]] | [[Volatile:Search|{{{1}}}|250|{{{3}}}|250]] | [[Volatile:Search|{{{1}}}|500|{{{3}}}|500]]) | ||
+ | {{#repeat: Search/Item|2| | ||
{{#lua: | {{#lua: | ||
local L = {}; | local L = {}; | ||
Line 16: | Line 18: | ||
table.sort(L); | table.sort(L); | ||
for idx=start+1, math.min(table.getn(L),start+tonumber({{{2}}})) do | for idx=start+1, math.min(table.getn(L),start+tonumber({{{2}}})) do | ||
− | output=output .. L[idx] .. " "; | + | output=output .. idx .. " " .. L[idx] .. " "; |
end | end | ||
print(output); | print(output); | ||
|{{#var:RESULT}} | |{{#var:RESULT}} | ||
+ | }} | ||
}} | }} |
Revision as of 03:59, 29 June 2008
Search Result
View (previous Expression error: Unexpected <= operator.) (next Expression error: Unexpected * operator.)
(20 | 50 | 100 | 250 | 500)
./lua: /tmp/mw_ex_lua_yJzgmS:2: bad argument #1 to 'tonumber' (value expected). [[{{{2}}}]]