Module:Purge

From RuneRealm Wiki

This is the current revision of this page, as edited by Alex (talk | contribs) at 23:35, 11 October 2024 (Created page with "-- <nowiki> -- Implements Template:Purge -- local p = {} function p._purge(anchor, text, tag, noinplace) local page_title = mw.title.getCurrentTitle().fullText local link = string.format('[%s#%s %s]',tostring(mw.uri.fullUrl(page_title,'action=purge')),anchor or 'res', text or '(wrong?)') link = string.format('<%s class="plainlinks%s" id="res" title="If this information seems incorrect, click here to force an update.">%s</%s>', tag or 'small', (noinplace and '') o..."). The present address (URL) is a permanent link to this version.

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Module documentation
This documentation is transcluded from Template:No documentation/doc. [edit] [history] [purge]
This module does not have any documentation. Please consider adding documentation at Module:Purge/doc. [edit]
-- <nowiki>
-- Implements Template:Purge
--

local p = {}

function p._purge(anchor, text, tag, noinplace)
	local page_title = mw.title.getCurrentTitle().fullText
	local link = string.format('[%s#%s %s]',tostring(mw.uri.fullUrl(page_title,'action=purge')),anchor or 'res', text or '(wrong?)')
	link = string.format('<%s class="plainlinks%s" id="res" title="If this information seems incorrect, click here to force an update.">%s</%s>', 
		tag or 'small', (noinplace and '') or ' jsPurgeLink', link, tag or 'small')
	return link
end

function p.purge(frame)
	return p._purge(frame:getParent().args.anchor)
end

return p