Nhảy chuyển tới nội dung

Mô tổ:Anchor

被永久保护的模块
Duy cơ bách khoa, tự do bách khoa toàn thư

Bổn mô tổ từ {{anchor}} sở chấp hành, tường thấy khuôn mẫu trang hồ sơ.

Thỉnh chú ý: Sở hữu sẽ sinh ra trang web miêu điểm khuôn mẫu hoặc mô tổ, cải biến khi toàn ứng thông triUser:cewbot,Dự phòng người máy lầm động tác.

-- mô khối khảm nhập {{anchor}}

localgetArgs=require('Module:Arguments').getArgs
localtableTools=require('Module:TableTools')

localp={}

functionp.main(frame)
-- Get the positional arguments from #invoke, remove any nil values,
-- and pass them to p._main.
localargs=getArgs(frame)
localargArray=tableTools.compressSparseArray(args)
returnp._main(unpack(argArray))
end

functionp._main(...)
-- Generate the list of anchors.
localanchors={...}
localret={}
for_,anchorinipairs(anchors)do
ret[#ret+1]='<span class= "anchor" id= "'..anchor..' "></span>'
end
returntable.concat(ret)
end

returnp