https://en.wikipedia.org/w/index.php?action=history&feed=atom&title=Module%3ACountryData%2FcacheR
Module:CountryData/cacheR - Revision history
2025-05-26T02:14:16Z
Revision history for this page on the wiki
MediaWiki 1.45.0-wmf.2
https://en.wikipedia.org/w/index.php?title=Module:CountryData/cacheR&diff=1021633811&oldid=prev
GKFX: Re-arrange cache data by popularity
2021-05-05T20:08:39Z
<p>Re-arrange cache data by popularity</p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Previous revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 20:08, 5 May 2021</td>
</tr><tr>
<td colspan="2" class="diff-lineno">Line 1:</td>
<td colspan="2" class="diff-lineno">Line 1:</td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="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;"><div>local CountryData = require('Module:CountryData')</div></td>
<td class="diff-marker"></td>
<td style="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;"><div>local CountryData = require('Module:CountryData')</div></td>
</tr>
<tr>
<td colspan="2" class="diff-empty diff-side-deleted"></td>
<td class="diff-marker" data-marker="+"></td>
<td style="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;"><div>local pages = {'Bhutan', 'Equatorial_Guinea', 'Eritrea', 'Eswatini', 'Gibraltar', 'Grenada', 'Guam', 'Lesotho', 'Saint_Vincent_and_the_Grenadines', 'Seychelles', 'U.S._Virgin_Islands', 'Vanuatu'}</div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td style="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;"><div>local pages = {'Republic of Artsakh', 'Republic of China (1912–1949)', 'Republic of China', 'Republic of Crimea', 'Republic of Ireland', 'Republic of Rose Island', 'Republic of Texas', 'Republic of Venice', 'Republic of the Congo', 'Republika Srpska', 'Rhode Island', 'Rhodesia', 'Rio Grande do Sul', 'Rio de Janeiro', 'Romania', 'Russia', 'Russian Empire', 'Russian Soviet Federative Socialist Republic', 'Rwanda', 'Réunion'}</div></td>
<td colspan="2" class="diff-empty diff-side-added"></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="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;"><div>local p = {</div></td>
<td class="diff-marker"></td>
<td style="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;"><div>local p = {</div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td style="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;"><div><del style="font-weight: bold; text-decoration: none;"> </del>data = {}</div></td>
<td class="diff-marker" data-marker="+"></td>
<td style="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;"><div><ins style="font-weight: bold; text-decoration: none;"> </ins>data = {}</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="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;"><div>}</div></td>
<td class="diff-marker"></td>
<td style="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;"><div>}</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="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;"><div>local frame = mw.getCurrentFrame()</div></td>
<td class="diff-marker"></td>
<td style="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;"><div>local frame = mw.getCurrentFrame()</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="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;"><br /></td>
<td class="diff-marker"></td>
<td style="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;"><br /></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="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;"><div>for _,v in ipairs(pages) do</div></td>
<td class="diff-marker"></td>
<td style="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;"><div>for _,v in ipairs(pages) do</div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td style="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;"><div><del style="font-weight: bold; text-decoration: none;"> </del>p.data[v] = CountryData.gettable(frame, v, {})</div></td>
<td class="diff-marker" data-marker="+"></td>
<td style="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;"><div><ins style="font-weight: bold; text-decoration: none;"> </ins>p.data[v] = CountryData.gettable(frame, v, {})</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="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;"><div>end</div></td>
<td class="diff-marker"></td>
<td style="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;"><div>end</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="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;"><br /></td>
<td class="diff-marker"></td>
<td style="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;"><br /></td>
</tr>
</table>
GKFX
https://en.wikipedia.org/w/index.php?title=Module:CountryData/cacheR&diff=1021271560&oldid=prev
GKFX: Put the redirects all on the summary cache. *** existing text overwritten ***
2021-05-03T20:19:11Z
<p>Put the redirects all on the summary cache. *** existing text overwritten ***</p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<col class="diff-marker" />
<col class="diff-content" />
<col class="diff-marker" />
<col class="diff-content" />
<tr class="diff-title" lang="en">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Previous revision</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Revision as of 20:19, 3 May 2021</td>
</tr><tr>
<td colspan="2" class="diff-lineno">Line 1:</td>
<td colspan="2" class="diff-lineno">Line 1:</td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="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;"><div>local CountryData = require('Module:CountryData')</div></td>
<td class="diff-marker"></td>
<td style="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;"><div>local CountryData = require('Module:CountryData')</div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td style="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;"><div>local <del style="font-weight: bold; text-decoration: none;">redirects</del> = {<del style="font-weight: bold; text-decoration: none;">ROU=</del>'<del style="font-weight: bold; text-decoration: none;">Romania</del>', <del style="font-weight: bold; text-decoration: none;">RUS=</del>'<del style="font-weight: bold; text-decoration: none;">Russia</del>', <del style="font-weight: bold; text-decoration: none;">RWA=</del>'<del style="font-weight: bold; text-decoration: none;">Rwanda',</del> <del style="font-weight: bold; text-decoration: none;">ROM='Romania</del>', <del style="font-weight: bold; text-decoration: none;">[</del>'Republic of <del style="font-weight: bold; text-decoration: none;">Korea']='South Korea</del>', <del style="font-weight: bold; text-decoration: none;">ROC=</del>'Republic of <del style="font-weight: bold; text-decoration: none;">China</del>', <del style="font-weight: bold; text-decoration: none;">RSA=</del>'<del style="font-weight: bold; text-decoration: none;">South</del> <del style="font-weight: bold; text-decoration: none;">Africa</del>', <del style="font-weight: bold; text-decoration: none;">[</del>'<del style="font-weight: bold; text-decoration: none;">Russian</del> <del style="font-weight: bold; text-decoration: none;">Federation']='Russia</del>', <del style="font-weight: bold; text-decoration: none;">ROK=</del>'<del style="font-weight: bold; text-decoration: none;">South</del> <del style="font-weight: bold; text-decoration: none;">Korea</del>', <del style="font-weight: bold; text-decoration: none;">[</del>'Republic of <del style="font-weight: bold; text-decoration: none;">Macedonia']='Macedonia</del>', <del style="font-weight: bold; text-decoration: none;">Reunion=</del>'<del style="font-weight: bold; text-decoration: none;">Réunion</del>', <del style="font-weight: bold; text-decoration: none;">[</del>'<del style="font-weight: bold; text-decoration: none;">Rose</del> Island'<del style="font-weight: bold; text-decoration: none;">]='Republic</del> <del style="font-weight: bold; text-decoration: none;">of Rose Island</del>', <del style="font-weight: bold; text-decoration: none;">[</del>'<del style="font-weight: bold; text-decoration: none;">Republic</del> <del style="font-weight: bold; text-decoration: none;">of</del> <del style="font-weight: bold; text-decoration: none;">Crimea</del> <del style="font-weight: bold; text-decoration: none;">(country)</del>'<del style="font-weight: bold; text-decoration: none;">]=</del>'<del style="font-weight: bold; text-decoration: none;">Republic</del> <del style="font-weight: bold; text-decoration: none;">of</del> <del style="font-weight: bold; text-decoration: none;">Crimea</del>', <del style="font-weight: bold; text-decoration: none;">RU=</del>'Russia', <del style="font-weight: bold; text-decoration: none;">[</del>'Russian <del style="font-weight: bold; text-decoration: none;">SFSR</del>'<del style="font-weight: bold; text-decoration: none;">]=</del>'Russian Soviet Federative Socialist Republic', <del style="font-weight: bold; text-decoration: none;">Rojava=</del>'<del style="font-weight: bold; text-decoration: none;">Autonomous</del> <del style="font-weight: bold; text-decoration: none;">Administration of North and East Syria</del>'}</div></td>
<td class="diff-marker" data-marker="+"></td>
<td style="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;"><div>local <ins style="font-weight: bold; text-decoration: none;">pages</ins> = {'<ins style="font-weight: bold; text-decoration: none;">Republic of Artsakh</ins>', '<ins style="font-weight: bold; text-decoration: none;">Republic of China (1912–1949)</ins>', '<ins style="font-weight: bold; text-decoration: none;">Republic</ins> <ins style="font-weight: bold; text-decoration: none;">of China</ins>', 'Republic of <ins style="font-weight: bold; text-decoration: none;">Crimea</ins>', 'Republic of <ins style="font-weight: bold; text-decoration: none;">Ireland</ins>', '<ins style="font-weight: bold; text-decoration: none;">Republic</ins> <ins style="font-weight: bold; text-decoration: none;">of Rose Island</ins>', '<ins style="font-weight: bold; text-decoration: none;">Republic</ins> <ins style="font-weight: bold; text-decoration: none;">of Texas</ins>', '<ins style="font-weight: bold; text-decoration: none;">Republic of</ins> <ins style="font-weight: bold; text-decoration: none;">Venice</ins>', 'Republic of <ins style="font-weight: bold; text-decoration: none;">the Congo</ins>', '<ins style="font-weight: bold; text-decoration: none;">Republika Srpska</ins>', '<ins style="font-weight: bold; text-decoration: none;">Rhode</ins> Island'<ins style="font-weight: bold; text-decoration: none;">,</ins> <ins style="font-weight: bold; text-decoration: none;">'Rhodesia</ins>', '<ins style="font-weight: bold; text-decoration: none;">Rio</ins> <ins style="font-weight: bold; text-decoration: none;">Grande</ins> <ins style="font-weight: bold; text-decoration: none;">do</ins> <ins style="font-weight: bold; text-decoration: none;">Sul</ins>'<ins style="font-weight: bold; text-decoration: none;">, </ins>'<ins style="font-weight: bold; text-decoration: none;">Rio</ins> <ins style="font-weight: bold; text-decoration: none;">de</ins> <ins style="font-weight: bold; text-decoration: none;">Janeiro', 'Romania</ins>', 'Russia', 'Russian <ins style="font-weight: bold; text-decoration: none;">Empire</ins>'<ins style="font-weight: bold; text-decoration: none;">, </ins>'Russian Soviet Federative Socialist Republic', '<ins style="font-weight: bold; text-decoration: none;">Rwanda',</ins> <ins style="font-weight: bold; text-decoration: none;">'Réunion</ins>'}</div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td style="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;"><div>local pages = {'Republic of Rose Island', 'Republic of Venice', 'Rhodesia', 'Russian Soviet Federative Socialist Republic', 'Republic of China (1912–1949)', 'Russian Empire', 'Republic of Ireland', 'Rhode Island', 'Republic of the Congo', 'Republic of Crimea', 'Republika Srpska', 'Russia', 'Republic of China', 'Republic of Texas', 'Réunion', 'Rio de Janeiro', 'Romania', 'Rwanda', 'Republic of Artsakh', 'Rio Grande do Sul'}</div></td>
<td colspan="2" class="diff-empty diff-side-added"></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="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;"><div>local p = {</div></td>
<td class="diff-marker"></td>
<td style="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;"><div>local p = {</div></td>
</tr>
<tr>
<td class="diff-marker" data-marker="−"></td>
<td style="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;"><div> redirects = redirects,</div></td>
<td colspan="2" class="diff-empty diff-side-added"></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="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;"><div> data = {}</div></td>
<td class="diff-marker"></td>
<td style="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;"><div> data = {}</div></td>
</tr>
<tr>
<td class="diff-marker"></td>
<td style="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;"><div>}</div></td>
<td class="diff-marker"></td>
<td style="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;"><div>}</div></td>
</tr>
</table>
GKFX
https://en.wikipedia.org/w/index.php?title=Module:CountryData/cacheR&diff=1021262423&oldid=prev
GKFX: Add loadData-compatible modules to cache the content of the most-used country data
2021-05-03T19:25:25Z
<p>Add loadData-compatible modules to cache the content of the most-used country data</p>
<p><b>New page</b></p><div>local CountryData = require('Module:CountryData')<br />
local redirects = {ROU='Romania', RUS='Russia', RWA='Rwanda', ROM='Romania', ['Republic of Korea']='South Korea', ROC='Republic of China', RSA='South Africa', ['Russian Federation']='Russia', ROK='South Korea', ['Republic of Macedonia']='Macedonia', Reunion='Réunion', ['Rose Island']='Republic of Rose Island', ['Republic of Crimea (country)']='Republic of Crimea', RU='Russia', ['Russian SFSR']='Russian Soviet Federative Socialist Republic', Rojava='Autonomous Administration of North and East Syria'}<br />
local pages = {'Republic of Rose Island', 'Republic of Venice', 'Rhodesia', 'Russian Soviet Federative Socialist Republic', 'Republic of China (1912–1949)', 'Russian Empire', 'Republic of Ireland', 'Rhode Island', 'Republic of the Congo', 'Republic of Crimea', 'Republika Srpska', 'Russia', 'Republic of China', 'Republic of Texas', 'Réunion', 'Rio de Janeiro', 'Romania', 'Rwanda', 'Republic of Artsakh', 'Rio Grande do Sul'}<br />
local p = {<br />
redirects = redirects,<br />
data = {}<br />
}<br />
local frame = mw.getCurrentFrame()<br />
<br />
for _,v in ipairs(pages) do<br />
p.data[v] = CountryData.gettable(frame, v, {})<br />
end<br />
<br />
return p</div>
GKFX