Module:LanguageLinks:修订间差异

删除的内容 添加的内容
Maintenance script​(留言 | 贡献)
阶段C数据化:新增Module:LanguageLinks
 
Maintenance script​(留言 | 贡献)
修复参数兼容:支持模板调用场景读取 root(parent args)
 
第10行:
 
local function renderCore(frame, navboxTemplate, navboxTarget)
local argsframeArgs = frame.args or {}
local parent = frame:getParent()
local parentArgs = parent and parent.args or {}
local title = mw.title.getCurrentTitle()
local root = trim(argsframeArgs.root)
if root == '' then
root = trim(parentArgs.root)
end
if root == '' then
root = title.rootText or title.text