Module:Sandbox/SUM1/UK place short description

local p = {} local plain = require('Module:Plain text')._main local getArgs = require('Module:Arguments').getArgs

function p.shortdesc(frame) return frame:expandTemplate{title = 'Short description', args = {text, 'noreplace'}} end

function p.main(frame) local args = getArgs (frame, {parentOnly = true}) local countryName = plain(args.country) local text = countyName .. ', ' .. countryName if plain(args.lieutenancy_general) then if (plain(args.lieutenancy_general) == "London" or "London") then countyName = "Greater London" else countyName = plain(args.lieutenancy_general) end else countyName = "" end if short_description then if (short_description == 'no') then return else return p.shortdesc(short_description, frame) end end

return p.shortdesc('Settlement in ' .. text, frame) end

return p