<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://wiki.shroudforge.net/index.php?action=history&amp;feed=atom&amp;title=Module%3AMainpage%2FOnThisDay</id>
	<title>Module:Mainpage/OnThisDay - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.shroudforge.net/index.php?action=history&amp;feed=atom&amp;title=Module%3AMainpage%2FOnThisDay"/>
	<link rel="alternate" type="text/html" href="https://wiki.shroudforge.net/index.php?title=Module:Mainpage/OnThisDay&amp;action=history"/>
	<updated>2026-11-05T08:50:07Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.2</generator>
	<entry>
		<id>https://wiki.shroudforge.net/index.php?title=Module:Mainpage/OnThisDay&amp;diff=28&amp;oldid=prev</id>
		<title>Bonsaibauer: 1 revision imported: Import of Star-Citizen-Modules</title>
		<link rel="alternate" type="text/html" href="https://wiki.shroudforge.net/index.php?title=Module:Mainpage/OnThisDay&amp;diff=28&amp;oldid=prev"/>
		<updated>2026-11-04T21:58:41Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported: Import of Star-Citizen-Modules&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-GB&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 21:58, 4 November 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;4&quot; class=&quot;diff-notice&quot; lang=&quot;en-GB&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key mediawiki-mediawiki:diff:1.41:old-27:rev-28 --&gt;
