Module:Other uses of
Appearance
Usage
This module should neither be invoked directly nor used from Lua. Use the {{other uses of}} template instead.
local mOtheruses = require('Module:Other uses')
local p = {}
p.otherusesof = function (frame)
function notBlank (blarg) return blarg ~= '' and blarg end
local ofWhat = notBlank(frame:getParent().args[1]) or mw.title.getCurrentTitle().text
local page = notBlank(frame:getParent().args[2])
local options = {}
options.title = ofWhat
options.otherText = 'uses of "' .. ofWhat .. '"'
if page then arg = {page} else arg = {} end
return mOtheruses._otheruses(arg, options)
end
return p