<?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%2FHighlights</id>
	<title>Módulo:Mainpage/Highlights - 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%2FHighlights"/>
	<link rel="alternate" type="text/html" href="https://wikisp.org/wiki/index.php?title=M%C3%B3dulo:Mainpage/Highlights&amp;action=history"/>
	<updated>2026-09-14T06:52:28Z</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/Highlights&amp;diff=8122&amp;oldid=prev</id>
		<title>Luxbane: 1 revisión importada</title>
		<link rel="alternate" type="text/html" href="https://wikisp.org/wiki/index.php?title=M%C3%B3dulo:Mainpage/Highlights&amp;diff=8122&amp;oldid=prev"/>
		<updated>2026-09-11T23:10:03Z</updated>

		<summary type="html">&lt;p&gt;1 revisión importada&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw-interface=&quot;&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;es&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Revisión anterior&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revisión del 23:10 11 sep 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;es&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(Sin diferencias)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Luxbane</name></author>
	</entry>
	<entry>
		<id>https://wikisp.org/wiki/index.php?title=M%C3%B3dulo:Mainpage/Highlights&amp;diff=8121&amp;oldid=prev</id>
		<title>scw&gt;Alistar Bot: Guard the optional patch page (nil raised in Lua 5.1 and took the page down), make the list keyboard-reachable (via update-page on MediaWiki MCP Server)</title>
		<link rel="alternate" type="text/html" href="https://wikisp.org/wiki/index.php?title=M%C3%B3dulo:Mainpage/Highlights&amp;diff=8121&amp;oldid=prev"/>
		<updated>2026-08-27T21:17:56Z</updated>

		<summary type="html">&lt;p&gt;Guard the optional patch page (nil raised in Lua 5.1 and took the page down), make the list keyboard-reachable (via update-page on MediaWiki MCP Server)&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/Highlights&lt;br /&gt;