&lt;/table&gt;</summary>
		<author><name>Bonsaibauer</name></author>
	</entry>
	<entry>
		<id>https://wiki.shroudforge.net/index.php?title=Module:Mainpage/OnThisDay&amp;diff=27&amp;oldid=prev</id>
		<title>starcitizen&gt;Alistar Bot: Trim the citation comment to what a future reader has to know (via update-page on MediaWiki MCP Server)</title>
		<link rel="alternate" type="text/html" href="https://wiki.shroudforge.net/index.php?title=Module:Mainpage/OnThisDay&amp;diff=27&amp;oldid=prev"/>
		<updated>2026-08-28T01:41:39Z</updated>

		<summary type="html">&lt;p&gt;Trim the citation comment to what a future reader has to know (via update-page on MediaWiki MCP Server)&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;require(&amp;#039;strict&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
--- @module Mainpage/OnThisDay&lt;br /&gt;
--- Today&amp;#039;s date page, as a two-panel tabber: real-life events and in-lore ones.&lt;br /&gt;
---&lt;br /&gt;
--- Both panels come from the SAME page — [[August 26]] and so on — which holds&lt;br /&gt;
--- them as two `class=&amp;quot;timeline&amp;quot;` tables. Module:Transcluder pulls them out by&lt;br /&gt;
--- index, so the day pages stay the single source and this card stays a view of&lt;br /&gt;
--- them.&lt;br /&gt;
---&lt;br /&gt;
--- The tabs are doing labelling work, not just saving space: a lore row reads&lt;br /&gt;
--- 2773 where a real-life row reads 1991, and nothing about the two tables&lt;br /&gt;
--- distinguishes them on sight.&lt;br /&gt;
---&lt;br /&gt;
--- A day with no lore yet supplies its own &amp;quot;No info yet&amp;quot; row plus an edit&lt;br /&gt;
--- invitation, so the empty state belongs to the day page rather than here.&lt;br /&gt;
---&lt;br /&gt;
--- The foot carries the same invitation for the days that are NOT empty, which&lt;br /&gt;
--- is every day the card is worth reading. It goes to the page rather than to&lt;br /&gt;
--- one of its two sections, because the foot sits outside the tabber and cannot&lt;br /&gt;
--- know which table the reader is looking at.&lt;br /&gt;
&lt;br /&gt;
local transcluder = require(&amp;#039;Module:Transcluder&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
--- Which table on the day page feeds which tab.&lt;br /&gt;
local PANELS = {&lt;br /&gt;
	{ label = &amp;#039;Real life&amp;#039;, table = &amp;#039;1&amp;#039; },&lt;br /&gt;
	{ label = &amp;#039;In lore&amp;#039;, table = &amp;#039;2&amp;#039; },&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
--- Transcluder&amp;#039;s `get` is the module-facing entry point and returns raw&lt;br /&gt;
--- wikitext; its template entry point is that plus a `preprocess`, which is&lt;br /&gt;
--- what turns the table markup into a table. It raises on a missing page, so&lt;br /&gt;
--- the call is guarded — a day page that does not exist yet should cost this&lt;br /&gt;
--- card its panel, not the whole render.&lt;br /&gt;
---&lt;br /&gt;
--- Citations take BOTH options. `references = &amp;#039;0&amp;#039;` only gsubs literal `&amp;lt;ref&amp;gt;`&lt;br /&gt;
--- out of the raw wikitext, so a row citing through a template — `{{Cite link}}`&lt;br /&gt;
--- carries no `&amp;lt;ref&amp;gt;` until the preprocess below expands one — put a reference&lt;br /&gt;
--- list under the main page&amp;#039;s foot. `templates = &amp;#039;-^Cite&amp;#039;` takes the family&lt;br /&gt;
--- (`-` is a blacklist, the name matched as a Lua pattern), and NOT `&amp;#039;0&amp;#039;`: the&lt;br /&gt;
--- lore table&amp;#039;s `{{On this day edit message}}` is this card&amp;#039;s &amp;quot;No info yet&amp;quot; row.&lt;br /&gt;
---&lt;br /&gt;
--- Both run before the preprocess because an expanded ref is already registered&lt;br /&gt;
--- with the parser; stripping later would leave an orphaned list entry.&lt;br /&gt;
---&lt;br /&gt;
--- @param page string&lt;br /&gt;
--- @param index string&lt;br /&gt;
--- @return string&lt;br /&gt;
local function panelContent(page, index)&lt;br /&gt;
	local ok, text = pcall(transcluder.get, page, {&lt;br /&gt;
		only = &amp;#039;tables&amp;#039;,&lt;br /&gt;
		tables = index,&lt;br /&gt;
		references = &amp;#039;0&amp;#039;,&lt;br /&gt;
		templates = &amp;#039;-^Cite&amp;#039;,&lt;br /&gt;
	})&lt;br /&gt;
	if not ok or not text then&lt;br /&gt;
		return &amp;#039;&amp;#039;&lt;br /&gt;
	end&lt;br /&gt;
	return mw.getCurrentFrame():preprocess(text)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--- @return string&lt;br /&gt;
function p.render()&lt;br /&gt;
	local lang = mw.language.getContentLanguage()&lt;br /&gt;
	local day = lang:formatDate(&amp;#039;F j&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
	local card = mw.html.create(&amp;#039;div&amp;#039;):addClass(&amp;#039;t-card&amp;#039;):addClass(&amp;#039;home-card--aside&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
	-- The frame the scroll fade is painted on. Its scroller is TabberNeue&amp;#039;s, so&lt;br /&gt;
	-- the selector names it rather than a class of ours.&lt;br /&gt;
	local pad = card:tag(&amp;#039;div&amp;#039;)&lt;br /&gt;
		:addClass(&amp;#039;home-pad&amp;#039;)&lt;br /&gt;
		:addClass(&amp;#039;home-otd&amp;#039;)&lt;br /&gt;
		:addClass(&amp;#039;home-scrollfade&amp;#039;)&lt;br /&gt;
		:attr(&amp;#039;data-gadget-mainpage-scrollfade&amp;#039;, &amp;#039;.tabber__section&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
	pad:tag(&amp;#039;div&amp;#039;):addClass(&amp;#039;home-kicker&amp;#039;):wikitext(&amp;#039;On this day &amp;amp;middot; &amp;#039; .. lang:formatDate(&amp;#039;j M&amp;#039;))&lt;br /&gt;
&lt;br /&gt;
	-- TabberNeue takes its panels as one blob of `Label=content` separated by&lt;br /&gt;
	-- `|-|`; there is no structured API for it, so it is built as text.&lt;br /&gt;
	local panels = {}&lt;br /&gt;
	for _, panel in ipairs(PANELS) do&lt;br /&gt;
		panels[#panels + 1] = panel.label .. &amp;#039;=&amp;#039; .. panelContent(day, panel.table)&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	pad:wikitext(mw.getCurrentFrame():extensionTag({&lt;br /&gt;
		name = &amp;#039;tabber&amp;#039;,&lt;br /&gt;
		content = table.concat(panels, &amp;#039;\n|-|\n&amp;#039;),&lt;br /&gt;
	}))&lt;br /&gt;
&lt;br /&gt;
	-- External-link syntax because an internal link cannot carry a query string,&lt;br /&gt;
	-- and `plainlinks` because the target is on this wiki and the arrow icon&lt;br /&gt;
	-- would say otherwise. mw.uri.fullUrl and NOT callParserFunction: `fullurl`&lt;br /&gt;
	-- is a colon magic word and callParserFunction cannot resolve it.&lt;br /&gt;
	pad:tag(&amp;#039;div&amp;#039;)&lt;br /&gt;
		:addClass(&amp;#039;home-more&amp;#039;)&lt;br /&gt;
		:addClass(&amp;#039;plainlinks&amp;#039;)&lt;br /&gt;
		:wikitext(string.format(&amp;#039;[[%s|More from this day]]&amp;#039;, day))&lt;br /&gt;
		:tag(&amp;#039;span&amp;#039;)&lt;br /&gt;
		:addClass(&amp;#039;home-more__add&amp;#039;)&lt;br /&gt;
		:wikitext(string.format(&amp;#039;[%s Add an event]&amp;#039;, tostring(mw.uri.fullUrl(day, &amp;#039;action=edit&amp;#039;))))&lt;br /&gt;
&lt;br /&gt;
	return tostring(card)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>starcitizen&gt;Alistar Bot</name></author>
	</entry>
</feed>