模組:Ilh
外观
![]() | 此模块被引用於約539,000個頁面。 為了避免造成大規模的影響,所有對此模块的編輯應先於沙盒或測試樣例上測試。 測試後無誤的版本可以一次性地加入此模块中,但是修改前請務必於討論頁發起討論。 模板引用數量會自動更新。 |
本模块为{{Internal link helper}}的Lua实现。
本模块支持通过传入Lua调用参数代替模板调用参数。
local ilh = {}
local WikitextLC = require( 'Module:WikitextLC' )
local getArgs
local args
function ilh.main(frame)
if not getArgs then
getArgs = require('Module:Arguments').getArgs
end
args = getArgs(frame, {wrappers = 'Template:Internal link helper'})
--TODO
end
function ilh.onlyLink(localTarget,displayName)
end
function ilh.functionLink(localTarget,displayName)
end