Volatile:Search

From Metabolomics.JP
(Difference between revisions)
Jump to: navigation, search
 
(17 intermediate revisions by one user not shown)
Line 3: Line 3:
 
       {{{3}}} Page number (starting from 0)--->
 
       {{{3}}} Page number (starting from 0)--->
 
{{#def:RESULT|{{#repeat:SearchTitle|1|{{{1}}}}}}}
 
{{#def:RESULT|{{#repeat:SearchTitle|1|{{{1}}}}}}}
{{#def:SIZE|{{#expr:1+{{#count:{{#var:RESULT}}| }}}}}}
+
<!--{{#def:SIZE|{{#if:{{#var:RESULT}}|{{#expr:1+{{#count:{{#var:RESULT}}|&#160;}}}}|0}}}}-->
 +
{{#def:SIZE|{{#if:{{#var:RESULT}}|{{#expr:{{#count:{{#var:RESULT}}}}}}|0}}}}
 +
{{#def:ID|{{#encode:{{{1|}}}}}}}
  
==Search Result==
+
==Search Result ({{#var:SIZE}} Hits)==
View (previous {{#ifeq:{{#expr:{{{3}}}=<0}}|0|{{{2}}}|[[Volatile:Search|{{{1}}}|{{{2}}}|{{#expr:{{{3}}}-1}}|{{{2}}}]]}}) (next {{#ifeq: {{#expr:{{{3}}}*{{{2}}}<{{#var:SIZE}}}}|0|{{{2}}}|[[Volatile:Search|{{{1}}}|{{{2}}}|{{#expr:{{{3}}}+1}}|{{{2}}}]]}})
+
View (previous {{#ifexpr: {{{3}}} <= 0 | {{{2}}} | [[{{FULLPAGENAME}}|{{#var:ID}}|{{{2}}}|{{#expr:{{{3}}}-1}}|{{{2}}}]]}}) (next {{#ifexpr: {{{3}}}*{{{2}}} > {{#var:SIZE}} | {{{2}}} | [[{{FULLPAGENAME}}|{{#var:ID}}|{{{2}}}|{{#expr:{{{3}}}+1}}|{{{2}}}]]}})
 +
([[{{FULLPAGENAME}}|{{#var:ID}}|20|{{{3}}}|20]] | [[{{FULLPAGENAME}}|{{#var:ID}}|50|{{{3}}}|50]] | [[{{FULLPAGENAME}}|{{#var:ID}}|100|{{{3}}}|100]] | [[{{FULLPAGENAME}}|{{#var:ID}}|250|{{{3}}}|250]] | [[{{FULLPAGENAME}}|{{#var:ID}}|500|{{{3}}}|500]])<br>
 +
{{#repeat: Search/Item|2|
 
{{#lua:
 
{{#lua:
 
   local L = {};
 
   local L = {};
Line 16: Line 20:
 
   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}}
}}
+
}}|&#160;}}

Latest revision as of 21:12, 26 January 2009



[edit] Search Result (0 Hits)

View (previous Expression error: Unexpected <= operator.) (next Expression error: Unexpected * operator.) (20 | 50 | 100 | 250 | 500)
./lua:.   /tmp/mw_ex_lua_O5AKhD:2:  
bad.   argument  

  1. 1.   to  
    'tonumber'.   (value  
    expected).   [[{{{2}}}]]  
Personal tools
Namespaces

Variants
Actions
Navigation
metabolites
Toolbox