<?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%2FFeatured</id>
	<title>Module:Mainpage/Featured - 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%2FFeatured"/>
	<link rel="alternate" type="text/html" href="https://wiki.shroudforge.net/index.php?title=Module:Mainpage/Featured&amp;action=history"/>
	<updated>2026-11-05T02:21:01Z</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/Featured&amp;diff=18&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/Featured&amp;diff=18&amp;oldid=prev"/>
		<updated>2026-11-04T21:58:40Z</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-17:rev-18 --&gt;
&lt;/table&gt;</summary>
		<author><name>Bonsaibauer</name></author>
	</entry>
	<entry>
		<id>https://wiki.shroudforge.net/index.php?title=Module:Mainpage/Featured&amp;diff=17&amp;oldid=prev</id>
		<title>starcitizen&gt;Alistar Bot: Sync from Git: the picture is no longer derived from the article (via update-page on MediaWiki MCP Server)</title>
		<link rel="alternate" type="text/html" href="https://wiki.shroudforge.net/index.php?title=Module:Mainpage/Featured&amp;diff=17&amp;oldid=prev"/>
		<updated>2026-09-15T08:48:21Z</updated>

		<summary type="html">&lt;p&gt;Sync from Git: the picture is no longer derived from the article (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/Featured&lt;br /&gt;
--- The featured card: a whole-card link over the featured article&amp;#039;s picture.&lt;br /&gt;
---&lt;br /&gt;
--- Both the article and its picture are set in&lt;br /&gt;
--- [[Module:Mainpage/settings.json]]; an unset picture falls back to the&lt;br /&gt;
--- placeholder.&lt;br /&gt;
---&lt;br /&gt;
--- The card is NOT built on Module:CardLua. CardLua&amp;#039;s media card puts its&lt;br /&gt;
--- picture in a slot beside or above a body; this one puts the body *over* the&lt;br /&gt;
--- picture, under a scrim, and slides both off on hover. That is a different&lt;br /&gt;
--- component, not a variant of that one.&lt;br /&gt;
&lt;br /&gt;
local badge = require(&amp;#039;Module:BadgeLua&amp;#039;)&lt;br /&gt;
local cfg = require(&amp;#039;Module:Mainpage/Config&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
-- NOT the main page itself: on the main page that would render as a self-link&lt;br /&gt;
-- (&amp;lt;strong class=&amp;quot;selflink&amp;quot;&amp;gt;, not an &amp;lt;a&amp;gt;), and the whole-card link selector&lt;br /&gt;
-- would match nothing, leaving a card that looks clickable and is not.&lt;br /&gt;
local DEFAULT_PAGE = &amp;#039;Star Citizen&amp;#039;&lt;br /&gt;
local PLACEHOLDER = &amp;#039;File:Placeholderv2.png&amp;#039;&lt;br /&gt;
&lt;br /&gt;
--- Wide enough for the plate at the full 1080 measure on a 2x display.&lt;br /&gt;
local IMAGE_WIDTH = &amp;#039;960px&amp;#039;&lt;br /&gt;
&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
--- @return string&lt;br /&gt;
function p.render()&lt;br /&gt;
	local featured = cfg.section(&amp;#039;featured&amp;#039;)&lt;br /&gt;
	local page = featured.page or DEFAULT_PAGE&lt;br /&gt;
	local tagline = featured.text&lt;br /&gt;
&lt;br /&gt;
	-- Named bare in the settings, the way `event.image` and `hero.image` are.&lt;br /&gt;
	local image = featured.image and (&amp;#039;File:&amp;#039; .. featured.image) or PLACEHOLDER&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--read&amp;#039;):addClass(&amp;#039;home-feat-card&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
	local feat = card:tag(&amp;#039;div&amp;#039;):addClass(&amp;#039;home-feat&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
	feat:tag(&amp;#039;div&amp;#039;):addClass(&amp;#039;home-feat__media&amp;#039;):wikitext(string.format(&amp;#039;[[%s|%s|link=|alt=]]&amp;#039;, image, IMAGE_WIDTH))&lt;br /&gt;
&lt;br /&gt;
	-- `link=` and `alt=` are both empty on purpose: the whole card is already&lt;br /&gt;
	-- one link with an accessible name, so the picture must add neither a&lt;br /&gt;
	-- second tab stop nor a second description of the same destination.&lt;br /&gt;
	feat:tag(&amp;#039;div&amp;#039;):addClass(&amp;#039;home-feat__scrim&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
	local body = feat:tag(&amp;#039;div&amp;#039;):addClass(&amp;#039;home-feat__body&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
	-- Wrapped so the badge stays inline: a flex item is blockified, and the&lt;br /&gt;
	-- badge&amp;#039;s own inline-flex would otherwise resolve to flex and stretch it&lt;br /&gt;
	-- across the card.&lt;br /&gt;
	body:tag(&amp;#039;div&amp;#039;)&lt;br /&gt;
		:addClass(&amp;#039;home-feat__badge-row&amp;#039;)&lt;br /&gt;
		:wikitext(badge.render({ text = &amp;#039;Featured&amp;#039;, class = &amp;#039;home-feat__badge&amp;#039; }))&lt;br /&gt;
&lt;br /&gt;
	local foot = body:tag(&amp;#039;div&amp;#039;):addClass(&amp;#039;home-feat__foot&amp;#039;)&lt;br /&gt;
	foot:tag(&amp;#039;div&amp;#039;):addClass(&amp;#039;home-feat__title&amp;#039;):wikitext(page)&lt;br /&gt;
	if tagline then&lt;br /&gt;
		foot:tag(&amp;#039;div&amp;#039;):addClass(&amp;#039;home-feat__tag&amp;#039;):wikitext(tagline)&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- The card&amp;#039;s single link, as a sibling of the body rather than a stretch&lt;br /&gt;
	-- pseudo-element on the title: the body transforms on hover, and a&lt;br /&gt;
	-- transform makes an element the containing block for its absolutely&lt;br /&gt;
	-- positioned descendants, which would shrink the click target to the body.&lt;br /&gt;
	--&lt;br /&gt;
	-- The visible title is deliberately not a link, so this anchor is the only&lt;br /&gt;
	-- stop for the destination; its name comes from the visually-hidden span.&lt;br /&gt;
	feat:tag(&amp;#039;div&amp;#039;)&lt;br /&gt;
		:addClass(&amp;#039;home-feat__link&amp;#039;)&lt;br /&gt;
		:wikitext(string.format(&amp;#039;[[%s|&amp;lt;span class=&amp;quot;home-feat__sr&amp;quot;&amp;gt;%s&amp;lt;/span&amp;gt;]]&amp;#039;, page, page))&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>