翻訳と辞書
Words near each other


Dictionary Lists
翻訳と辞書 辞書検索 [ 開発暫定版 ]
スポンサード リンク

モジュール:SectionSelect : ウィキペディア日本語版
モジュール:SectionSelect
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」の詳細全文を読む



スポンサード リンク
翻訳と辞書 : 翻訳のためのインターネットリソース

Copyright(C) kotoba.ne.jp 1997-2016. All Rights Reserved.