Module:Sandbox/RexxS/GCI09a

This is the current revision of this page, as edited by imported>RexxS at 17:06, 30 October 2018 (update). The present address (URL) is a permanent link to this version.

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
-- Module to demonstrate a MW library call for Google-Code-in-2017
-- Function pageinfo returns the name of the page without the namespace or interwiki prefixes

p = {}

p.pageinfo = function( frame )
	local ttl = frame.args.title
	local ttlobj = mw.title.new( ttl )
	local txt = ttlobj.text
	return txt
end

return p