Sandbox4

From Metabolomics.JP
(Difference between revisions)
Jump to: navigation, search
 
(17 intermediate revisions by one user not shown)
Line 1: Line 1:
{{#def:stat|
+
==メイン(旧)ネームスペース==
{{#lua:
+
  local T = {}
+
  for genus in stdin:gmatch("&&([%a]+) [-%a%. ]+&&[%a%d]+") do
+
    if (T[genus] == null) then T[genus] = 1 else T[genus] = T[genus] + 1 end
+
  end
+
  total = 0
+
  for k,v in pairs(T) do
+
    total = total + v
+
    print(k.." "..v)
+
  end
+
  print(total)
+
|{{#SearchLine:FL63|Reference}} }}
+
}}
+
  
{{#lua:
+
{{#def:list|{{#SearchTitle:_*LC-MS|}}}}
  local T = {}
+
Total {{#count:{{#var:list}}}} pages.
  for family, num in stdin:gmatch("([%a]+) ([%d]+)") do
+
{{#repeat:LinkItem|1|{{#var:list}}}}
    if (T[family] == null) then T[family] = num else T[family] = T[family] + num end
+
 
  end
+
 
  total = 0
+
==新しい(LCMS)ネームスペース==
  for k,v in pairs(T) do
+
 
    total = total + v
+
{{#def:list2|{{#SearchTitle:_*|LCMS}}}}
    print(k.." "..v)
+
Total {{#count:{{#var:list2}}}} pages.
  end
+
{{#repeat:LinkItem|1|{{#var:list2}}}}
  print(total)
+
| {{#repeat:Stats/Family/GetFamilyName|1|{{#var:stat}} }}
+
}}
+

Latest revision as of 14:02, 10 February 2011

[edit] メイン(旧)ネームスペース

Total 118 pages.


[edit] 新しい(LCMS)ネームスペース

Total 118 pages.

Personal tools
Namespaces

Variants
Actions
Navigation
metabolites
Toolbox