Official Tower Defense Simulator Wiki
Succumb to the dark sun! Like many before you.
2,699
articles

Documentation for this module may be created at Module:Tipgen/doc

local yn = require('Module:Yesno')
local p = {}

function p.heeho(frame)
	local args = frame.args[1] and frame.args or frame:getParent().args

	local legacy
	if args.legacy == nil then
		legacy = false
	else
		legacy = yn(args.legacy, false)
	end

	local span = mw.html.create('span')
		:addClass('abbr')
	if legacy then
		span:addClass('legacy')
		span:attr('title', args[2] or '')
	else
		span:attr('data-full', args[2] or '')
	end

	span:wikitext(args[1] or '')
	return tostring(span)
end

return p