Module:首页分类:修订间差异
删除的内容 添加的内容
Maintenance script(留言 | 贡献) 为首页分类气泡增加英文标签 |
Maintenance script(留言 | 贡献) Support English UI language on homepage category bubbles |
||
第60行:
}
local function getLang( frame )
local title = mw.title.getCurrentTitle()
if title and title.subpageText == 'en' then
return 'en'
end
local interfaceLang = frame:preprocess( '{{int:lang}}' )
if interfaceLang == 'en' then
return 'en'
end
第70行 ⟶ 第75行:
end
function p.bubbles( frame )
local lang = getLang( frame )
local links = {}
| |||