Reference:Country
From Metabolomics.JP
(Difference between revisions)
Line 1: | Line 1: | ||
{{#def:countryNames|{{#SearchTitle:Country/%|Reference}}}} | {{#def:countryNames|{{#SearchTitle:Country/%|Reference}}}} | ||
− | + | <table border=1> | |
− | + | <th>Top 10 of the number of authors</th> | |
+ | <tr><td> | ||
{{#lua: | {{#lua: | ||
local list = {}; | local list = {}; | ||
local hash = {}; | local hash = {}; | ||
local count = {}; | local count = {}; | ||
− | for word in stdin:gmatch("% | + | local name, num; |
− | num, name = string.match(word,"( | + | for word in stdin:gmatch("[%d%a/_:]+") do |
+ | num, name = string.match(word,"(%d+):([%a/_]+)"); | ||
+ | num = tonumber(num); | ||
table.insert(list, num); | table.insert(list, num); | ||
if (hash[num] == null) then | if (hash[num] == null) then | ||
Line 22: | Line 25: | ||
while(i < 10) do | while(i < 10) do | ||
num = table.remove(list); | num = table.remove(list); | ||
+ | if (num == null) then break; end | ||
name = hash[num]; | name = hash[num]; | ||
i = i + count[num]; | i = i + count[num]; | ||
− | output = output .. "\n" .. name .. " " .. num; | + | output = output .. "\n#" .. string.sub(name,9) .. " " .. num; |
end | end | ||
print(output); | print(output); | ||
|{{#repeat:List_Country/CountAuthor|1|{{#var:countryNames}}}} | |{{#repeat:List_Country/CountAuthor|1|{{#var:countryNames}}}} | ||
}} | }} | ||
+ | </td></tr></table> | ||
− | + | ==All Countries== | |
<div style="column-count:3; -moz-column-count:3;"> | <div style="column-count:3; -moz-column-count:3;"> | ||
{{#repeat:List_Country|1|{{#var:countryNames}}}} | {{#repeat:List_Country|1|{{#var:countryNames}}}} | ||
</div> | </div> |
Revision as of 13:52, 10 September 2008
Top 10 of the number of authors |
---|
|