<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://ritchieboys.org/index.php?action=history&amp;feed=atom&amp;title=Module%3AFeatured</id>
	<title>Module:Featured - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://ritchieboys.org/index.php?action=history&amp;feed=atom&amp;title=Module%3AFeatured"/>
	<link rel="alternate" type="text/html" href="https://ritchieboys.org/index.php?title=Module:Featured&amp;action=history"/>
	<updated>2026-09-18T04:53:42Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://ritchieboys.org/index.php?title=Module:Featured&amp;diff=124681&amp;oldid=prev</id>
		<title>Admin: Weekly featured soldiers + books rotation</title>
		<link rel="alternate" type="text/html" href="https://ritchieboys.org/index.php?title=Module:Featured&amp;diff=124681&amp;oldid=prev"/>
		<updated>2026-09-18T00:23:21Z</updated>

		<summary type="html">&lt;p&gt;Weekly featured soldiers + books rotation&lt;/p&gt;
&lt;a href=&quot;https://ritchieboys.org/index.php?title=Module:Featured&amp;amp;diff=124681&amp;amp;oldid=116419&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://ritchieboys.org/index.php?title=Module:Featured&amp;diff=116419&amp;oldid=prev</id>
		<title>Admin: Skip non-letter pool lines</title>
		<link rel="alternate" type="text/html" href="https://ritchieboys.org/index.php?title=Module:Featured&amp;diff=116419&amp;oldid=prev"/>
		<updated>2026-09-02T19:59:08Z</updated>

		<summary type="html">&lt;p&gt;Skip non-letter pool lines&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&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&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 19:59, 2 September 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l72&quot;&gt;Line 72:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 72:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	if title == &amp;#039;&amp;#039; then&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	if title == &amp;#039;&amp;#039; then&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;		return nil&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;	end&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;	-- Skip leftovers from comments / markup&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;	if mw.ustring.find(title, &#039;^[%s%p]*$&#039;) or mw.ustring.find(title, &#039;^%&amp;lt;&#039;) then&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;		return nil&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;	end&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;	if not mw.ustring.find(title, &#039;%a&#039;) then&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		return nil&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		return nil&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	end&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	end&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key my_wiki:diff:1.41:old-116418:rev-116419:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://ritchieboys.org/index.php?title=Module:Featured&amp;diff=116418&amp;oldid=prev</id>
		<title>Admin: Only parse bullets under == Pool ==</title>
		<link rel="alternate" type="text/html" href="https://ritchieboys.org/index.php?title=Module:Featured&amp;diff=116418&amp;oldid=prev"/>
		<updated>2026-09-02T19:58:18Z</updated>

		<summary type="html">&lt;p&gt;Only parse bullets under == Pool ==&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&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&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 19:58, 2 September 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l92&quot;&gt;Line 92:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 92:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	local content = titleObj:getContent()&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	local content = titleObj:getContent()&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	if not content or content == &amp;#039;&amp;#039; then&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	if not content or content == &amp;#039;&amp;#039; then&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;		return {}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;	end&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;	-- Only read bullets under == Pool == (ignore examples elsewhere on the page)&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;	local section = mw.ustring.match(content, &#039;\n==%s*Pool%s*==\n(.-)\n==%s*&#039;)&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;	if not section then&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;		section = mw.ustring.match(content, &#039;^==%s*Pool%s*==\n(.-)\n==%s*&#039;)&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;	end&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;	if not section then&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;		section = mw.ustring.match(content, &#039;\n==%s*Pool%s*==\n(.*)$&#039;)&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;			or mw.ustring.match(content, &#039;^==%s*Pool%s*==\n(.*)$&#039;)&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;	end&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;	if not section then&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		return {}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		return {}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	end&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	end&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	local entries = {}&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	local entries = {}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	for line in mw.text.gsplit(&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;content&lt;/del&gt;, &#039;\n&#039;, true) do&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;	for line in mw.text.gsplit(&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;section&lt;/ins&gt;, &#039;\n&#039;, true) do&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		local entry = parseLine(line)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		local entry = parseLine(line)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		if entry then&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;		if entry then&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key my_wiki:diff:1.41:old-116410:rev-116418:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
	<entry>
		<id>https://ritchieboys.org/index.php?title=Module:Featured&amp;diff=116410&amp;oldid=prev</id>
		<title>Admin: Weekly featured soldier rotation module</title>
		<link rel="alternate" type="text/html" href="https://ritchieboys.org/index.php?title=Module:Featured&amp;diff=116410&amp;oldid=prev"/>
		<updated>2026-09-02T19:57:34Z</updated>

		<summary type="html">&lt;p&gt;Weekly featured soldier rotation module&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;-- Weekly rotating featured soldiers for the Main Page (level-2 curated pool).&lt;br /&gt;
