<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://sarkic-cults.group/index.php?action=history&amp;feed=atom&amp;title=Module%3ADocument_status</id>
	<title>Module:Document status - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://sarkic-cults.group/index.php?action=history&amp;feed=atom&amp;title=Module%3ADocument_status"/>
	<link rel="alternate" type="text/html" href="https://sarkic-cults.group/index.php?title=Module:Document_status&amp;action=history"/>
	<updated>2026-10-22T03:02:18Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.2</generator>
	<entry>
		<id>https://sarkic-cults.group/index.php?title=Module:Document_status&amp;diff=1294&amp;oldid=prev</id>
		<title>DivošiRunner: Improve archive navigation, reusable templates and document metadata (2026-10-05)</title>
		<link rel="alternate" type="text/html" href="https://sarkic-cults.group/index.php?title=Module:Document_status&amp;diff=1294&amp;oldid=prev"/>
		<updated>2026-10-05T13:30:37Z</updated>

		<summary type="html">&lt;p&gt;Improve archive navigation, reusable templates and document metadata (2026-10-05)&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw-interface=&quot;&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 13:30, 5 October 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 8:&lt;/td&gt;
  &lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 8:&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; archived = {&#039;Archived&#039;, &#039;Archived documents&#039;, &#039;Retained for reference rather than active use.&#039;},&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; archived = {&#039;Archived&#039;, &#039;Archived documents&#039;, &#039;Retained for reference rather than active use.&#039;},&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; deprecated = {&#039;Deprecated&#039;, &#039;Deprecated documents&#039;, &#039;Outdated material; consult its replacement where available.&#039;},&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; deprecated = {&#039;Deprecated&#039;, &#039;Deprecated documents&#039;, &#039;Outdated material; consult its replacement where available.&#039;},&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; unassessed = {&#039;Unassessed&#039;, &#039;Pages needing status review&#039;, &#039;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;No&lt;/del&gt; &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;editorial&lt;/del&gt; &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;or&lt;/del&gt; &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;canon&lt;/del&gt; &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;decision has&lt;/del&gt; been &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;recorded here&lt;/del&gt;.&#039;}&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; unassessed = {&#039;Unassessed&#039;, &#039;Pages needing status review&#039;, &#039;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Editorial&lt;/ins&gt; &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;status&lt;/ins&gt; &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;has&lt;/ins&gt; &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;not&lt;/ins&gt; &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;yet&lt;/ins&gt; been &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;assessed&lt;/ins&gt;.&#039;}&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;}&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;local function key(v) return mw.ustring.lower(mw.text.trim(v or &#039;&#039;)) end&lt;/div&gt;&lt;/td&gt;
  &lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;
  &lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;local function key(v) return mw.ustring.lower(mw.text.trim(v or &#039;&#039;)) end&lt;/div&gt;&lt;/td&gt;
&lt;/tr&gt;

&lt;!-- diff cache key mediawiki:diff:1.41:old-1140:rev-1294:wikidiff2=table:1.14.1:bc2a06be --&gt;
&lt;/table&gt;</summary>
		<author><name>DivošiRunner</name></author>
	</entry>
	<entry>
		<id>https://sarkic-cults.group/index.php?title=Module:Document_status&amp;diff=1140&amp;oldid=prev</id>
		<title>DivošiRunner: Improve archive navigation, reusable templates and document metadata (2026-10-05)</title>
		<link rel="alternate" type="text/html" href="https://sarkic-cults.group/index.php?title=Module:Document_status&amp;diff=1140&amp;oldid=prev"/>
		<updated>2026-10-05T13:24:31Z</updated>

		<summary type="html">&lt;p&gt;Improve archive navigation, reusable templates and document metadata (2026-10-05)&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 states = {&lt;br /&gt;
 canon = {&amp;#039;Canon&amp;#039;, &amp;#039;(SC) Canon&amp;#039;, &amp;#039;Part of the stated house continuity.&amp;#039;},&lt;br /&gt;
 fanon = {&amp;#039;Fanon&amp;#039;, &amp;#039;Fanon documents&amp;#039;, &amp;#039;Community interpretation outside established house canon.&amp;#039;},&lt;br /&gt;
 approved = {&amp;#039;Approved&amp;#039;, &amp;#039;Approved documents&amp;#039;, &amp;#039;Accepted through the wiki’s editorial review process.&amp;#039;},&lt;br /&gt;
 unapproved = {&amp;#039;Unapproved&amp;#039;, &amp;#039;Unapproved documents&amp;#039;, &amp;#039;Not approved for publication in the mainline archive.&amp;#039;},&lt;br /&gt;
 draft = {&amp;#039;Draft&amp;#039;, &amp;#039;Draft documents&amp;#039;, &amp;#039;Work in progress; details may change.&amp;#039;},&lt;br /&gt;
 archived = {&amp;#039;Archived&amp;#039;, &amp;#039;Archived documents&amp;#039;, &amp;#039;Retained for reference rather than active use.&amp;#039;},&lt;br /&gt;
 deprecated = {&amp;#039;Deprecated&amp;#039;, &amp;#039;Deprecated documents&amp;#039;, &amp;#039;Outdated material; consult its replacement where available.&amp;#039;},&lt;br /&gt;
 unassessed = {&amp;#039;Unassessed&amp;#039;, &amp;#039;Pages needing status review&amp;#039;, &amp;#039;No editorial or canon decision has been recorded here.&amp;#039;}&lt;br /&gt;
}&lt;br /&gt;
local function key(v) return mw.ustring.lower(mw.text.trim(v or &amp;#039;&amp;#039;)) end&lt;br /&gt;
function p.main(frame)&lt;br /&gt;
 local a = frame:getParent().args&lt;br /&gt;
 local s = key(a.status or a[1]); if s == &amp;#039;&amp;#039; then s = &amp;#039;unassessed&amp;#039; end&lt;br /&gt;
 local c = key(a.canon)&lt;br /&gt;
 local title = mw.title.getCurrentTitle()&lt;br /&gt;
 local categorize = (title.namespace == 0 or title.namespace == 3000 or title.namespace == 3002)&lt;br /&gt;
 local nc = key(a.nocat); if nc == &amp;#039;yes&amp;#039; or nc == &amp;#039;true&amp;#039; or nc == &amp;#039;1&amp;#039; then categorize = false end&lt;br /&gt;
 local categories = {}; local invalid = false&lt;br /&gt;
 local function add(cat) if categorize then categories[cat] = true end end&lt;br /&gt;
 local state = states[s]&lt;br /&gt;
 if not state then state = states.unassessed; s = &amp;#039;unassessed&amp;#039;; invalid = true end&lt;br /&gt;
 add(state[2])&lt;br /&gt;
 local label = state[1]&lt;br /&gt;
 if c ~= &amp;#039;&amp;#039; then&lt;br /&gt;
  if (c == &amp;#039;canon&amp;#039; or c == &amp;#039;fanon&amp;#039;) and s ~= &amp;#039;canon&amp;#039; and s ~= &amp;#039;fanon&amp;#039; then&lt;br /&gt;
   label = label .. &amp;#039; · &amp;#039; .. states[c][1]; add(states[c][2])&lt;br /&gt;
  elseif c ~= s then invalid = true end&lt;br /&gt;
 end&lt;br /&gt;
 if invalid then add(&amp;#039;Pages with invalid document status&amp;#039;) end&lt;br /&gt;
 local box = mw.html.create(&amp;#039;div&amp;#039;):addClass(&amp;#039;document-status&amp;#039;):addClass(&amp;#039;document-status--&amp;#039; .. s)&lt;br /&gt;
 box:attr(&amp;#039;role&amp;#039;,&amp;#039;note&amp;#039;)&lt;br /&gt;
 box:tag(&amp;#039;span&amp;#039;):addClass(&amp;#039;document-status__label&amp;#039;):wikitext(&amp;#039;[[Help:Document status|&amp;#039; .. label .. &amp;#039;]]&amp;#039;):done()&lt;br /&gt;
 box:tag(&amp;#039;span&amp;#039;):addClass(&amp;#039;document-status__description&amp;#039;):wikitext(state[3]):done()&lt;br /&gt;
 local note = mw.text.trim(a.note or &amp;#039;&amp;#039;)&lt;br /&gt;
 if note ~= &amp;#039;&amp;#039; then box:tag(&amp;#039;span&amp;#039;):addClass(&amp;#039;document-status__note&amp;#039;):wikitext(note):done() end&lt;br /&gt;
 local replacement = mw.text.trim(a.replacement or &amp;#039;&amp;#039;)&lt;br /&gt;
 if replacement ~= &amp;#039;&amp;#039; then&lt;br /&gt;
  local dest = mw.title.new(replacement)&lt;br /&gt;
  if dest and not dest.isExternal and dest.namespace &amp;gt;= 0 then&lt;br /&gt;
   box:tag(&amp;#039;span&amp;#039;):addClass(&amp;#039;document-status__note&amp;#039;):wikitext(&amp;#039;See [[&amp;#039; .. dest.prefixedText .. &amp;#039;]].&amp;#039;):done()&lt;br /&gt;
  else invalid = true; add(&amp;#039;Pages with invalid document status&amp;#039;) end&lt;br /&gt;
 end&lt;br /&gt;
 if invalid then box:tag(&amp;#039;span&amp;#039;):addClass(&amp;#039;document-status__note&amp;#039;):wikitext(&amp;#039;Check the status parameters; see [[Help:Document status]].&amp;#039;):done() end&lt;br /&gt;
 local result = tostring(box)&lt;br /&gt;
 local cats = {}; for cat in pairs(categories) do cats[#cats + 1] = cat end; table.sort(cats)&lt;br /&gt;
 for _,cat in ipairs(cats) do result = result .. &amp;#039;[[Category:&amp;#039; .. cat .. &amp;#039;]]&amp;#039; end&lt;br /&gt;
 return result&lt;br /&gt;
end&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>DivošiRunner</name></author>
	</entry>
</feed>