<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="es">
	<id>https://wikisp.org/wiki/index.php?action=history&amp;feed=atom&amp;title=M%C3%B3dulo%3AMainpage%2FEvent%2FLegacy</id>
	<title>Módulo:Mainpage/Event/Legacy - Historial de revisiones</title>
	<link rel="self" type="application/atom+xml" href="https://wikisp.org/wiki/index.php?action=history&amp;feed=atom&amp;title=M%C3%B3dulo%3AMainpage%2FEvent%2FLegacy"/>
	<link rel="alternate" type="text/html" href="https://wikisp.org/wiki/index.php?title=M%C3%B3dulo:Mainpage/Event/Legacy&amp;action=history"/>
	<updated>2026-09-14T06:05:16Z</updated>
	<subtitle>Historial de revisiones de esta página en la wiki</subtitle>
	<generator>MediaWiki 1.46.0</generator>
	<entry>
		<id>https://wikisp.org/wiki/index.php?title=M%C3%B3dulo:Mainpage/Event/Legacy&amp;diff=8139&amp;oldid=prev</id>
		<title>Luxbane: Página creada con «require(&#039;strict&#039;)  --- @module Mainpage/Event/Legacy --- The event card built around an ordinary photograph: the picture stands in a --- column beside the text on a wide card, and the clock stands beside that. --- --- Kept as the alternative to Module:Mainpage/Event, which is built around the --- 1080x83 strips in :Category:Main page banner images instead. Which one --- the page uses follows from which key the settings file carries, so switching --- back is a sett…»</title>
		<link rel="alternate" type="text/html" href="https://wikisp.org/wiki/index.php?title=M%C3%B3dulo:Mainpage/Event/Legacy&amp;diff=8139&amp;oldid=prev"/>
		<updated>2026-09-11T23:26:23Z</updated>

		<summary type="html">&lt;p&gt;Página creada con «require(&amp;#039;strict&amp;#039;)  --- @module Mainpage/Event/Legacy --- The event card built around an ordinary photograph: the picture stands in a --- column beside the text on a wide card, and the clock stands beside that. --- --- Kept as the alternative to Module:Mainpage/Event, which is built around the --- 1080x83 strips in &lt;a href=&quot;/wiki/index.php?title=Categor%C3%ADa:Main_page_banner_images&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Categoría:Main page banner images (la página no existe)&quot;&gt;Category:Main page banner images&lt;/a&gt; instead. Which one --- the page uses follows from which key the settings file carries, so switching --- back is a sett…»&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Página nueva&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>Luxbane</name></author>
	</entry>
</feed>