View source for Module:Tfd links
You do not have permission to edit this page, for the following reasons:
You can view and copy the source of this page.
-- This module implements [[Template:Tfd links]]
local p = {}
local function urlencode(text)
-- Return equivalent of {{urlencode:text}}.
local function byte(char)
return string.format('%%%02X', string.byte(char))
end
return text:gsub('[^ %w%-._]', byte):gsub(' ', '+')
end
local function fullurllink(t, a, s)
return '[//en.wikipedia.org/w/index.php?title=' .. urlencode(t) .. '&' .. a .. ' ' .. s .. ']'
end
function p.main(frame)
local args = frame:getParent().args
local ns = (((args['catfd'] and args['catfd'] ~= '') and 'Category') or
(args['module'] and args['module'] ~= '') and 'Module')
or 'Template'
local tname = mw.getContentLanguage():ucfirst(args['1'])
local fname = ns .. ':' .. tname
000
1:0
Template used on this page:
Return to Module:Tfd links.