-- This module implements local p =
local function urlencode(text) -- Return equivalent of . local function byte(char) return string.format('%%%02X', string.byte(char)) end return text:gsub('[^ %w%-._]', byte):gsub(' ', '+')end
local function make_link(url, expansion, display_text, after) return mw.ustring.format('[%s <abbr title="%s">%s</abbr>]%s', url, expansion, display_text, after or )end
function p.main(frame) local args = require('Module:Arguments').getArgs(frame,)
local search_phrase_encoded = urlencode(args[1] or 'example phrase') local short_module_args = local long_module_args = local long = (args.long or ) ~= local ubl = require('Module:List').unbulleted local list = ubl(long and long_module_args or short_module_args) return frame:extensionTag .. '(' .. list .. ')'end
return p