Jump to content

Module:IPAc-en

Permanently protected module
From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Mr. Stradivarius (talk | contribs) at 04:18, 17 June 2015 (start a replacement for Template:IPAc-en). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

-- This module implements [[Template:IPAc-en]].

local p = {}

-- Implements [[Template:H:title]].
function makeTitle(title, page, isLinked, isDotted)
	local span = mw.html.create('span')
	span:attr('title', title)
	if isDotted ~= false then
		span:css('border-bottom', '1px dotted')
	end
	span:wikitext(page)
	span = tostring(span)
	if isLinked then
		return string.format('[[%s|%s]]', page, span)
	else
		return span
	end		
end

function p._main(args)
end

function p.main(frame)
	local args = require('Module:Arguments').getArgs(frame, {
		wrappers = 'Template:IPAc-en'
	})
	return p._main(args)
end

-- return p
return makeTitle