Help:Maintenance

From Metabolomics.JP
(Difference between revisions)
Jump to: navigation, search
(New page: ==Reference Data== ;Affiliation : Help:CheckReferences 所属とリファレンスの整合性 ; ==Species Data==)
 
m (Site Management)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
==Site Management==
 +
* [[MediaWiki:ExtraNamespaces|Namespace creation]]
 +
* [[MediaWiki:Logo|Logo creation]]
 +
* [[Doc:Extensions|Extensions (in Japanese)]]
 +
 
==Reference Data==
 
==Reference Data==
  
Line 5: Line 10:
  
 
==Species Data==
 
==Species Data==
 +
 +
==Long names==
 +
{{#lua:
 +
  local H = {};
 +
  local I = {};
 +
  for id, name in stdin:gmatch("&&(%w+).Common Name=&&([%S ]+)") do
 +
    name = string.lower(name);
 +
    for term in string.gmatch(name,"(%w+)") do
 +
      if ((string.len(term) > 30)) then
 +
        if (H[term] == nil) then
 +
          H[term] = id; table.insert(I, term);
 +
        else
 +
          H[term] = H[term] .. ";" .. id;
 +
        end
 +
      end
 +
    end
 +
  end
 +
  table.sort(I, function (x,y) return string.len(x)<string.len(y) end);
 +
  local ret = "";
 +
  for i=1,table.getn(I) do
 +
    local k = I[i];
 +
    ret = ret .. "* '''" .. k;
 +
    for id in string.gmatch(H[k],"%w+") do
 +
      ret = ret .. "'''&nbsp;&nbsp; [[" .. id .."]] &nbsp; ";
 +
    end
 +
    ret = ret .. "\n";
 +
  end
 +
  print(ret);
 +
|
 +
{{#SearchLine:Common Name=||FL%}}
 +
}}

Latest revision as of 23:32, 24 December 2012

Contents

[edit] Site Management

[edit] Reference Data

Affiliation 
Help:CheckReferences 所属とリファレンスの整合性

[edit] Species Data

[edit] Long names


Personal tools
Namespaces

Variants
Actions
Navigation
metabolites
Toolbox