<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://stockhub.co/index.php?action=history&amp;feed=atom&amp;title=Module%3AEnglish_variant_notice</id>
	<title>Module:English variant notice - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://stockhub.co/index.php?action=history&amp;feed=atom&amp;title=Module%3AEnglish_variant_notice"/>
	<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:English_variant_notice&amp;action=history"/>
	<updated>2026-04-16T21:19:51Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://stockhub.co/index.php?title=Module:English_variant_notice&amp;diff=136065&amp;oldid=prev</id>
		<title>imported&gt;Ianblair23: page move has been reverted</title>
		<link rel="alternate" type="text/html" href="https://stockhub.co/index.php?title=Module:English_variant_notice&amp;diff=136065&amp;oldid=prev"/>
		<updated>2022-10-15T02:18:50Z</updated>

		<summary type="html">&lt;p&gt;page move has been reverted&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local p = {}&lt;br /&gt;
local categoryHandler = require( &amp;#039;Module:Category handler&amp;#039; ).main&lt;br /&gt;
local yesno = require(&amp;#039;Module:Yesno&amp;#039;)&lt;br /&gt;
local mArguments = require(&amp;#039;Module:Arguments&amp;#039;)&lt;br /&gt;
local n&lt;br /&gt;
&lt;br /&gt;
function p.main (frame)&lt;br /&gt;
	local fulltitle = frame:getParent():getTitle()&lt;br /&gt;
	local templatetitle = string.sub(fulltitle, 10)&lt;br /&gt;
	local title = mw.title.getCurrentTitle()&lt;br /&gt;
	if mw.title.equals(title, mw.title.makeTitle(&amp;#039;Template&amp;#039;, title.rootText)) then --if it is on the main template page, load doc&lt;br /&gt;
		n = mArguments.getArgs(frame, {parentFirst = true})&lt;br /&gt;
		n.variant = n.variant or templatetitle --automatically use title generated from template name&lt;br /&gt;
		if  n.doc ~= &amp;#039;no&amp;#039; then&lt;br /&gt;
			return frame:expandTemplate {title = &amp;#039;English variant notice/documentation&amp;#039;, args = n}&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return p._main (frame, templatetitle)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p._main (frame, templatetitle)&lt;br /&gt;
	n = mArguments.getArgs(frame, {parentFirst = true})&lt;br /&gt;
	n.variant = n.variant or templatetitle --automatically use title generated from template name&lt;br /&gt;
	n.category = &amp;#039;&amp;#039;&lt;br /&gt;
	n.spelling_examples = n.spelling_examples or n[&amp;#039;spelling examples&amp;#039;]&lt;br /&gt;
	n.bid = not not n.id --bool of n.id, for making iupac and oxford not be added to the id if it doesn&amp;#039;t exist&lt;br /&gt;
	--Generate the text if it isn&amp;#039;t specified&lt;br /&gt;
	if not n.text then&lt;br /&gt;
		p.modify_text ()&lt;br /&gt;
		p.base_text (frame)&lt;br /&gt;
	end&lt;br /&gt;
	p.cat (&amp;#039;Wikipedia articles that use &amp;#039;..n.variant)&lt;br /&gt;
	return p.style(frame)..(n.category or &amp;#039;&amp;#039;)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.cat (category)&lt;br /&gt;
	category = string.format (&amp;#039;[[Category:%s]]&amp;#039;, category)&lt;br /&gt;
	n.category = n.category..(categoryHandler{category, nocat = n.nocat, page = n.page, talk = category, template = category} or &amp;#039;&amp;#039;)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.modify_text ()&lt;br /&gt;
	n.spelling = &amp;#039;&amp;#039;&lt;br /&gt;
	n.extravariant = &amp;#039;&amp;#039;&lt;br /&gt;
	n.extraguide = &amp;#039;&amp;#039;&lt;br /&gt;
	bOxford = yesno(n.Oxford)&lt;br /&gt;
	bIUPAC = yesno(n.IUPAC)&lt;br /&gt;
	chemtext = &amp;quot;; &amp;#039;&amp;#039;aluminium&amp;#039;&amp;#039;, &amp;#039;&amp;#039;sulfur&amp;#039;&amp;#039; and &amp;#039;&amp;#039;caesium&amp;#039;&amp;#039;&amp;quot;&lt;br /&gt;
	if bOxford then&lt;br /&gt;
		n.spelling_examples = &amp;quot;&amp;#039;&amp;#039;colour&amp;#039;&amp;#039;, &amp;#039;&amp;#039;realize&amp;#039;&amp;#039;, &amp;#039;&amp;#039;organization&amp;#039;&amp;#039;, &amp;#039;&amp;#039;analyse&amp;#039;&amp;#039;; note that &amp;#039;&amp;#039;&amp;#039;-ize&amp;#039;&amp;#039;&amp;#039; is used instead of -ise&amp;quot;&lt;br /&gt;
		p.cat (&amp;#039;Wikipedia articles that use Oxford spelling&amp;#039;)&lt;br /&gt;
		if n.bid then n.id = n.id..n.Oxford end&lt;br /&gt;
		if bIUPAC then&lt;br /&gt;
			n.extravariant = &amp;#039; with [[Oxford spelling|Oxford]] and [[IUPAC]] spelling&amp;#039;&lt;br /&gt;
			n.spelling_examples= n.spelling_examples..chemtext&lt;br /&gt;
			p.IUPAC ()&lt;br /&gt;
			return&lt;br /&gt;
		end&lt;br /&gt;
		n.extravariant = n.extravariant..&amp;#039; with [[Oxford spelling]]&amp;#039;&lt;br /&gt;
		return&lt;br /&gt;
	elseif bIUPAC then&lt;br /&gt;
		n.extravariant = &amp;#039; with [[IUPAC]] spelling&amp;#039;&lt;br /&gt;
		n.spelling_examples = n.spelling_examples and n.spelling_examples..chemtext or &amp;quot;&amp;#039;&amp;#039;aluminium&amp;#039;&amp;#039;, &amp;#039;&amp;#039;sulfur&amp;#039;&amp;#039; and &amp;#039;&amp;#039;caesium&amp;#039;&amp;#039;&amp;quot;&lt;br /&gt;
		p.IUPAC ()&lt;br /&gt;
		return&lt;br /&gt;
	end&lt;br /&gt;
	--only if there are spelling examples, put &amp;#039;has its own spelling conventions&amp;#039;&lt;br /&gt;
	if n.spelling_examples then n.spelling = &amp;#039;, which has its own spelling conventions&amp;#039; end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.IUPAC ()&lt;br /&gt;
	n.extraguide = &amp;#039; and [[Wikipedia:Naming conventions (chemistry)|chemistry naming conventions]]&amp;#039;&lt;br /&gt;
	p.cat(&amp;#039;Wikipedia articles that use IUPAC spelling&amp;#039;)&lt;br /&gt;
	n.flag = &amp;#039;no&amp;#039;&lt;br /&gt;
	if n.bid then n.id = n.id..&amp;#039;iupac&amp;#039; end&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.base_text (frame)&lt;br /&gt;
	n.subjectspace = require(&amp;#039;Module:Pagetype&amp;#039;).main()&lt;br /&gt;
	n.spelling_examples = n.spelling_examples and string.format(&amp;#039; (%s)&amp;#039;, n.spelling_examples) or &amp;#039;&amp;#039;&lt;br /&gt;
	n.terms = n[1] or n.terms&lt;br /&gt;
	n.terms = n.terms and string.format(&amp;#039; (including %s)&amp;#039;, n.terms) or &amp;#039;&amp;#039;&lt;br /&gt;
	n.compare = n.compare and (n.compare..&amp;#039; &amp;#039;) or &amp;#039;&amp;#039;&lt;br /&gt;
	n.text = string.format([=[This %s is &amp;#039;&amp;#039;&amp;#039;written in [[%s]]%s&amp;#039;&amp;#039;&amp;#039;%s%s and some terms that are used in it%s may be different or absent from %sother [[List of dialects of English|varieties of English]]. According to the [[Wikipedia:Manual of Style#National varieties of English|relevant style guide]]%s, this should not be changed without [[Wikipedia:Consensus#Levels of consensus|broad consensus]].]=],&lt;br /&gt;
		n.subjectspace, n.variant, n.extravariant, n.spelling, n.spelling_examples, n.terms, n.compare, n.extraguide)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.style (frame)&lt;br /&gt;
	local size&lt;br /&gt;
	if yesno(n.small) then size = &amp;#039;30px&amp;#039;&lt;br /&gt;
	elseif n.size then size = n.size&lt;br /&gt;
	else size = &amp;#039;50px&amp;#039;&lt;br /&gt;
	end&lt;br /&gt;
	if n.image then&lt;br /&gt;
		if n.flag == nil or yesno(n.flag) then&lt;br /&gt;
			n.image = string.format(&amp;#039;[[File:%s|%s]]&amp;#039;, n.image, size)&lt;br /&gt;
		else&lt;br /&gt;
			--check if the globe should be &amp;quot;color&amp;quot; instead of &amp;quot;colour&amp;quot;&lt;br /&gt;
			if yesno(n.color) then&lt;br /&gt;
				n.image = string.format(&amp;#039;[[File:Globe spelling color.png|%s]]&amp;#039;, size)&lt;br /&gt;
			else&lt;br /&gt;
				n.image = string.format(&amp;#039;[[File:Globe spelling colour.svg|%s]]&amp;#039;, size)&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	if n.form == &amp;#039;editnotice&amp;#039; then&lt;br /&gt;
		if n.bid then n.id = n.id..&amp;#039;editnotice&amp;#039; end&lt;br /&gt;
		n.expiry = n.expiry or &amp;#039;indefinite&amp;#039;&lt;br /&gt;
		--categorize editnotice if specified&lt;br /&gt;
		if yesno(n.editnotice_cat) then&lt;br /&gt;
			p.cat(string.format(&amp;#039;Pages with %s editnotice&amp;#039;, n.variant))&lt;br /&gt;
		end&lt;br /&gt;
		return frame:expandTemplate{title = &amp;#039;editnotice&amp;#039;, args = n}&lt;br /&gt;
	else&lt;br /&gt;
		local message_box = require(&amp;#039;Module:Message box&amp;#039;).main&lt;br /&gt;
		if not n.image then n.image = &amp;#039;none&amp;#039; end&lt;br /&gt;
		n[&amp;#039;type&amp;#039;] = &amp;#039;style&amp;#039;&lt;br /&gt;
		return message_box (&amp;#039;tmbox&amp;#039;, n)&lt;br /&gt;
	end	&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>imported&gt;Ianblair23</name></author>
	</entry>
</feed>