Template:Index/name: Difference between revisions

No edit summary
 
No edit summary
 
Line 10: Line 10:
|}
|}
<hr>
<hr>
{{#lua:
{{#invoke:Index|Name|{{{1}}} {{#SearchLine:Common Name=||{{{2}}}%}}
  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 .. "'''&nbsp;&nbsp; [[" .. id .."]] &nbsp; ";
    end
    ret = ret .. "\n";
  end
  print(ret);
|
{{{1}}} {{#SearchLine:Common Name=||{{{2}}}%}}
}}
}}
[[#top]]
[[#top]]

Latest revision as of 05:41, 3 February 2023

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

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}}

#top