Reference:Country

From Metabolomics.JP
(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
 
{{#def:countryNames|{{#SearchTitle:Country/%|Reference}}}}
 
{{#def:countryNames|{{#SearchTitle:Country/%|Reference}}}}
 +
{{#def:countryStat|{{#repeat:List_Country/CountAuthor|1|{{#var:countryNames}}}}}}
  
<table border=1>
+
<table>
<th>Top 10 nationality of authors</th>
+
<th colspan=2>Top 10 nationality of authors</th>
 
<tr><td>
 
<tr><td>
 
{{#repeat:List_Country/rank|1|
 
{{#repeat:List_Country/rank|1|
Line 32: Line 33:
 
   end
 
   end
 
   print(output);
 
   print(output);
|{{#repeat:List_Country/CountAuthor|1|{{#var:countryNames}}}}
+
|{{#var:countryStat}}
 
}}|;}}
 
}}|;}}
</td></tr></table>
+
</td>
 +
 
 +
<td>
 +
{{#graph:pie|size=350x200;title=;legend=0.0x0.0;label=;
 +
{{#lua:
 +
  local output = "";
 +
  local count=0;
 +
  for word in stdin:gmatch("[%d%a/_:]+") do
 +
    num, name = string.match(word,"(%d+):([%a/_]+)");
 +
    num = tonumber(num);
 +
    name = string.sub(name, 9);
 +
    if (num > 170) then
 +
      output = output .. name .. "=" .. num .. ";";
 +
    else
 +
      count = count + num;
 +
    end
 +
  end
 +
  output = output .. "others=" .. count .. ";";
 +
  print(output);
 +
|{{#var:countryStat}}
 +
}} }}
 +
</td>
 +
</tr>
 +
</table>
  
 
==All Countries==
 
==All Countries==

Revision as of 19:18, 14 September 2008


Top 10 nationality of authors

All Countries

Personal tools
Namespaces

Variants
Actions
Navigation
metabolites
Toolbox