<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://mywikibiz.com/index.php?action=history&amp;feed=atom&amp;title=Module%3ADisambiguation%2Fdoc</id>
	<title>Module:Disambiguation/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://mywikibiz.com/index.php?action=history&amp;feed=atom&amp;title=Module%3ADisambiguation%2Fdoc"/>
	<link rel="alternate" type="text/html" href="https://mywikibiz.com/index.php?title=Module:Disambiguation/doc&amp;action=history"/>
	<updated>2026-06-06T12:58:49Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.35.3</generator>
	<entry>
		<id>https://mywikibiz.com/index.php?title=Module:Disambiguation/doc&amp;diff=471516&amp;oldid=prev</id>
		<title>Zoran: Pywikibot 6.4.0</title>
		<link rel="alternate" type="text/html" href="https://mywikibiz.com/index.php?title=Module:Disambiguation/doc&amp;diff=471516&amp;oldid=prev"/>
		<updated>2021-07-15T21:18:19Z</updated>

		<summary type="html">&lt;p&gt;Pywikibot 6.4.0&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Module rating|alpha}}&lt;br /&gt;
This module detects if a given page is a disambiguation page.&lt;br /&gt;
&lt;br /&gt;
==Usage==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{#invoke:Disambiguation|isDisambiguationPage|Page title}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
:returns &amp;lt;code&amp;gt;yes&amp;lt;/code&amp;gt; if the page is a disambiguation page, or nothing if the page is not a disambiguation page&lt;br /&gt;
&lt;br /&gt;
Examples:&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#invoke:Disambiguation|isDisambiguationPage|&amp;lt;/nowiki&amp;gt;[[Paris]]}}&amp;lt;/code&amp;gt; → {{#invoke:Disambiguation|isDisambiguationPage|Paris}}&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#invoke:Disambiguation|isDisambiguationPage|&amp;lt;/nowiki&amp;gt;[[New]]}}&amp;lt;/code&amp;gt; → {{#invoke:Disambiguation|isDisambiguationPage|New}}&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#invoke:Disambiguation|isDisambiguationPage|&amp;lt;/nowiki&amp;gt;[[Black swan (disambiguation)]]}}&amp;lt;/code&amp;gt; → {{#invoke:Disambiguation|isDisambiguationPage|Black swan (disambiguation)}}&lt;br /&gt;
You can also use magic words like {{tl|SUBJECTPAGENAME}}:&lt;br /&gt;
* &amp;lt;code&amp;gt;&amp;lt;nowiki&amp;gt;{{#invoke:Disambiguation|isDisambiguationPage|{{SUBJECTPAGENAME}}&amp;lt;/nowiki&amp;gt;}}&amp;lt;/code&amp;gt; → {{#invoke:Disambiguation|isDisambiguationPage|{{SUBJECTPAGENAME}}}}&lt;br /&gt;
&lt;br /&gt;
===Usage within Lua modules===&lt;br /&gt;
Import this module, e.g with&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local mDisambiguation = require('Module:Disambiguation')&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
Then you can use the functions &amp;lt;code&amp;gt;isDisambiguation&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;_isDisambiguationPage&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
If you have already have a [[mw:Lua_reference_manual#Title_objects|Title object]] for the page to check, get the content using the title object's getContent() method, and pass that into &amp;lt;code&amp;gt;isDisambiguation&amp;lt;/code&amp;gt;:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local isDab = mDisambiguation.isDisambiguation(content) -- returns true or false&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
:(where &amp;lt;code&amp;gt;content&amp;lt;/code&amp;gt; is a string, the wikitext content of page to check)&lt;br /&gt;
&lt;br /&gt;
If you don't otherwise need the title, you can pass in the page name to &amp;lt;code&amp;gt;_isDisambiguationPage&amp;lt;/code&amp;gt;:&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
local isDab = mDisambiguation._isDisambiguationPage(pageName) -- returns true or false&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
:(where &amp;lt;code&amp;gt;pageName&amp;lt;/code&amp;gt; is a string, the name of page to check)&lt;br /&gt;
&amp;lt;includeonly&amp;gt;&lt;br /&gt;
[[Category:Disambiguation and redirection templates]]&lt;br /&gt;
&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Zoran</name></author>
	</entry>
</feed>