Changes
Jump to navigation
Jump to search
Module:Other uses
(view source)
Revision as of 12:07, 14 April 2017
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
WikiSysop
Bureaucrats
, private-view, public-view,
Administrators
97,692
edits
Navigation menu
Personal tools
Log in
Request account
Namespaces
Module
Discussion
Variants
Views
Read
View source
View history
More
Search
Navigation
Main page
Create New Page
Temples of India
Subscribe Dharmawiki
Recent changes
Random page
Author Help
Donate to Cause
Donate For Dharma
Tools
Special pages
Printable version