Template:Index/formula: Difference between revisions

No edit summary
 
No edit summary
 
Line 6: Line 6:
|align=left|
|align=left|
{{#repeat:Index/persist|6|{{#cdr:
{{#repeat:Index/persist|6|{{#cdr:
   {{#lua:
   {{#invoke:Index|FormulaFunc1|{{{4}}} }} |%}}|%}}
  local output = "";
  for id in stdin:gmatch("&&(%w+)") do
    output = output.."%formula%{{{1}}}%{{#expr:{{{2}}}-1}}%Index/formula%"..id.."%{{{4}}}";
  end
  print(output); |{{{4}}} }} |%}}|%}}
|align=center| [[Index:{{{3}}}|<big>Back to Index</big>]]
|align=center| [[Index:{{{3}}}|<big>Back to Index</big>]]
|align=right|
|align=right|
{{#repeat:Index/persist|6|{{#cdr:
{{#repeat:Index/persist|6|{{#cdr:
   {{#lua:
   {{#invoke:Index|FormulaFunc2|{{{4}}} }} |%}}|%}}
  local id;
  local output = "";
  for id in stdin:gmatch("&&(%w+)") do
    output = output.."%formula%{{{1}}}%{{#expr:{{{2}}}+1}}%Index/formula%"..id.."%{{{4}}}";
  end
  print(output);|{{{4}}} }} |%}}|%}}
|}
|}
<hr>
<hr>
Line 27: Line 16:
|- style="background:#ccf"
|- style="background:#ccf"
{{#repeat:IndexTable|1|
{{#repeat:IndexTable|1|
{{#lua:
{{#invoke:Index|FormulaIndexTable|{{#formula:{{{3|FL1C99}}}}}|{{{1|C}}}|{{{2|20}}}}}
  local id, formula;
  local pat = "{{{1|C}}}{{{2|20}}}";
  local hash = {};
  local idx = {};
  for id, formula in stdin:gmatch("&&(%w+)&&([%a%d]+)") do
    if (formula.match(formula, pat) ~= null) then
      if (hash[formula] == null)
        then hash[formula] = id;
          table.insert(idx, formula);
        else hash[formula] = hash[formula].."&&"..id;
      end
    end
  end
  table.sort(idx);
  local output = "";
  for id, val in pairs(idx) do
    output = output .. val .."&&".. hash[val] .. "\n";
  end
  print(output);
|{{#formula:{{{3|FL1C99}}}}}
}}
}}
}}
|}
|}

Latest revision as of 05:41, 3 February 2023

名前のインデクス {{{1}}} 原子 {{{2}}} 数 {{{3}}} ページタイトル {{{4}}} タイトル候補リスト(&&区切り) This page is automatically generated using Persist function (Last updated: 20230203054136).

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