<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://moasspedia.org/w/index.php?action=history&amp;feed=atom&amp;title=Module%3AAbout-distinguish</id>
	<title>Module:About-distinguish - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://moasspedia.org/w/index.php?action=history&amp;feed=atom&amp;title=Module%3AAbout-distinguish"/>
	<link rel="alternate" type="text/html" href="https://moasspedia.org/w/index.php?title=Module:About-distinguish&amp;action=history"/>
	<updated>2026-04-09T02:43:57Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.37.2</generator>
	<entry>
		<id>https://moasspedia.org/w/index.php?title=Module:About-distinguish&amp;diff=596&amp;oldid=prev</id>
		<title>Wikipedia&gt;MusikAnimal: Protected &quot;Module:About-distinguish&quot;: High-risk template or module; match protection with associated template ([Edit=Require autoconfirmed or confirmed access] (indefinite))</title>
		<link rel="alternate" type="text/html" href="https://moasspedia.org/w/index.php?title=Module:About-distinguish&amp;diff=596&amp;oldid=prev"/>
		<updated>2019-02-25T23:17:07Z</updated>

		<summary type="html">&lt;p&gt;Protected &amp;quot;&lt;a href=&quot;/wiki/Module:About-distinguish&quot; title=&quot;Module:About-distinguish&quot;&gt;Module:About-distinguish&lt;/a&gt;&amp;quot;: &lt;a href=&quot;https://en.wikipedia.org/wiki/High-risk_templates&quot; class=&quot;extiw&quot; title=&quot;wikipedia:High-risk templates&quot;&gt;High-risk template or module&lt;/a&gt;; match protection with associated template ([Edit=Require autoconfirmed or confirmed access] (indefinite))&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 = require(&amp;#039;Module:TableTools&amp;#039;)&lt;br /&gt;
local checkType = require(&amp;#039;libraryUtil&amp;#039;).checkType&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
function p.aboutDistinguish (frame)&lt;br /&gt;
	mArguments = require(&amp;#039;Module:Arguments&amp;#039;)&lt;br /&gt;
	local args = mArguments.getArgs(frame)&lt;br /&gt;
	return p._aboutDistinguish(args)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p._aboutDistinguish(args, options)&lt;br /&gt;
	-- Type checks and defaults&lt;br /&gt;
	checkType(&amp;#039;_aboutDistinguish&amp;#039;, 1, args, &amp;#039;table&amp;#039;)&lt;br /&gt;
	if not args[1] then&lt;br /&gt;
		return mHatnote.makeWikitextError(&lt;br /&gt;
			&amp;#039;no about topic supplied&amp;#039;,&lt;br /&gt;
			&amp;#039;Template:About-distinguish&amp;#039;,&lt;br /&gt;
			args.category&lt;br /&gt;
		)&lt;br /&gt;
	end&lt;br /&gt;
	if not args[2] then&lt;br /&gt;
		return mHatnote.makeWikitextError(&lt;br /&gt;
			&amp;#039;no page to be distinguished supplied&amp;#039;,&lt;br /&gt;
			&amp;#039;Template:About-distinguish&amp;#039;,&lt;br /&gt;
			args.category&lt;br /&gt;
		)&lt;br /&gt;
	end&lt;br /&gt;
	checkType(&amp;#039;_aboutDistinguish&amp;#039;, 2, options, &amp;#039;table&amp;#039;, true)&lt;br /&gt;
	options = options or {}&lt;br /&gt;
	local defaultOptions = {&lt;br /&gt;
		defaultPageType = &amp;#039;page&amp;#039;,&lt;br /&gt;
		namespace = mw.title.getCurrentTitle().namespace,&lt;br /&gt;
		pageTypesByNamespace = {&lt;br /&gt;
			[0] = &amp;#039;article&amp;#039;,&lt;br /&gt;
			[14] = &amp;#039;category&amp;#039;&lt;br /&gt;
		},&lt;br /&gt;
		sectionString = &amp;#039;section&amp;#039;&lt;br /&gt;
	}&lt;br /&gt;
	for k, v in pairs(defaultOptions) do&lt;br /&gt;
		if options[k] == nil then options[k] = v end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- Set pieces of initial &amp;quot;about&amp;quot; string&lt;br /&gt;
	local pageType = (args.section and options.sectionString) or&lt;br /&gt;
		options.pageTypesByNamespace[options.namespace] or&lt;br /&gt;
		options.defaultPageType&lt;br /&gt;
	args = mTableTools.compressSparseArray(args)&lt;br /&gt;
	local about = table.remove(args, 1)&lt;br /&gt;
&lt;br /&gt;
	--Get pronoun from Wikidata. Really basic, but it should work.&lt;br /&gt;
	local pronouns = {&lt;br /&gt;
		[&amp;#039;female&amp;#039;] = &amp;#039;She is&amp;#039;,&lt;br /&gt;
		[&amp;#039;transgender female&amp;#039;] = &amp;quot;She is&amp;quot;,&lt;br /&gt;
		[&amp;#039;male&amp;#039;] = &amp;#039;He is&amp;#039;,&lt;br /&gt;
		[&amp;#039;transgender male&amp;#039;] = &amp;#039;He is&amp;#039;,&lt;br /&gt;
		[&amp;#039;default&amp;#039;] = &amp;#039;They are&amp;#039;&lt;br /&gt;
	}&lt;br /&gt;
	local wde = mw.wikibase.getEntity()&lt;br /&gt;
	local p31 = (wde and wde:formatPropertyValues(&amp;#039;P31&amp;#039;).value) == &amp;#039;human&amp;#039;&lt;br /&gt;
	local p21 = wde and wde:formatPropertyValues(&amp;#039;P21&amp;#039;).value&lt;br /&gt;
	local pronoun = p31 and (pronouns[p21] or pronouns[&amp;#039;default&amp;#039;]) or &amp;#039;It is&amp;#039;&lt;br /&gt;
&lt;br /&gt;
	--Assemble everything together and return&lt;br /&gt;
	local text = string.format(&lt;br /&gt;
		&amp;#039;This %s is about %s. %s not to be confused with %s.&amp;#039;,&lt;br /&gt;
		pageType,&lt;br /&gt;
		about,&lt;br /&gt;
		pronoun,&lt;br /&gt;
		mHatlist.orList(args, true)&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;MusikAnimal</name></author>
	</entry>
</feed>