Template:CountryTable

From Metabolomics.JP
(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
 
<table>
 
<table>
<th colspan=2>Top 5 institutes in this country (total {{#count:{{{1|}}}}})</th>
+
<th colspan=2>Top 5 institutes in this country (total {{#count:{{{1|}}}}} authors)</th>
 
<tr><td>
 
<tr><td>
 
<!---{{#repeat:List_Country/inst_rank|1|--->
 
<!---{{#repeat:List_Country/inst_rank|1|--->
 
{{#lua:
 
{{#lua:
 
   local auCount = {};
 
   local auCount = {};
 +
  local afCount = {};
 
   local au, inst;
 
   local au, inst;
 
   local it = 0;
 
   local it = 0;
Line 25: Line 26:
 
     if (hash[num] == nil) then  
 
     if (hash[num] == nil) then  
 
       hash[num] = inst;
 
       hash[num] = inst;
       auCount[num] = 1;
+
       afCount[num] = 1;
 
     else
 
     else
 
       hash[num] = hash[num] .. "; " .. inst;
 
       hash[num] = hash[num] .. "; " .. inst;
       auCount[num] = auCount[num] + 1;
+
       afCount[num] = afCount[num] + 1;
 
     end
 
     end
 
   end
 
   end
Line 40: Line 41:
 
     if (num == nil) then break; end
 
     if (num == nil) then break; end
 
     inst = hash[num];
 
     inst = hash[num];
     i = i + auCount[num];
+
     i = i + afCount[num];
 
     output = output .. inst .. " (" .. num .." authors)&&";
 
     output = output .. inst .. " (" .. num .." authors)&&";
 
   end
 
   end

Revision as of 00:10, 16 September 2008

Top 5 institutes in this country (total 0 authors)

0


Author Affiliation Country
Personal tools
Namespaces

Variants
Actions
Navigation
metabolites
Toolbox