Changes

Jump to navigation Jump to search
446 bytes added ,  12:07, 14 April 2017
m
1 revision imported
Line 12: Line 12:  
mTableTools = require('Module:TableTools')
 
mTableTools = require('Module:TableTools')
 
local args = mTableTools.compressSparseArray(mArguments.getArgs(frame))
 
local args = mTableTools.compressSparseArray(mArguments.getArgs(frame))
local title = mw.title.getCurrentTitle().text
+
local title = mw.title.getCurrentTitle().prefixedText
 
return p._otheruses(args, {title=title})
 
return p._otheruses(args, {title=title})
 +
end
 +
 +
--Implements "other [x]" templates with otherText supplied at invocation
 +
function p.otherX(frame)
 +
mArguments = require('Module:Arguments')
 +
mTableTools = require('Module:TableTools')
 +
local x = frame.args[1]
 +
local args = mTableTools.compressSparseArray(
 +
mArguments.getArgs(frame, {parentOnly = true})
 +
)
 +
local options = {
 +
title = mw.title.getCurrentTitle().prefixedText,
 +
otherText = x
 +
}
 +
return p._otheruses(args, options)
 
end
 
end
  
Bureaucrats, private-view, public-view, Administrators
97,692

edits

Navigation menu