Template:Index/name
From Metabolomics.JP
(Difference between revisions)
Line 1: | Line 1: | ||
<noinclude>名前のインデクス {{{1}}} 値(文字列) {{{2}}} ページタイトル (FL/LB/..)</noinclude> | <noinclude>名前のインデクス {{{1}}} 値(文字列) {{{2}}} ページタイトル (FL/LB/..)</noinclude> | ||
Last updated: {{REVISIONTIMESTAMP}} | Last updated: {{REVISIONTIMESTAMP}} | ||
− | <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 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 | ||
− | |||
(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]] |