-- Pool page: [[Featured pool]] — one bullet per soldier; sysop-edit only.&lt;br /&gt;
--&lt;br /&gt;
-- Line formats (pipe-separated, optional fields):&lt;br /&gt;
--   * Page title&lt;br /&gt;
--   * Page title | Caption&lt;br /&gt;
--   * Page title | Caption | Filename.jpg&lt;br /&gt;
-- If caption or photo is omitted, the module derives them from the soldier page.&lt;br /&gt;
&lt;br /&gt;
local p = {}&lt;br /&gt;
&lt;br /&gt;
local POOL_TITLE = &amp;#039;Featured pool&amp;#039;&lt;br /&gt;
local DEFAULT_COUNT = 3&lt;br /&gt;
&lt;br /&gt;
local function trim(s)&lt;br /&gt;
	return mw.text.trim(tostring(s or &amp;#039;&amp;#039;))&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function displayFromTitle(title)&lt;br /&gt;
	title = trim(title)&lt;br /&gt;
	-- &amp;quot;Surname, Given (ASN)&amp;quot; → &amp;quot;Given Surname&amp;quot;&lt;br /&gt;
	local surname, given = mw.ustring.match(title, &amp;#039;^([^,]+),%s*(.-)%s*%(%d&amp;#039;)&lt;br /&gt;
	if surname and given then&lt;br /&gt;
		given = mw.ustring.gsub(given, &amp;#039;%s+$&amp;#039;, &amp;#039;&amp;#039;)&lt;br /&gt;
		return trim(given .. &amp;#039; &amp;#039; .. surname)&lt;br /&gt;
	end&lt;br /&gt;
	surname, given = mw.ustring.match(title, &amp;#039;^([^,]+),%s*(.+)$&amp;#039;)&lt;br /&gt;
	if surname and given then&lt;br /&gt;
		return trim(given .. &amp;#039; &amp;#039; .. surname)&lt;br /&gt;
	end&lt;br /&gt;
	return title&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function extractPhoto(wikitext)&lt;br /&gt;
	if not wikitext or wikitext == &amp;#039;&amp;#039; then&lt;br /&gt;
		return &amp;#039;&amp;#039;&lt;br /&gt;
	end&lt;br /&gt;
	local photo = mw.ustring.match(wikitext, &amp;#039;|%s*photo%s*=%s*([^\n|}]+)&amp;#039;)&lt;br /&gt;
	if not photo then&lt;br /&gt;
		return &amp;#039;&amp;#039;&lt;br /&gt;
	end&lt;br /&gt;
	photo = trim(photo)&lt;br /&gt;
	photo = mw.ustring.gsub(photo, &amp;#039;^%[%[File:&amp;#039;, &amp;#039;&amp;#039;)&lt;br /&gt;
	photo = mw.ustring.gsub(photo, &amp;#039;%]%]$&amp;#039;, &amp;#039;&amp;#039;)&lt;br /&gt;
	photo = mw.ustring.gsub(photo, &amp;#039;|.*$&amp;#039;, &amp;#039;&amp;#039;)&lt;br /&gt;
	photo = mw.ustring.gsub(photo, &amp;#039;^File:&amp;#039;, &amp;#039;&amp;#039;)&lt;br /&gt;
	return trim(photo)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function parseLine(line)&lt;br /&gt;
	line = trim(line)&lt;br /&gt;
	if line == &amp;#039;&amp;#039; then&lt;br /&gt;
		return nil&lt;br /&gt;
	end&lt;br /&gt;
	-- Strip list markers; skip headings and HTML comments&lt;br /&gt;
	line = mw.ustring.gsub(line, &amp;#039;^[*#:;]+%s*&amp;#039;, &amp;#039;&amp;#039;)&lt;br /&gt;
	if line == &amp;#039;&amp;#039; or mw.ustring.sub(line, 1, 1) == &amp;#039;=&amp;#039; then&lt;br /&gt;
		return nil&lt;br /&gt;
	end&lt;br /&gt;
	if mw.ustring.find(line, &amp;#039;^%&amp;lt;%!%-%-&amp;#039;, 1, true) then&lt;br /&gt;
		return nil&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	-- [[Title|Label]] or [[Title]] at the start → plain fields&lt;br /&gt;
	line = mw.ustring.gsub(line, &amp;#039;^%[%[([^%]|]+)|([^%]]+)%]%]&amp;#039;, &amp;#039;%1|%2&amp;#039;)&lt;br /&gt;
	line = mw.ustring.gsub(line, &amp;#039;^%[%[([^%]|]+)%]%]&amp;#039;, &amp;#039;%1&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
	local parts = mw.text.split(line, &amp;#039;|&amp;#039;)&lt;br /&gt;
	local title = trim(parts[1] or &amp;#039;&amp;#039;)&lt;br /&gt;
	local caption = trim(parts[2] or &amp;#039;&amp;#039;)&lt;br /&gt;
	local photo = trim(parts[3] or &amp;#039;&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
	if title == &amp;#039;&amp;#039; then&lt;br /&gt;
		return nil&lt;br /&gt;
	end&lt;br /&gt;
	if photo ~= &amp;#039;&amp;#039; then&lt;br /&gt;
		photo = mw.ustring.gsub(photo, &amp;#039;^File:&amp;#039;, &amp;#039;&amp;#039;)&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	return {&lt;br /&gt;
		title = title,&lt;br /&gt;
		caption = caption,&lt;br /&gt;
		photo = photo,&lt;br /&gt;
	}&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function loadPool()&lt;br /&gt;
	local titleObj = mw.title.new(POOL_TITLE)&lt;br /&gt;
	if not titleObj or not titleObj.exists then&lt;br /&gt;
		return {}&lt;br /&gt;
	end&lt;br /&gt;
	local content = titleObj:getContent()&lt;br /&gt;
	if not content or content == &amp;#039;&amp;#039; then&lt;br /&gt;
		return {}&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local entries = {}&lt;br /&gt;
	for line in mw.text.gsplit(content, &amp;#039;\n&amp;#039;, true) do&lt;br /&gt;
		local entry = parseLine(line)&lt;br /&gt;
		if entry then&lt;br /&gt;
			table.insert(entries, entry)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	return entries&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function enrich(entry)&lt;br /&gt;
	local title = entry.title&lt;br /&gt;
	local caption = entry.caption&lt;br /&gt;
	local photo = entry.photo&lt;br /&gt;
&lt;br /&gt;
	if caption == &amp;#039;&amp;#039; then&lt;br /&gt;
		caption = displayFromTitle(title)&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	if photo == &amp;#039;&amp;#039; then&lt;br /&gt;
		local page = mw.title.new(title)&lt;br /&gt;
		if page and page.exists then&lt;br /&gt;
			photo = extractPhoto(page:getContent() or &amp;#039;&amp;#039;)&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	return {&lt;br /&gt;
		title = title,&lt;br /&gt;
		caption = caption,&lt;br /&gt;
		photo = photo,&lt;br /&gt;
	}&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function weekOffset(n)&lt;br /&gt;
	if n &amp;lt; 1 then&lt;br /&gt;
		return 0&lt;br /&gt;
	end&lt;br /&gt;
	local lang = mw.getContentLanguage()&lt;br /&gt;
	-- ISO week-of-year + ISO week-year so Dec/Jan boundary stays stable&lt;br /&gt;
	local week = tonumber(lang:formatDate(&amp;#039;W&amp;#039;)) or 1&lt;br /&gt;
	local year = tonumber(lang:formatDate(&amp;#039;o&amp;#039;)) or tonumber(lang:formatDate(&amp;#039;Y&amp;#039;)) or 2026&lt;br /&gt;
	local key = year * 53 + week&lt;br /&gt;
	return key % n&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function renderThumb(entry)&lt;br /&gt;
	local title = entry.title&lt;br /&gt;
	local caption = entry.caption&lt;br /&gt;
	local photo = entry.photo&lt;br /&gt;
	local link = string.format(&amp;#039;[[%s|%s]]&amp;#039;, title, caption)&lt;br /&gt;
&lt;br /&gt;
	if photo ~= &amp;#039;&amp;#039; then&lt;br /&gt;
		return string.format(&lt;br /&gt;
			&amp;#039;&amp;lt;div class=&amp;quot;home-feature-thumb&amp;quot;&amp;gt;[[File:%s|150x220px|link=%s|alt=%s]]&amp;#039;&lt;br /&gt;
				.. &amp;#039;&amp;lt;div class=&amp;quot;home-feature-caption&amp;quot;&amp;gt;%s&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&amp;#039;,&lt;br /&gt;
			photo,&lt;br /&gt;
			title,&lt;br /&gt;
			caption,&lt;br /&gt;
			link&lt;br /&gt;
		)&lt;br /&gt;
	end&lt;br /&gt;
	-- No photo yet: caption-only card so the pool entry still appears&lt;br /&gt;
	return string.format(&lt;br /&gt;
		&amp;#039;&amp;lt;div class=&amp;quot;home-feature-thumb home-feature-thumb-nophoto&amp;quot;&amp;gt;&amp;#039;&lt;br /&gt;
			.. &amp;#039;&amp;lt;div class=&amp;quot;home-feature-caption&amp;quot;&amp;gt;%s&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&amp;#039;,&lt;br /&gt;
		link&lt;br /&gt;
	)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.main(frame)&lt;br /&gt;
	local args = frame.args&lt;br /&gt;
	local parent = frame:getParent()&lt;br /&gt;
	if parent and parent.args then&lt;br /&gt;
		for k, v in pairs(parent.args) do&lt;br /&gt;
			if args[k] == nil or args[k] == &amp;#039;&amp;#039; then&lt;br /&gt;
				args[k] = v&lt;br /&gt;
			end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local count = tonumber(args.count or args[1]) or DEFAULT_COUNT&lt;br /&gt;
	if count &amp;lt; 1 then&lt;br /&gt;
		count = DEFAULT_COUNT&lt;br /&gt;
	end&lt;br /&gt;
	if count &amp;gt; 12 then&lt;br /&gt;
		count = 12&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local pool = loadPool()&lt;br /&gt;
	if #pool == 0 then&lt;br /&gt;
		return &amp;#039;&amp;lt;div class=&amp;quot;home-feature-thumbs&amp;quot;&amp;gt;&amp;lt;!-- Featured pool is empty — edit [[Featured pool]] --&amp;gt;&amp;lt;/div&amp;gt;&amp;#039;&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local offset = weekOffset(#pool)&lt;br /&gt;
	local parts = { &amp;#039;&amp;lt;div class=&amp;quot;home-feature-thumbs&amp;quot;&amp;gt;&amp;#039; }&lt;br /&gt;
	for i = 0, count - 1 do&lt;br /&gt;
		local idx = ((offset + i) % #pool) + 1&lt;br /&gt;
		table.insert(parts, renderThumb(enrich(pool[idx])))&lt;br /&gt;
	end&lt;br /&gt;
	table.insert(parts, &amp;#039;&amp;lt;/div&amp;gt;&amp;#039;)&lt;br /&gt;
	return table.concat(parts)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- Debug helper: {{#invoke:Featured|preview|offset=0|count=3}}&lt;br /&gt;
function p.preview(frame)&lt;br /&gt;
	local args = frame.args&lt;br /&gt;
	local count = tonumber(args.count) or DEFAULT_COUNT&lt;br /&gt;
	local pool = loadPool()&lt;br /&gt;
	if #pool == 0 then&lt;br /&gt;
		return &amp;#039;Pool empty&amp;#039;&lt;br /&gt;
	end&lt;br /&gt;
	local offset = tonumber(args.offset) or weekOffset(#pool)&lt;br /&gt;
	offset = offset % #pool&lt;br /&gt;
	local lines = {&lt;br /&gt;
		string.format(&amp;#039;Pool size: %d; offset: %d; showing %d&amp;#039;, #pool, offset, count),&lt;br /&gt;
	}&lt;br /&gt;
	for i = 0, count - 1 do&lt;br /&gt;
		local idx = ((offset + i) % #pool) + 1&lt;br /&gt;
		local e = enrich(pool[idx])&lt;br /&gt;
		table.insert(&lt;br /&gt;
			lines,&lt;br /&gt;
			string.format(&amp;#039;* %s — %s — photo=%s&amp;#039;, e.title, e.caption, e.photo ~= &amp;#039;&amp;#039; and e.photo or &amp;#039;(none)&amp;#039;)&lt;br /&gt;
		)&lt;br /&gt;
	end&lt;br /&gt;
	return table.concat(lines, &amp;#039;\n&amp;#039;)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>