--- The band directly under the hero: what is happening now (an event, with its&lt;br /&gt;
--- clock) and what shipped last (the current patch).&lt;br /&gt;
---&lt;br /&gt;
--- The event card has two designs and this module owns neither. Which one runs&lt;br /&gt;
--- follows from the picture the settings file carries, because the picture is&lt;br /&gt;
--- the thing that actually differs: a `banner` is one of the 1080x83 strips in&lt;br /&gt;
--- [[:Category:Main page banner images]], which only the banner layout can&lt;br /&gt;
--- show without smearing, and an `image` is an ordinary photograph, which only&lt;br /&gt;
--- the split layout crops sensibly. Naming the asset therefore names the&lt;br /&gt;
--- layout, and no editor can pair a design with a picture it cannot show.&lt;br /&gt;
---&lt;br /&gt;
--- The patch card stays here: it carries no picture, so it has no such choice&lt;br /&gt;
--- to make.&lt;br /&gt;
&lt;br /&gt;
local cfg = require(&amp;#039;Module:Mainpage/Config&amp;#039;)&lt;br /&gt;
local eventBanner = require(&amp;#039;Module:Mainpage/Event&amp;#039;)&lt;br /&gt;
local eventSplit = require(&amp;#039;Module:Mainpage/Event/Legacy&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
--- The event card, in whichever design the configured picture calls for.&lt;br /&gt;
---&lt;br /&gt;
--- Both modules return nil when the settings do not carry what they need, so&lt;br /&gt;
--- the fallthrough is the same as it ever was: no event, no card, and the band&lt;br /&gt;
--- falls back to the patch card alone.&lt;br /&gt;
---&lt;br /&gt;
--- @return string|nil&lt;br /&gt;
function p.renderEvent()&lt;br /&gt;
	return eventBanner.render() or eventSplit.render()&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--- The current-patch card, for whichever build Config resolves as live.&lt;br /&gt;
---&lt;br /&gt;
--- Not a Module:CardLua media card. It carries no picture, and its list has to&lt;br /&gt;
--- scroll — which a whole-card link makes impossible: the bullets&amp;#039; own links&lt;br /&gt;
--- work, but a stretched anchor owns the gaps between them, so a wheel over the&lt;br /&gt;
--- list scrolls the page.&lt;br /&gt;
---&lt;br /&gt;
--- The foot link is a real one rather than CardLua&amp;#039;s `more`, which is an&lt;br /&gt;
--- aria-hidden cue for that anchor and would be a dead label without it.&lt;br /&gt;
---&lt;br /&gt;
--- @return string|nil&lt;br /&gt;
function p.renderPatch()&lt;br /&gt;
	local patch = cfg.livePatch()&lt;br /&gt;
	if not patch then&lt;br /&gt;
		return nil&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- The highlights belong to the patch rather than to the page, so they sit&lt;br /&gt;
	-- on its own entry: writing next month&amp;#039;s notes is one object, not a key&lt;br /&gt;
	-- somewhere else that has to be remembered.&lt;br /&gt;
	local bullets = {}&lt;br /&gt;
	for _, item in ipairs(patch.highlights or {}) do&lt;br /&gt;
		bullets[#bullets + 1] = &amp;#039;* &amp;#039; .. item&lt;br /&gt;
	end&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 scroll fade&amp;#039;s frame; the attribute names its scroller. See&lt;br /&gt;
	-- Module:Mainpage/cards.css for why the two are different elements.&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-patch&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;.home-patch__list&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;New in &amp;#039; .. patch.name)&lt;br /&gt;
&lt;br /&gt;
	if bullets[1] then&lt;br /&gt;
		-- tabindex because a scroll container that is not focusable is&lt;br /&gt;
		-- mouse-only on engines without keyboard-scrollable regions, which is&lt;br /&gt;
		-- the failure the stretch link was removed to fix, moved to another&lt;br /&gt;
		-- input device.&lt;br /&gt;
		--&lt;br /&gt;
		-- The leading newline is load-bearing: mw.html emits this div inline,&lt;br /&gt;
		-- so a body opening with `*` would sit after `&amp;gt;` rather than at the&lt;br /&gt;
		-- start of a line and the parser would render it as literal text.&lt;br /&gt;
		-- (Same hazard as Module:CardLua&amp;#039;s renderMediaBody.)&lt;br /&gt;
		pad:tag(&amp;#039;div&amp;#039;)&lt;br /&gt;
			:addClass(&amp;#039;home-patch__list&amp;#039;)&lt;br /&gt;
			:attr(&amp;#039;tabindex&amp;#039;, &amp;#039;0&amp;#039;)&lt;br /&gt;
			:attr(&amp;#039;role&amp;#039;, &amp;#039;group&amp;#039;)&lt;br /&gt;
			:attr(&amp;#039;aria-label&amp;#039;, &amp;#039;Patch highlights&amp;#039;)&lt;br /&gt;
			:wikitext(&amp;#039;\n&amp;#039; .. table.concat(bullets, &amp;#039;\n&amp;#039;))&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- Guarded because Config.livePatch only promises `name`: `page` is optional&lt;br /&gt;
	-- in the schema, and string.format raises on nil in Lua 5.1.&lt;br /&gt;
	if patch.page then&lt;br /&gt;
		pad:tag(&amp;#039;div&amp;#039;)&lt;br /&gt;
			:addClass(&amp;#039;home-more&amp;#039;)&lt;br /&gt;
			:wikitext(string.format(&amp;#039;[[%s|Read more about %s]]&amp;#039;, patch.page, patch.name))&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	return tostring(card)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
--- @return string&lt;br /&gt;
function p.render()&lt;br /&gt;
	local event, patch = p.renderEvent(), p.renderPatch()&lt;br /&gt;
&lt;br /&gt;
	-- No band at all rather than an empty one: the band carries the negative&lt;br /&gt;
	-- margin that rides it up over the hero, so an empty one would pull the&lt;br /&gt;
	-- rest of the page into the artwork.&lt;br /&gt;
	if not event and not patch then&lt;br /&gt;
		return &amp;#039;&amp;#039;&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local root = mw.html.create(&amp;#039;div&amp;#039;):addClass(&amp;#039;home-band&amp;#039;):addClass(&amp;#039;home-cards&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
	local inner = root:tag(&amp;#039;div&amp;#039;):addClass(&amp;#039;home-band__inner&amp;#039;):addClass(&amp;#039;home-grid&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
	inner:wikitext(event)&lt;br /&gt;
	inner:wikitext(patch)&lt;br /&gt;
&lt;br /&gt;
	return tostring(root)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>scw&gt;Alistar Bot</name></author>
	</entry>
</feed>