<?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%2FEvent%2FLegacy</id>
	<title>Module:Mainpage/Event/Legacy - 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%2FEvent%2FLegacy"/>
	<link rel="alternate" type="text/html" href="https://wiki.shroudforge.net/index.php?title=Module:Mainpage/Event/Legacy&amp;action=history"/>
	<updated>2026-11-05T05:29:50Z</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/Event/Legacy&amp;diff=26&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/Event/Legacy&amp;diff=26&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-25:rev-26 --&gt;
&lt;/table&gt;</summary>
		<author><name>Bonsaibauer</name></author>
	</entry>
	<entry>
		<id>https://wiki.shroudforge.net/index.php?title=Module:Mainpage/Event/Legacy&amp;diff=25&amp;oldid=prev</id>
		<title>starcitizen&gt;Alistar Bot: Sync from Git: the photograph event card, moved out of Highlights and kept as the alternative (via create-page on MediaWiki MCP Server)</title>
		<link rel="alternate" type="text/html" href="https://wiki.shroudforge.net/index.php?title=Module:Mainpage/Event/Legacy&amp;diff=25&amp;oldid=prev"/>
		<updated>2026-08-26T23:46:38Z</updated>

		<summary type="html">&lt;p&gt;Sync from Git: the photograph event card, moved out of Highlights and kept as the alternative (via create-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/Event/Legacy&lt;br /&gt;
--- The event card built around an ordinary photograph: the picture stands in a&lt;br /&gt;
--- column beside the text on a wide card, and the clock stands beside that.&lt;br /&gt;
---&lt;br /&gt;
--- Kept as the alternative to Module:Mainpage/Event, which is built around the&lt;br /&gt;
--- 1080x83 strips in [[:Category:Main page banner images]] instead. Which one&lt;br /&gt;
--- the page uses follows from which key the settings file carries, so switching&lt;br /&gt;
--- back is a settings edit and not a module edit.&lt;br /&gt;
---&lt;br /&gt;
--- Its cost, and the reason it is no longer the default: a portrait column is&lt;br /&gt;
--- the one shape a wide banner cannot be cropped to, and the card changes shape&lt;br /&gt;
--- twice on the way down to a phone, so both the picture column and the clock&lt;br /&gt;
--- need viewport overrides from the page in Module:Mainpage/styles.css.&lt;br /&gt;
&lt;br /&gt;
local cardLua = require(&amp;#039;Module:CardLua&amp;#039;)&lt;br /&gt;
local countdown = require(&amp;#039;Module:Countdown&amp;#039;)&lt;br /&gt;
local cfg = require(&amp;#039;Module:Mainpage/Config&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
--- @return string|nil  nil when the settings carry no event&lt;br /&gt;
function p.render()&lt;br /&gt;
	local event = cfg.section(&amp;#039;event&amp;#039;)&lt;br /&gt;
	if not event.name then&lt;br /&gt;
		return nil&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local ends = cfg.toIso(event.ends)&lt;br /&gt;
&lt;br /&gt;
	-- The clock is appended to the card&amp;#039;s CONTENT, not passed as its footer:&lt;br /&gt;
	-- the media card lays its content out as flex children of one row, so an&lt;br /&gt;
	-- element after the body becomes a second column beside it. A footer would&lt;br /&gt;
	-- put it across the bottom of the card instead.&lt;br /&gt;
	local body = cardLua.renderMediaBody({&lt;br /&gt;
		kicker = &amp;#039;Event&amp;#039;,&lt;br /&gt;
		title = event.name,&lt;br /&gt;
		link = event.page,&lt;br /&gt;
		body = event.text,&lt;br /&gt;
		more = &amp;#039;Read more&amp;#039;,&lt;br /&gt;
	})&lt;br /&gt;
&lt;br /&gt;
	-- Only rendered when the event has an end date; a clock with nothing to&lt;br /&gt;
	-- count towards is worse than no clock. Guarded as well as validated:&lt;br /&gt;
	-- Module:Countdown raises on input it cannot read, and no single card is&lt;br /&gt;
	-- worth the page.&lt;br /&gt;
	if ends then&lt;br /&gt;
		local ok, clock = pcall(countdown.render, {&lt;br /&gt;
			starts = cfg.toIso(event.starts),&lt;br /&gt;
			ends = ends,&lt;br /&gt;
		})&lt;br /&gt;
		if ok then&lt;br /&gt;
			body = body .. clock&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	return cardLua.renderMediaCard({&lt;br /&gt;
		class = &amp;#039;home-card--read home-event-split&amp;#039;,&lt;br /&gt;
		image = event.image,&lt;br /&gt;
		stretchLink = true,&lt;br /&gt;
		content = body,&lt;br /&gt;
	})&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>