<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.cern.ch/index.php?action=history&amp;feed=atom&amp;title=Module%3AOther_uses</id>
	<title>Module:Other uses - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.cern.ch/index.php?action=history&amp;feed=atom&amp;title=Module%3AOther_uses"/>
	<link rel="alternate" type="text/html" href="https://wiki.cern.ch/index.php?title=Module:Other_uses&amp;action=history"/>
	<updated>2026-04-04T05:50:21Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>https://wiki.cern.ch/index.php?title=Module:Other_uses&amp;diff=11281&amp;oldid=prev</id>
		<title>Vigen: 1 revision imported from :wikipedia:Module:Other_uses</title>
		<link rel="alternate" type="text/html" href="https://wiki.cern.ch/index.php?title=Module:Other_uses&amp;diff=11281&amp;oldid=prev"/>
		<updated>2026-03-31T21:29:29Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported from &lt;a href=&quot;https://en.wikipedia.org/wiki/Module:Other_uses&quot; class=&quot;extiw&quot; title=&quot;wikipedia:Module:Other uses&quot;&gt;wikipedia:Module:Other_uses&lt;/a&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 21:29, 31 March 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Vigen</name></author>
	</entry>
	<entry>
		<id>https://wiki.cern.ch/index.php?title=Module:Other_uses&amp;diff=11280&amp;oldid=prev</id>
		<title>wikipedia&gt;Nihiltres: Removed p.otheruses2 function per its template&#039;s deletion</title>
		<link rel="alternate" type="text/html" href="https://wiki.cern.ch/index.php?title=Module:Other_uses&amp;diff=11280&amp;oldid=prev"/>
		<updated>2020-06-01T23:06:08Z</updated>

		<summary type="html">&lt;p&gt;Removed p.otheruses2 function per its template&amp;#039;s deletion&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local mHatnote = require(&amp;#039;Module:Hatnote&amp;#039;)&lt;br /&gt;
local mHatlist = require(&amp;#039;Module:Hatnote list&amp;#039;)&lt;br /&gt;
local mArguments --initialize lazily&lt;br /&gt;
local mTableTools --initialize lazily&lt;br /&gt;
local libraryUtil = require(&amp;#039;libraryUtil&amp;#039;)&lt;br /&gt;
local checkType = libraryUtil.checkType&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
-- Produces standard {{other uses}} implementation&lt;br /&gt;
function p.otheruses(frame)&lt;br /&gt;
	mArguments = require(&amp;#039;Module:Arguments&amp;#039;)&lt;br /&gt;
	mTableTools = require(&amp;#039;Module:TableTools&amp;#039;)&lt;br /&gt;
	local args = mTableTools.compressSparseArray(mArguments.getArgs(frame))&lt;br /&gt;
	local title = mw.title.getCurrentTitle().prefixedText&lt;br /&gt;
	return p._otheruses(args, {title=title})&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--Implements &amp;quot;other [x]&amp;quot; templates with otherText supplied at invocation&lt;br /&gt;
function p.otherX(frame)&lt;br /&gt;
	mArguments = require(&amp;#039;Module:Arguments&amp;#039;)&lt;br /&gt;
	mTableTools = require(&amp;#039;Module:TableTools&amp;#039;)&lt;br /&gt;
	local x = frame.args[1]&lt;br /&gt;
	local args = mTableTools.compressSparseArray(&lt;br /&gt;
		mArguments.getArgs(frame, {parentOnly = true})&lt;br /&gt;
	)&lt;br /&gt;
	local options = {&lt;br /&gt;
		title = mw.title.getCurrentTitle().prefixedText,&lt;br /&gt;
		otherText = x&lt;br /&gt;
	}&lt;br /&gt;
	return p._otheruses(args, options)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- Main generator&lt;br /&gt;
function p._otheruses(args, options)&lt;br /&gt;
	--Type-checks and defaults&lt;br /&gt;
	checkType(&amp;#039;_otheruses&amp;#039;, 1, args, &amp;#039;table&amp;#039;, true)&lt;br /&gt;
	args = args or {}&lt;br /&gt;
	checkType(&amp;#039;_otheruses&amp;#039;, 2, options, &amp;#039;table&amp;#039;)&lt;br /&gt;
	if not (options.defaultPage or options.title) then&lt;br /&gt;
		error(&amp;#039;No default title data provided in &amp;quot;_otheruses&amp;quot; options table&amp;#039;, 2)&lt;br /&gt;
	end&lt;br /&gt;
	local emptyArgs = true&lt;br /&gt;
	for k, v in pairs(args) do&lt;br /&gt;
		if type(k) == &amp;#039;number&amp;#039; then emptyArgs = false break end&lt;br /&gt;
	end&lt;br /&gt;
	if emptyArgs then&lt;br /&gt;
		args = {&lt;br /&gt;
			options.defaultPage or&lt;br /&gt;
			mHatnote.disambiguate(options.title, options.disambiguator)&lt;br /&gt;
		}&lt;br /&gt;
	end&lt;br /&gt;
	--Generate and return hatnote&lt;br /&gt;
	local text = mHatlist.forSeeTableToString({{&lt;br /&gt;
		use = options.otherText and &amp;quot;other &amp;quot; .. options.otherText or nil,&lt;br /&gt;
		pages = args&lt;br /&gt;
	}})&lt;br /&gt;
	return mHatnote._hatnote(text)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>wikipedia&gt;Nihiltres</name></author>
	</entry>
</feed>