View source for Module:Icon
Jump to navigation
Jump to search
You do not have permission to edit this page, for the following reasons:
You can view and copy the source of this page.
local p = {}
local lib = require('Module:Feature')
local LL = require('Module:Link label')._main
function p.main(frame)
local args = require('Module:Arguments').getArgs(frame, {
parentFirst = true,
removeBlanks = false,
wrapper = { 'Template:Icon' }
})
return p._main(args)
end
function p._main(args)
local item = args.name or args[1]
if not item then return mw.html.create() end -- if no input then return blank
local nolink = lib.isNotEmpty(args.nolink) or false
local notext = lib.isNotEmpty(args.notext) or false
local link = nolink and '' or (args.link or item)
local size = tonumber(args.size or args.s or '30')
000
1:0
Template used on this page:
Return to Module:Icon.