请输入您要查询的百科知识:

 

词条 Module:Other Pennsylvania townships
释义

local mOtheruses = require('Module:Other uses')

local mArguments = require('Module:Arguments')

local mHatnote = require('Module:Hatnote')

local mTableTools = require('Module:TableTools')

local p = {}

function p.otherPennsylvaniaTownships (frame)

local title = mw.title.getCurrentTitle().text

local options = {

otherText = 'Pennsylvania townships with similar names',

title = title

}

local pages = mArguments.getArgs(frame)

if not pages[1] then

local splits = {

--paren wrappers force single values from string.gsub

(string.gsub(title, ',.-,', ',', 1)),

(string.gsub(title, ',.*', ))

}

for k, v in pairs(splits) do

local disambig = mHatnote.disambiguate(v)

if mw.title.makeTitle(0, disambig).exists then

pages[1] = disambig

break

end

end

end

pages = mTableTools.compressSparseArray(pages)

return mOtheruses._otheruses(pages, options)

end

return p

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/11/11 0:07:48