Template:Index/name

From Metabolomics.JP
(Difference between revisions)
Jump to: navigation, search
Line 1: Line 1:
 
<noinclude>名前のインデクス {{{1}}} 値(文字列) {{{2}}} ページタイトル (FL/LB/..)</noinclude>
 
<noinclude>名前のインデクス {{{1}}} 値(文字列) {{{2}}} ページタイトル (FL/LB/..)</noinclude>
 
Last updated: {{REVISIONTIMESTAMP}}
 
Last updated: {{REVISIONTIMESTAMP}}
<small>Common words such as ''amino'' or less than 4 letters are excluded from the index.</small>  
+
<small>Note: words of less than 4 letters are excluded from the index.</small>  
 
{| width=100%
 
{| width=100%
 
|-
 
|-
Line 10: Line 10:
  
 
{{#lua:
 
{{#lua:
  local common = {abeta=true, acid=true, acetyl=true, alpha=true, aalpha=true, amino=true, alpha=true, acetyloxy=true, balpha=true, beta=true, methoxy=true, hydroxy=true };
 
 
   local key = stdin:match("%w+");
 
   local key = stdin:match("%w+");
 
   local H = {};
 
   local H = {};
Line 18: Line 17:
 
     for term in string.gmatch(name,"(%a+)") do
 
     for term in string.gmatch(name,"(%a+)") do
 
       if ((string.len(term) > 3) and
 
       if ((string.len(term) > 3) and
          (common[term] ~= true) and
 
 
           (string.sub(term,0,1) == key)) then
 
           (string.sub(term,0,1) == key)) then
 
         if (H[term] == nil) then
 
         if (H[term] == nil) then
Line 42: Line 40:
 
{{{1}}} {{#SearchLine:Common Name=||{{{2}}}%}}
 
{{{1}}} {{#SearchLine:Common Name=||{{{2}}}%}}
 
}}
 
}}
 +
[[#top]]

Revision as of 01:14, 2 October 2008

名前のインデクス {{{1}}} 値(文字列) {{{2}}} ページタイトル (FL/LB/..) Last updated: 20081002011447 Note: words of less than 4 letters are excluded from the index.

[[Index:{{{2}}}|Back to Index]]


#top

Personal tools
Namespaces

Variants
Actions
Navigation
metabolites
Toolbox