<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://cherry-pi.tailb1a250.ts.net/index.php?action=history&amp;feed=atom&amp;title=Module%3ANavcards</id>
	<title>Module:Navcards - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://cherry-pi.tailb1a250.ts.net/index.php?action=history&amp;feed=atom&amp;title=Module%3ANavcards"/>
	<link rel="alternate" type="text/html" href="https://cherry-pi.tailb1a250.ts.net/index.php?title=Module:Navcards&amp;action=history"/>
	<updated>2026-11-11T00:29:33Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.2</generator>
	<entry>
		<id>https://cherry-pi.tailb1a250.ts.net/index.php?title=Module:Navcards&amp;diff=380&amp;oldid=prev</id>
		<title>Gravy: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://cherry-pi.tailb1a250.ts.net/index.php?title=Module:Navcards&amp;diff=380&amp;oldid=prev"/>
		<updated>2026-06-14T03:39:05Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&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;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 20:39, 13 June 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Gravy</name></author>
	</entry>
	<entry>
		<id>https://cherry-pi.tailb1a250.ts.net/index.php?title=Module:Navcards&amp;diff=379&amp;oldid=prev</id>
		<title>oldparacosm&gt;Gravy: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="https://cherry-pi.tailb1a250.ts.net/index.php?title=Module:Navcards&amp;diff=379&amp;oldid=prev"/>
		<updated>2026-06-04T20:20:36Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local mArguments --initialize lazily&lt;br /&gt;
local getArgNums = require(&amp;#039;Module:Common&amp;#039;).getArgNums&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
--Implements {{navcards}} from the frame&lt;br /&gt;
function p.navcards(frame)&lt;br /&gt;
	mArguments = require(&amp;#039;Module:Arguments&amp;#039;)&lt;br /&gt;
	return p._navcards(mArguments.getArgs(frame), frame)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p._navcards(args, frame)&lt;br /&gt;
	if not args then&lt;br /&gt;
		return &amp;#039;Missing arguments&amp;#039;&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local html = mw.html.create(&amp;#039;div&amp;#039;):addClass(&amp;#039;template-navcards&amp;#039;)&lt;br /&gt;
	local content = mw.html.create(&amp;#039;div&amp;#039;):addClass(&amp;#039;template-navcards-content&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
	local thumbWidth = args[&amp;#039;thumbwidth&amp;#039;] or 240&lt;br /&gt;
	html:css(&amp;#039;--tg-navcards-aspect-ratio&amp;#039;, args[&amp;#039;aspectratio&amp;#039;] or &amp;#039;1&amp;#039;)&lt;br /&gt;
	content:css(&amp;#039;grid-template-columns&amp;#039;, string.format(&amp;#039;repeat(auto-fit, minmax(%spx, 1fr))&amp;#039;, thumbWidth * 2 / 3))&lt;br /&gt;
&lt;br /&gt;
	if args[&amp;#039;header&amp;#039;] then&lt;br /&gt;
		local divider = frame:expandTemplate { title = &amp;#039;Section divider&amp;#039;, args = { args[&amp;#039;header&amp;#039;] } }&lt;br /&gt;
		html:tag(&amp;#039;div&amp;#039;):addClass(&amp;#039;template-navcards-header&amp;#039;)&lt;br /&gt;
			:wikitext(divider)&lt;br /&gt;
			:done()&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local cardCount = 0&lt;br /&gt;
	for i, _ in ipairs(getArgNums(&amp;#039;page&amp;#039;, args)) do&lt;br /&gt;
		local num = tostring(i)&lt;br /&gt;
		if not args[&amp;#039;page&amp;#039; .. num] then return end&lt;br /&gt;
&lt;br /&gt;
		local navcard = mw.html.create(&amp;#039;div&amp;#039;):addClass(&amp;#039;template-navcard&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
		local image = mw.html.create(&amp;#039;div&amp;#039;):addClass(&amp;#039;template-navcard-image&amp;#039;)&lt;br /&gt;
		if args[&amp;#039;image&amp;#039; .. num] then&lt;br /&gt;
			image:wikitext(string.format(&amp;#039;[[File:%s|%spx|link=]]&amp;#039;, args[&amp;#039;image&amp;#039; .. num], thumbWidth))&lt;br /&gt;
		end&lt;br /&gt;
&lt;br /&gt;
		local text = mw.html.create(&amp;#039;div&amp;#039;):addClass(&amp;#039;template-navcard-text&amp;#039;)&lt;br /&gt;
		text:tag(&amp;#039;div&amp;#039;):addClass(&amp;#039;template-navcard-title&amp;#039;)&lt;br /&gt;
			:wikitext(args[&amp;#039;title&amp;#039; .. num] or args[&amp;#039;page&amp;#039; .. num])&lt;br /&gt;
			:done()&lt;br /&gt;
		if args[&amp;#039;caption&amp;#039; .. num] then&lt;br /&gt;
			text:tag(&amp;#039;div&amp;#039;):addClass(&amp;#039;template-navcard-caption&amp;#039;)&lt;br /&gt;
				:wikitext(args[&amp;#039;caption&amp;#039; .. num])&lt;br /&gt;
		end&lt;br /&gt;
&lt;br /&gt;
		navcard:node(image)&lt;br /&gt;
		navcard:node(text)&lt;br /&gt;
		navcard:tag(&amp;#039;div&amp;#039;):addClass(&amp;#039;template-navcard-link&amp;#039;)&lt;br /&gt;
			:wikitext(string.format(&amp;#039;[[%s]]&amp;#039;, args[&amp;#039;page&amp;#039; .. num]))&lt;br /&gt;
		content:node(navcard)&lt;br /&gt;
		cardCount = cardCount + 1&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	html:addClass(&amp;#039;template-navcards--count-&amp;#039; .. cardCount)&lt;br /&gt;
&lt;br /&gt;
	html:node(content)&lt;br /&gt;
&lt;br /&gt;
	return frame:extensionTag {&lt;br /&gt;
		name = &amp;#039;templatestyles&amp;#039;, args = { src = &amp;#039;Module:Navcards/styles.css&amp;#039; }&lt;br /&gt;
	} .. tostring(html)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>oldparacosm&gt;Gravy</name></author>
	</entry>
</feed>