<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="nl">
	<id>https://wikitest.nl/index.php?action=history&amp;feed=atom&amp;title=Module%3ADisambiguation</id>
	<title>Module:Disambiguation - Bewerkingsoverzicht</title>
	<link rel="self" type="application/atom+xml" href="https://wikitest.nl/index.php?action=history&amp;feed=atom&amp;title=Module%3ADisambiguation"/>
	<link rel="alternate" type="text/html" href="https://wikitest.nl/index.php?title=Module:Disambiguation&amp;action=history"/>
	<updated>2026-04-06T04:07:29Z</updated>
	<subtitle>Bewerkingsoverzicht voor deze pagina op de wiki</subtitle>
	<generator>MediaWiki 1.43.6</generator>
	<entry>
		<id>https://wikitest.nl/index.php?title=Module:Disambiguation&amp;diff=56479&amp;oldid=prev</id>
		<title>Colani: 1 versie geïmporteerd</title>
		<link rel="alternate" type="text/html" href="https://wikitest.nl/index.php?title=Module:Disambiguation&amp;diff=56479&amp;oldid=prev"/>
		<updated>2024-01-14T11:21:03Z</updated>

		<summary type="html">&lt;p&gt;1 versie geïmporteerd&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nieuwe pagina&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local p = {}&lt;br /&gt;
local mRedirect = require(&amp;#039;Module:Redirect&amp;#039;)&lt;br /&gt;
local disambiguationTemplates = mw.loadData(&amp;#039;Module:Disambiguation/templates&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
local function capitalize(s)&lt;br /&gt;
	-- This function only works on ASCII strings. If your wiki has&lt;br /&gt;
	-- disambiguation templates that use Unicode strings, use the commented-out&lt;br /&gt;
	-- line instead. Enwiki uses ASCII string manipulation only here to improve&lt;br /&gt;
	-- performance.&lt;br /&gt;
	return s:sub(1, 1):upper() .. s:sub(2, -1)&lt;br /&gt;
	-- return mw.ustring.upper(mw.ustring.sub(1, 1)) .. mw.ustring.sub(2, -1)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function isDisambiguationTemplate(template)&lt;br /&gt;
	return disambiguationTemplates[capitalize(template)] or false&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p.isDisambiguation = function(content)&lt;br /&gt;
	-- false if there is no content&lt;br /&gt;
	if content == nil then&lt;br /&gt;
		return false&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- redirects are not disambiguation pages&lt;br /&gt;
	if mRedirect.getTargetFromText(content) ~= nil then&lt;br /&gt;
		return false&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- check for disambiguation templates in the content&lt;br /&gt;
	local templateNames = {}&lt;br /&gt;
	for template in string.gmatch(content, &amp;quot;{{%s*([^|}]-)%s*[|}]&amp;quot;) do&lt;br /&gt;
		if isDisambiguationTemplate(template) then&lt;br /&gt;
			return true&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- check for magic word&lt;br /&gt;
	if string.find(content, &amp;quot;__DISAMBIG__&amp;quot;, 1, true) ~= nil then&lt;br /&gt;
		return true&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	return false&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
p._isDisambiguationPage = function(page)&lt;br /&gt;
	-- Look &amp;quot;(disambiguation)&amp;quot; in the title&lt;br /&gt;
	if string.find(page, &amp;quot;(disambiguation)&amp;quot;,0,true) ~= nil then&lt;br /&gt;
		return true;&lt;br /&gt;
	end&lt;br /&gt;
	-- Look for disamiguation template in page content&lt;br /&gt;
	local title = mw.title.new(page)&lt;br /&gt;
	if not title then return false end&lt;br /&gt;
	local content = title:getContent()&lt;br /&gt;
	return p.isDisambiguation(content)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- Entry points for templates&lt;br /&gt;
p.isDisambiguationPage = function(frame)&lt;br /&gt;
	local title = frame.args[1]&lt;br /&gt;
	return p._isDisambiguationPage(title) and &amp;quot;yes&amp;quot; or &amp;quot;&amp;quot;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Colani</name></author>
	</entry>
</feed>