https://en.wikipedia.org/w/index.php?action=history&feed=atom&title=Module%3ACountryData%2FcacheM
Module:CountryData/cacheM - Revision history
2025-05-30T15:13:43Z
Revision history for this page on the wiki
MediaWiki 1.45.0-wmf.3
https://en.wikipedia.org/w/index.php?title=Module:CountryData/cacheM&diff=1021633691&oldid=prev
GKFX: Re-arrange cache data by popularity
2021-05-05T20:07:49Z
<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:07, 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 = {'Barbados', 'Botswana', 'Guinea', 'Guyana', 'Libya', 'Liechtenstein', 'Madagascar', 'Mauritius', 'Oman', 'Papua_New_Guinea', 'San_Marino', 'Tajikistan'}</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 = {'Macau', 'Macedonia', 'Madagascar', 'Maine', 'Malacca', 'Malawi', 'Malaya', 'Malaysia', 'Maldives', 'Mali', 'Malta', 'Manchukuo', 'Manitoba', 'Marshall Islands', 'Martinique', 'Maryland', 'Massachusetts', 'Mauritania', 'Mauritius', 'Mayotte', 'Merseyside', 'Mexico', 'Michigan', 'Minas Gerais', 'Minnesota', 'Mississippi', 'Missouri', 'Moldova', 'Monaco', 'Mongolia', 'Montana', 'Montenegro', 'Montserrat', 'Morocco', 'Mozambique', 'Myanmar', 'México (state)'}</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/cacheM&diff=1021271426&oldid=prev
GKFX: Put the redirects all on the summary cache. *** existing text overwritten ***
2021-05-03T20:18:21Z
<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:18, 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;">MKD=</del>'<del style="font-weight: bold; text-decoration: none;">North</del> Macedonia', <del style="font-weight: bold; text-decoration: none;">MLT=</del>'<del style="font-weight: bold; text-decoration: none;">Malta</del>', <del style="font-weight: bold; text-decoration: none;">MNE=</del>'<del style="font-weight: bold; text-decoration: none;">Montenegro</del>', <del style="font-weight: bold; text-decoration: none;">MAC=</del>'<del style="font-weight: bold; text-decoration: none;">Macau</del>', <del style="font-weight: bold; text-decoration: none;">MWI=</del>'Malawi', <del style="font-weight: bold; text-decoration: none;">MYS=</del>'Malaysia', <del style="font-weight: bold; text-decoration: none;">MDV=</del>'Maldives', <del style="font-weight: bold; text-decoration: none;">MLI=</del>'Mali', <del style="font-weight: bold; text-decoration: none;">MTQ=</del>'Martinique', <del style="font-weight: bold; text-decoration: none;">MEX=</del>'<del style="font-weight: bold; text-decoration: none;">Mexico</del>', <del style="font-weight: bold; text-decoration: none;">MDA=</del>'<del style="font-weight: bold; text-decoration: none;">Moldova</del>', <del style="font-weight: bold; text-decoration: none;">MCO=</del>'<del style="font-weight: bold; text-decoration: none;">Monaco</del>', <del style="font-weight: bold; text-decoration: none;">MNG=</del>'<del style="font-weight: bold; text-decoration: none;">Mongolia</del>', <del style="font-weight: bold; text-decoration: none;">MSR=</del>'<del style="font-weight: bold; text-decoration: none;">Montserrat</del>', <del style="font-weight: bold; text-decoration: none;">MAR=</del>'<del style="font-weight: bold; text-decoration: none;">Morocco</del>', <del style="font-weight: bold; text-decoration: none;">MOZ=</del>'<del style="font-weight: bold; text-decoration: none;">Mozambique</del>', <del style="font-weight: bold; text-decoration: none;">MAD=</del>'<del style="font-weight: bold; text-decoration: none;">Madagascar</del>', <del style="font-weight: bold; text-decoration: none;">MAS=</del>'<del style="font-weight: bold; text-decoration: none;">Malaysia</del>', <del style="font-weight: bold; text-decoration: none;">MGL=</del>'<del style="font-weight: bold; text-decoration: none;">Mongolia</del>', <del style="font-weight: bold; text-decoration: none;">MON=</del>'<del style="font-weight: bold; text-decoration: none;">Monaco</del>', <del style="font-weight: bold; text-decoration: none;">MRI=</del>'<del style="font-weight: bold; text-decoration: none;">Mauritius</del>', <del style="font-weight: bold; text-decoration: none;">MTN=</del>'<del style="font-weight: bold; text-decoration: none;">Mauritania</del>', <del style="font-weight: bold; text-decoration: none;">MYA=</del>'<del style="font-weight: bold; text-decoration: none;">Myanmar</del>', <del style="font-weight: bold; text-decoration: none;">Macao=</del>'<del style="font-weight: bold; text-decoration: none;">Macau</del>', <del style="font-weight: bold; text-decoration: none;">MB=</del>'<del style="font-weight: bold; text-decoration: none;">Manitoba</del>', <del style="font-weight: bold; text-decoration: none;">Micronesia=</del>'<del style="font-weight: bold; text-decoration: none;">Federated</del> <del style="font-weight: bold; text-decoration: none;">States</del> <del style="font-weight: bold; text-decoration: none;">of</del> <del style="font-weight: bold; text-decoration: none;">Micronesia</del>', <del style="font-weight: bold; text-decoration: none;">Madrid=</del>'<del style="font-weight: bold; text-decoration: none;">Community</del> <del style="font-weight: bold; text-decoration: none;">of</del> <del style="font-weight: bold; text-decoration: none;">Madrid</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;">Macau',</ins> <ins style="font-weight: bold; text-decoration: none;">'</ins>Macedonia', '<ins style="font-weight: bold; text-decoration: none;">Madagascar</ins>', '<ins style="font-weight: bold; text-decoration: none;">Maine</ins>', '<ins style="font-weight: bold; text-decoration: none;">Malacca</ins>', 'Malawi', <ins style="font-weight: bold; text-decoration: none;">'Malaya', </ins>'Malaysia', 'Maldives', 'Mali', <ins style="font-weight: bold; text-decoration: none;">'Malta', 'Manchukuo', 'Manitoba', 'Marshall Islands', </ins>'Martinique', '<ins style="font-weight: bold; text-decoration: none;">Maryland</ins>', '<ins style="font-weight: bold; text-decoration: none;">Massachusetts</ins>', '<ins style="font-weight: bold; text-decoration: none;">Mauritania</ins>', '<ins style="font-weight: bold; text-decoration: none;">Mauritius</ins>', '<ins style="font-weight: bold; text-decoration: none;">Mayotte</ins>', '<ins style="font-weight: bold; text-decoration: none;">Merseyside</ins>', '<ins style="font-weight: bold; text-decoration: none;">Mexico</ins>', '<ins style="font-weight: bold; text-decoration: none;">Michigan</ins>', '<ins style="font-weight: bold; text-decoration: none;">Minas Gerais</ins>', '<ins style="font-weight: bold; text-decoration: none;">Minnesota</ins>', '<ins style="font-weight: bold; text-decoration: none;">Mississippi</ins>', '<ins style="font-weight: bold; text-decoration: none;">Missouri</ins>', '<ins style="font-weight: bold; text-decoration: none;">Moldova</ins>', '<ins style="font-weight: bold; text-decoration: none;">Monaco</ins>', '<ins style="font-weight: bold; text-decoration: none;">Mongolia</ins>', '<ins style="font-weight: bold; text-decoration: none;">Montana</ins>', '<ins style="font-weight: bold; text-decoration: none;">Montenegro',</ins> <ins style="font-weight: bold; text-decoration: none;">'Montserrat',</ins> <ins style="font-weight: bold; text-decoration: none;">'Morocco',</ins> <ins style="font-weight: bold; text-decoration: none;">'Mozambique</ins>', '<ins style="font-weight: bold; text-decoration: none;">Myanmar',</ins> <ins style="font-weight: bold; text-decoration: none;">'México</ins> <ins style="font-weight: bold; text-decoration: none;">(state)</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 = {'Malawi', 'Myanmar', 'Mayotte', 'Minnesota', 'Morocco', 'Mauritania', 'Monaco', 'Martinique', 'Mozambique', 'Malaysia', 'Manchukuo', 'México (state)', 'Mississippi', 'Minas Gerais', 'Montenegro', 'Manitoba', 'Maryland', 'Malacca', 'Malaya', 'Macedonia', 'Merseyside', 'Mali', 'Mongolia', 'Macau', 'Madagascar', 'Malta', 'Montana', 'Mauritius', 'Moldova', 'Massachusetts', 'Mexico', 'Missouri', 'Maldives', 'Montserrat', 'Marshall Islands', 'Michigan', 'Maine'}</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/cacheM&diff=1021262249&oldid=prev
GKFX: Add loadData-compatible modules to cache the content of the most-used country data
2021-05-03T19:24:35Z
<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 = {MKD='North Macedonia', MLT='Malta', MNE='Montenegro', MAC='Macau', MWI='Malawi', MYS='Malaysia', MDV='Maldives', MLI='Mali', MTQ='Martinique', MEX='Mexico', MDA='Moldova', MCO='Monaco', MNG='Mongolia', MSR='Montserrat', MAR='Morocco', MOZ='Mozambique', MAD='Madagascar', MAS='Malaysia', MGL='Mongolia', MON='Monaco', MRI='Mauritius', MTN='Mauritania', MYA='Myanmar', Macao='Macau', MB='Manitoba', Micronesia='Federated States of Micronesia', Madrid='Community of Madrid'}<br />
local pages = {'Malawi', 'Myanmar', 'Mayotte', 'Minnesota', 'Morocco', 'Mauritania', 'Monaco', 'Martinique', 'Mozambique', 'Malaysia', 'Manchukuo', 'México (state)', 'Mississippi', 'Minas Gerais', 'Montenegro', 'Manitoba', 'Maryland', 'Malacca', 'Malaya', 'Macedonia', 'Merseyside', 'Mali', 'Mongolia', 'Macau', 'Madagascar', 'Malta', 'Montana', 'Mauritius', 'Moldova', 'Massachusetts', 'Mexico', 'Missouri', 'Maldives', 'Montserrat', 'Marshall Islands', 'Michigan', 'Maine'}<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