<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://70.231.62.181/index.php?action=history&amp;feed=atom&amp;title=Module%3ASubject_page_header</id>
	<title>Module:Subject page header - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://70.231.62.181/index.php?action=history&amp;feed=atom&amp;title=Module%3ASubject_page_header"/>
	<link rel="alternate" type="text/html" href="http://70.231.62.181/index.php?title=Module:Subject_page_header&amp;action=history"/>
	<updated>2026-05-01T14:14:38Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>http://70.231.62.181/index.php?title=Module:Subject_page_header&amp;diff=25447052&amp;oldid=prev</id>
		<title>imported&gt;SD0001: add hatnote for securepoll pages</title>
		<link rel="alternate" type="text/html" href="http://70.231.62.181/index.php?title=Module:Subject_page_header&amp;diff=25447052&amp;oldid=prev"/>
		<updated>2025-12-15T19:19:34Z</updated>

		<summary type="html">&lt;p&gt;add hatnote for securepoll pages&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;
&lt;br /&gt;
p.main = function(frame)&lt;br /&gt;
	local title = mw.title.getCurrentTitle()&lt;br /&gt;
	&lt;br /&gt;
	-- Bail out quickly on main namespace&lt;br /&gt;
	if title.namespace == 0 then&lt;br /&gt;
		return &amp;#039;&amp;#039;&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local pageName = title.fullText&lt;br /&gt;
	&lt;br /&gt;
	-- Optimization: first check page name suffix before looking up content model&lt;br /&gt;
	local isJsonPage = pageName:len() &amp;gt; 5 and pageName:sub(-5) == &amp;quot;.json&amp;quot; and title.contentModel == &amp;#039;json&amp;#039;&lt;br /&gt;
&lt;br /&gt;
	if isJsonPage then&lt;br /&gt;
		local Hatnote = require(&amp;#039;Module:Hatnote&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
		local docPageName = pageName .. &amp;#039;/doc&amp;#039;&lt;br /&gt;
		local docTitle = mw.title.new(docPageName)&lt;br /&gt;
		local content = &amp;#039;&amp;#039;&lt;br /&gt;
		if docTitle.exists then&lt;br /&gt;
			content = &lt;br /&gt;
				&amp;#039;&amp;lt;hr&amp;gt;&amp;#039; .. &lt;br /&gt;
				Hatnote._hatnote(&lt;br /&gt;
					&amp;#039;The following documentation is located at [[&amp;#039;..docPageName..&amp;#039;]].&amp;lt;span class=&amp;quot;mw-editsection-like plainlinks&amp;quot;&amp;gt;[ [[Special:EditPage/&amp;#039;..docPageName..&amp;#039;|edit]] ] [ [[Special:PageHistory/&amp;#039;..docPageName..&amp;#039;|history]] ]&amp;lt;/span&amp;gt;&amp;#039;&lt;br /&gt;
				) ..&lt;br /&gt;
				frame:preprocess(docTitle.content)&lt;br /&gt;
		else &lt;br /&gt;
			content = Hatnote._hatnote(&amp;#039;Documentation for this JSON page can be created at the [[&amp;#039;..docPageName..&amp;#039;|/doc]] subpage.&amp;#039;)&lt;br /&gt;
		end&lt;br /&gt;
&lt;br /&gt;
		return &amp;#039;&amp;lt;div class=&amp;quot;mw-parser-output&amp;quot;&amp;gt;&amp;#039; .. content .. &amp;#039;&amp;lt;/div&amp;gt;&amp;#039;&lt;br /&gt;
	&lt;br /&gt;
	elseif title.namespace == 8 and title.contentModel == &amp;#039;SecurePoll&amp;#039; then&lt;br /&gt;
		local Hatnote = require(&amp;#039;Module:Hatnote&amp;#039;)&lt;br /&gt;
		&lt;br /&gt;
		return &amp;#039;&amp;lt;div class=&amp;quot;mw-parser-output&amp;quot;&amp;gt;&amp;#039;..Hatnote._hatnote(&amp;#039;This page contains the configuration for a [[m:SecurePoll|SecurePoll]] election. It cannot be directly edited. Any changes must be done via [[Special:SecurePoll]].&amp;#039;)..&amp;#039;&amp;lt;/div&amp;gt;&amp;#039;&lt;br /&gt;
	end&lt;br /&gt;
	return &amp;#039;&amp;#039;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>imported&gt;SD0001</name></author>
	</entry>
</feed>