Template:Index/name

Revision as of 16:18, 1 October 2008 by Editor (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

名前のインデクス {{{1}}} 値(文字列) {{{2}}} ページタイトル (FL/LB/..) This page is automatically generated using Persist function (Last updated: 20081001161846).

Note: words of less than 4 letters are excluded from the index.

{{#persist:FLindex/name a|go to Index a|Index/name|2|a;FL}} [[Index:{{{2}}}|Back to Index]] {{#persist:FLindex/name a|go to Index z|Index/name|2|z;FL}}

{{#lua:

 local key = stdin:match("%w+");
 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,"(%a+)") do
     if ((string.len(term) > 3) and
         (string.sub(term,0,1) == key)) 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);
 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 .. "   " .. id .."   ";
   end
   ret = ret .. "\n";
 end
 print(ret);

| {{{1}}} }} #top