<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.pokemonrevolution.net/index.php?action=history&amp;feed=atom&amp;title=Module%3APokemonByNumber</id>
	<title>Module:PokemonByNumber - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.pokemonrevolution.net/index.php?action=history&amp;feed=atom&amp;title=Module%3APokemonByNumber"/>
	<link rel="alternate" type="text/html" href="https://wiki.pokemonrevolution.net/index.php?title=Module:PokemonByNumber&amp;action=history"/>
	<updated>2026-11-09T07:30:17Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.0</generator>
	<entry>
		<id>https://wiki.pokemonrevolution.net/index.php?title=Module:PokemonByNumber&amp;diff=40855&amp;oldid=prev</id>
		<title>Cae at 11:51, 31 July 2026</title>
		<link rel="alternate" type="text/html" href="https://wiki.pokemonrevolution.net/index.php?title=Module:PokemonByNumber&amp;diff=40855&amp;oldid=prev"/>
		<updated>2026-07-31T11:51:28Z</updated>

		<summary type="html">&lt;p&gt;&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&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 11:51, 31 July 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-l10&quot;&gt;Line 10:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 10:&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; 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;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;-- One bulk fetch of the whole raw list, shared by all nine&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&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;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;-- {{PokemonByNumber|N}} calls on the Generational Subsets page, instead of&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&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;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;-- each one running its own filtered {{#get_file_data:}} query.&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&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 allRowsCache = 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;local allRowsCache = 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;local function loadAllRows()&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 function loadAllRows()&lt;/div&gt;&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-l28&quot;&gt;Line 28:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 25:&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; 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;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;-- Only 20 distinct types exist across the whole list, but the original&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&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;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;-- template called a &quot;{{Type color}}&quot; template once per row per type slot —&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&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;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;-- roughly 2000+ transclusions for 20 possible answers. Cached here so each&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&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;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;-- type&#039;s color template expands at most once per page.&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&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 typeColorCache = {}&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 typeColorCache = {}&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 function typeColorDark(frame, pokeType)&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 function typeColorDark(frame, pokeType)&lt;/div&gt;&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-l43&quot;&gt;Line 43:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 36:&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;	pokeType = nonEmpty(pokeType)&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;	pokeType = nonEmpty(pokeType)&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 pokeType 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 pokeType then&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;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;		-- Single-typed Pokémon: the original still fired a broken&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&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;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;		-- &quot;{{ _color}}&quot; transclusion here for every one of these rows.&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-added&quot;&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 &amp;#039;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;#039;&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 &amp;#039;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;#039;&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 wiki-prowiki_:diff:1.41:old-40853:rev-40855:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Cae</name></author>
	</entry>
	<entry>
		<id>https://wiki.pokemonrevolution.net/index.php?title=Module:PokemonByNumber&amp;diff=40853&amp;oldid=prev</id>
		<title>Cae: created module</title>
		<link rel="alternate" type="text/html" href="https://wiki.pokemonrevolution.net/index.php?title=Module:PokemonByNumber&amp;diff=40853&amp;oldid=prev"/>
		<updated>2026-07-31T11:49:05Z</updated>

		<summary type="html">&lt;p&gt;created module&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local p = {}&lt;br /&gt;
&lt;br /&gt;
local DATA_FORMAT = &amp;#039;CSV with header&amp;#039;&lt;br /&gt;
&lt;br /&gt;
local function nonEmpty(s)&lt;br /&gt;
	if s == nil then return nil end&lt;br /&gt;
	s = mw.text.trim(tostring(s))&lt;br /&gt;
	if s == &amp;#039;&amp;#039; then return nil end&lt;br /&gt;
	return s&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- One bulk fetch of the whole raw list, shared by all nine&lt;br /&gt;
-- {{PokemonByNumber|N}} calls on the Generational Subsets page, instead of&lt;br /&gt;
-- each one running its own filtered {{#get_file_data:}} query.&lt;br /&gt;
local allRowsCache = nil&lt;br /&gt;
local function loadAllRows()&lt;br /&gt;
	if allRowsCache then return allRowsCache end&lt;br /&gt;
	local csvData = mw.ext.externalData.getExternalData{&lt;br /&gt;
		url = &amp;#039;https://wiki.pokemonrevolution.net/index.php?title=Special:GetData/PokemonRawList&amp;#039;,&lt;br /&gt;
		format = DATA_FORMAT,&lt;br /&gt;
		data = {&lt;br /&gt;
			number = &amp;#039;Pokedex Number&amp;#039;, name = &amp;#039;Name&amp;#039;, type1 = &amp;#039;Type1&amp;#039;, type2 = &amp;#039;Type2&amp;#039;,&lt;br /&gt;
			generation = &amp;#039;Generation&amp;#039;, wild = &amp;#039;Wild&amp;#039;, npc = &amp;#039;NPC&amp;#039;,&lt;br /&gt;
		},&lt;br /&gt;
	}&lt;br /&gt;
	allRowsCache = csvData or {}&lt;br /&gt;
	return allRowsCache&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
-- Only 20 distinct types exist across the whole list, but the original&lt;br /&gt;
-- template called a &amp;quot;{{Type color}}&amp;quot; template once per row per type slot —&lt;br /&gt;
-- roughly 2000+ transclusions for 20 possible answers. Cached here so each&lt;br /&gt;
-- type&amp;#039;s color template expands at most once per page.&lt;br /&gt;
local typeColorCache = {}&lt;br /&gt;
local function typeColorDark(frame, pokeType)&lt;br /&gt;
	if not typeColorCache[pokeType] then&lt;br /&gt;
		typeColorCache[pokeType] = frame:expandTemplate{ title = pokeType .. &amp;#039; color&amp;#039; }&lt;br /&gt;
	end&lt;br /&gt;
	return typeColorCache[pokeType]&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function typeCell(frame, pokeType)&lt;br /&gt;
	pokeType = nonEmpty(pokeType)&lt;br /&gt;
	if not pokeType then&lt;br /&gt;
		-- Single-typed Pokémon: the original still fired a broken&lt;br /&gt;
		-- &amp;quot;{{ _color}}&amp;quot; transclusion here for every one of these rows.&lt;br /&gt;
		return &amp;#039;&amp;lt;td&amp;gt;&amp;lt;/td&amp;gt;&amp;#039;&lt;br /&gt;
	end&lt;br /&gt;
	return &amp;#039;&amp;lt;td style=&amp;quot;background: #&amp;#039; .. typeColorDark(frame, pokeType) .. &amp;#039;;&amp;quot;&amp;gt;[[&amp;#039; .. pokeType ..&lt;br /&gt;
		&amp;#039;_(type)|&amp;lt;span style=&amp;quot;color:#FFFFFF&amp;quot;&amp;gt;&amp;#039; .. pokeType .. &amp;#039;&amp;lt;/span&amp;gt;]]&amp;lt;/td&amp;gt;&amp;#039;&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.main(frame)&lt;br /&gt;
	local gen = nonEmpty(frame.args[1])&lt;br /&gt;
	if not gen then&lt;br /&gt;
		return &amp;quot;&amp;lt;span style=&amp;#039;color:red&amp;#039;&amp;gt;Usage: {{PokemonByNumber|GenerationNumber}}&amp;lt;/span&amp;gt;&amp;quot;&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local buf = {}&lt;br /&gt;
	buf[#buf + 1] = &amp;#039;&amp;lt;table class=&amp;quot;pro-table&amp;quot; align=&amp;quot;center&amp;quot; style=&amp;quot;width: 61%; text-align: center;&amp;quot;&amp;gt;&amp;#039;&lt;br /&gt;
	buf[#buf + 1] = &amp;#039;&amp;lt;tr class=&amp;quot;pro-table-header&amp;quot;&amp;gt;&amp;lt;th scope=&amp;quot;col&amp;quot; class=&amp;quot;pro-table-header-cell&amp;quot; &amp;#039; ..&lt;br /&gt;
		&amp;#039;style=&amp;quot;border-radius: 15px 1px 1px 1px; width: 5%&amp;quot;&amp;gt;No.&amp;lt;/th&amp;gt;&amp;#039; ..&lt;br /&gt;
		&amp;#039;&amp;lt;th scope=&amp;quot;col&amp;quot; class=&amp;quot;pro-table-header-cell&amp;quot; colspan=&amp;quot;2&amp;quot; width=&amp;quot;21%&amp;quot;&amp;gt;Name&amp;lt;/th&amp;gt;&amp;#039; ..&lt;br /&gt;
		&amp;#039;&amp;lt;th scope=&amp;quot;col&amp;quot; class=&amp;quot;pro-table-header-cell&amp;quot; width=&amp;quot;18%&amp;quot;&amp;gt;Type 1&amp;lt;/th&amp;gt;&amp;#039; ..&lt;br /&gt;
		&amp;#039;&amp;lt;th class=&amp;quot;pro-table-header-cell&amp;quot; style=&amp;quot;border-radius: 1px 15px 1px 1px; width: 18%&amp;quot;&amp;gt;Type 2&amp;lt;/th&amp;gt;&amp;lt;/tr&amp;gt;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
	for _, row in ipairs(loadAllRows()) do&lt;br /&gt;
		if row.generation == gen then&lt;br /&gt;
			-- &amp;quot;&amp;#039;&amp;#039;&amp;#039;emboldened&amp;#039;&amp;#039;&amp;#039; = wild-encounterable, &amp;#039;&amp;#039;italicized&amp;#039;&amp;#039; =&lt;br /&gt;
			-- NPC-obtainable&amp;quot; per the footer note below; the original just&lt;br /&gt;
			-- echoed the raw Wild/NPC field text around the name instead of&lt;br /&gt;
			-- actually applying that formatting.&lt;br /&gt;
			local nameLink = &amp;#039;[[&amp;#039; .. row.name .. &amp;#039;]]&amp;#039;&lt;br /&gt;
			if nonEmpty(row.wild) then&lt;br /&gt;
				nameLink = &amp;quot;&amp;#039;&amp;#039;&amp;#039;&amp;quot; .. nameLink .. &amp;quot;&amp;#039;&amp;#039;&amp;#039;&amp;quot;&lt;br /&gt;
			end&lt;br /&gt;
			if nonEmpty(row.npc) then&lt;br /&gt;
				nameLink = &amp;quot;&amp;#039;&amp;#039;&amp;quot; .. nameLink .. &amp;quot;&amp;#039;&amp;#039;&amp;quot;&lt;br /&gt;
			end&lt;br /&gt;
&lt;br /&gt;
			buf[#buf + 1] = &amp;#039;&amp;lt;tr style=&amp;quot;background-color: #DDD; color: #000000;&amp;quot;&amp;gt;&amp;#039; ..&lt;br /&gt;
				&amp;#039;&amp;lt;td&amp;gt;&amp;#039; .. row.number .. &amp;#039;&amp;lt;/td&amp;gt;&amp;#039; ..&lt;br /&gt;
				&amp;#039;&amp;lt;td width=&amp;quot;5%&amp;quot;&amp;gt;[[File:&amp;#039; .. row.number .. &amp;#039;Icon.png]]&amp;lt;/td&amp;gt;&amp;#039; ..&lt;br /&gt;
				&amp;#039;&amp;lt;td&amp;gt;&amp;#039; .. nameLink .. &amp;#039;&amp;lt;/td&amp;gt;&amp;#039; ..&lt;br /&gt;
				typeCell(frame, row.type1) ..&lt;br /&gt;
				typeCell(frame, row.type2) ..&lt;br /&gt;
				&amp;#039;&amp;lt;/tr&amp;gt;&amp;#039;&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	buf[#buf + 1] = &amp;#039;&amp;lt;tr&amp;gt;&amp;lt;td style=&amp;quot;border-radius: 1px 1px 15px 15px; text-align: left; padding: 3px; &amp;#039; ..&lt;br /&gt;
		&amp;#039;color: #FFFFFF; font-size: 13px; margin-left: 10px;&amp;quot; colspan=&amp;quot;5&amp;quot;&amp;gt;&amp;#039; ..&lt;br /&gt;
		&amp;quot;&amp;lt;ul&amp;gt;&amp;lt;li&amp;gt;All &amp;#039;&amp;#039;&amp;#039;emboldened&amp;#039;&amp;#039;&amp;#039; Pokémon are encounterable in the wild&amp;lt;/li&amp;gt;&amp;quot; ..&lt;br /&gt;
		&amp;quot;&amp;lt;li&amp;gt;All &amp;#039;&amp;#039;italicized&amp;#039;&amp;#039; Pokémon are NPC-obtainable&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&amp;quot; ..&lt;br /&gt;
		&amp;#039;See Pokémon-individualized pages for more information.&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&amp;#039;&lt;br /&gt;
	buf[#buf + 1] = &amp;#039;&amp;lt;/table&amp;gt;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
	return table.concat(buf)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Cae</name></author>
	</entry>
</feed>