2023年政策修订增补工作正在进行中,欢迎参与!
Module:Sandbox/杨哲思/Flow
跳转到导航
跳转到搜索
local zes = {}
function zes.main(frame)
local args = frame.args
local content = args.content or args[1]
local root = mw.html.create 'div'
local current = root
local level = 0
local next = ''
for each in mw.text.gsplit(content,'\n') do
if each:match('^'..next..'^:') then
current = current:tag 'div'
end
end
end