View source for Module:Clickable button
Appearance
You do not have permission to edit this page, for the following reason:
You can view and copy the source of this page.
-- This module implements {{clickable button}}.
local yesno = require('Module:Yesno')
local delink = require('Module:Delink')._delink
local p = {}
function p.main(frame)
local getArgs = require('Module:Arguments').getArgs
local args = getArgs(frame)
return p._main(args)
end
function p._main(args)
-- If first arg or a url is not provided,
-- but we have a second arg, make a button.
-- Otherwise, return nothing.
args.originalInput = args[1]
args[1] = delink({args[1]})
if args[1] == "" then
args[1] = nil
end
000
1:0
Template used on this page:
Return to Module:Clickable button.