p =
local Navbox = require("Module:Navbox")country =
function p.main(frame) local pframe = frame:getParent local config = frame.args local args = pframe.args return p._main(args)end
function p._main(args) if mw.title.getCurrentTitle
nil or ags.suffix
if args.noredlinks ~= nil then list1 = table.concat(noredlinks(args[1], args[2], args.prefix, args.suffix, sorter)) else list1 = table.concat(redlinks(args[1], args[2], args.prefix, args.suffix, sorter)) end local navarguments = return Navbox._navbox(navarguments)end
function noredlinks(args1, args2, argsprefix, argssuffix, sorter) local list = for x, y in pairs(sorter) do if mw.title.new((args1 or argsprefix or "").." "..linktarget(y, country[y][1])..(args2 or argssuffix or "")).exists
"Georgia" then if mw.title.new((args1 or argsprefix or "").." "..y..(args2 or argssuffix or "")).exists
function redlinks(args1, args2, argsprefix, argssuffix, sorter) local list = for x, y in pairs(sorter) do if y
true then table.insert(list, li(""..y.."")) else table.insert(list, li(""..y.."")) end else table.insert(list, li("".. y .. "")) end end return listend
function li(text) local li = mw.html.create("li") li :wikitext(text) :done return tostring(li)end
function linktarget(x, y) if y ~= nil and y
return p