|
===================================== 〔語彙分解〕的な部分一致の検索結果は以下の通りです。 ・ ジュール : [じゅーる] 【名詞】 1. joule 2. (n) joule ・ ー : [ちょうおん] (n) long vowel mark (usually only used in katakana)
local p = -- function p.select(frame) local str = frame.args local spl = frame.args local back = p.split(str, spl) local text = p.split(p.split(str, spl), "\n==") text = p.split(text, "==") if text == "" then if frame.args == "1" then local tbl = p.split(back, "\n==") for i = #tbl - 1,1,-1 do if #p.split(tbl, "==\n") == 2 then text = p.split(tbl, "==\n") break end end end end if frame.args == "1" then text = "== " .. frame.args .. " ==\n" .. text end if frame.args == "3" then text = "== .. "" TITLE="" .. frame.args .. "">" .. frame.args .. " ==\n" .. text end return text end function p.split(str, spl) m, nrep = str:gsub("%s *"..spl.."%s *", "") return end return p 抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)』 ■ウィキペディアで「モジュール:SectionSelect」の詳細全文を読む スポンサード リンク
|