https://en.wikipedia.org/w/index.php?action=history&feed=atom&title=Module%3ACountryData%2FcacheU
Module:CountryData/cacheU - Revision history
2025-05-29T03:54:01Z
Revision history for this page on the wiki
MediaWiki 1.45.0-wmf.2
https://en.wikipedia.org/w/index.php?title=Module:CountryData/cacheU&diff=1021633888&oldid=prev
GKFX: Re-arrange cache data by popularity
2021-05-05T20:09:09Z
<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:09, 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 = {'British_Columbia', 'British_Virgin_Islands', 'Connecticut', 'Cook_Islands', 'Empire_of_Japan', 'French_Polynesia', 'Marshall_Islands', 'New_Caledonia', 'North_Carolina', 'Pennsylvania', 'South_Carolina', 'United_Nations'}</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 = {'U.S. Virgin Islands', 'UNESCO', 'Uganda', 'Ukraine', 'Ukrainian Soviet Socialist Republic', 'Union of South Africa', 'United Arab Emirates', 'United Arab Republic', 'United Kingdom of Great Britain and Ireland', 'United Kingdom', 'United Nations', 'United States Army', 'United States Federal Government', 'United States Marine Corps', 'United States Navy', 'United States military', 'United States', 'Upper Volta', 'Uruguay', 'Utah', 'Uzbekistan'}</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/cacheU&diff=1021271796&oldid=prev
GKFX: Put the redirects all on the summary cache. *** existing text overwritten ***
2021-05-03T20:20:31Z
<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:20, 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;">USA=</del>'<del style="font-weight: bold; text-decoration: none;">United</del> <del style="font-weight: bold; text-decoration: none;">States</del>', <del style="font-weight: bold; text-decoration: none;">UGA=</del>'Uganda', <del style="font-weight: bold; text-decoration: none;">UKR=</del>'Ukraine', <del style="font-weight: bold; text-decoration: none;">URY=</del>'<del style="font-weight: bold; text-decoration: none;">Uruguay</del>', <del style="font-weight: bold; text-decoration: none;">UZB=</del>'<del style="font-weight: bold; text-decoration: none;">Uzbekistan</del>', <del style="font-weight: bold; text-decoration: none;">[</del>'United <del style="font-weight: bold; text-decoration: none;">States</del> <del style="font-weight: bold; text-decoration: none;">Virgin</del> <del style="font-weight: bold; text-decoration: none;">Islands</del>'<del style="font-weight: bold; text-decoration: none;">]='U.S.</del> <del style="font-weight: bold; text-decoration: none;">Virgin</del> <del style="font-weight: bold; text-decoration: none;">Islands</del>', <del style="font-weight: bold; text-decoration: none;">USSR=</del>'<del style="font-weight: bold; text-decoration: none;">Soviet</del> <del style="font-weight: bold; text-decoration: none;">Union</del>', <del style="font-weight: bold; text-decoration: none;">US=</del>'United <del style="font-weight: bold; text-decoration: none;">States</del>', <del style="font-weight: bold; text-decoration: none;">UK=</del>'United <del style="font-weight: bold; text-decoration: none;">Kingdom</del>', <del style="font-weight: bold; text-decoration: none;">[</del>'United States <del style="font-weight: bold; text-decoration: none;">of</del> <del style="font-weight: bold; text-decoration: none;">America']=</del>'United States', <del style="font-weight: bold; text-decoration: none;">URS=</del>'<del style="font-weight: bold; text-decoration: none;">Soviet</del> <del style="font-weight: bold; text-decoration: none;">Union</del>', <del style="font-weight: bold; text-decoration: none;">UN=</del>'United <del style="font-weight: bold; text-decoration: none;">Nations',</del> <del style="font-weight: bold; text-decoration: none;">URU='Uruguay</del>', <del style="font-weight: bold; text-decoration: none;">UAE=</del>'United <del style="font-weight: bold; text-decoration: none;">Arab</del> <del style="font-weight: bold; text-decoration: none;">Emirates</del>', <del style="font-weight: bold; text-decoration: none;">['U.S.']=</del>'United States', <del style="font-weight: bold; text-decoration: none;">UKGBI=</del>'<del style="font-weight: bold; text-decoration: none;">United</del> <del style="font-weight: bold; text-decoration: none;">Kingdom of Great Britain and Ireland</del>', <del style="font-weight: bold; text-decoration: none;">[</del>'<del style="font-weight: bold; text-decoration: none;">Ukrainian</del> <del style="font-weight: bold; text-decoration: none;">SSR</del>'<del style="font-weight: bold; text-decoration: none;">]=</del>'<del style="font-weight: bold; text-decoration: none;">Ukrainian</del> <del style="font-weight: bold; text-decoration: none;">Soviet Socialist Republic</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;">U.S.</ins> <ins style="font-weight: bold; text-decoration: none;">Virgin Islands', 'UNESCO</ins>', 'Uganda', 'Ukraine', '<ins style="font-weight: bold; text-decoration: none;">Ukrainian Soviet Socialist Republic</ins>', '<ins style="font-weight: bold; text-decoration: none;">Union of South Africa</ins>', 'United <ins style="font-weight: bold; text-decoration: none;">Arab</ins> <ins style="font-weight: bold; text-decoration: none;">Emirates',</ins> '<ins style="font-weight: bold; text-decoration: none;">United</ins> <ins style="font-weight: bold; text-decoration: none;">Arab</ins> <ins style="font-weight: bold; text-decoration: none;">Republic</ins>', '<ins style="font-weight: bold; text-decoration: none;">United</ins> <ins style="font-weight: bold; text-decoration: none;">Kingdom of Great Britain and Ireland</ins>', 'United <ins style="font-weight: bold; text-decoration: none;">Kingdom</ins>', 'United <ins style="font-weight: bold; text-decoration: none;">Nations</ins>', 'United States <ins style="font-weight: bold; text-decoration: none;">Army',</ins> 'United States<ins style="font-weight: bold; text-decoration: none;"> Federal Government</ins>', '<ins style="font-weight: bold; text-decoration: none;">United</ins> <ins style="font-weight: bold; text-decoration: none;">States Marine Corps</ins>', 'United <ins style="font-weight: bold; text-decoration: none;">States</ins> <ins style="font-weight: bold; text-decoration: none;">Navy</ins>', 'United <ins style="font-weight: bold; text-decoration: none;">States</ins> <ins style="font-weight: bold; text-decoration: none;">military</ins>', 'United States', '<ins style="font-weight: bold; text-decoration: none;">Upper</ins> <ins style="font-weight: bold; text-decoration: none;">Volta</ins>', '<ins style="font-weight: bold; text-decoration: none;">Uruguay',</ins> '<ins style="font-weight: bold; text-decoration: none;">Utah</ins>'<ins style="font-weight: bold; text-decoration: none;">,</ins> <ins style="font-weight: bold; text-decoration: none;">'Uzbekistan</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 = {'United States Federal Government', 'Uzbekistan', 'Utah', 'United Arab Emirates', 'Union of South Africa', 'United Kingdom', 'United Kingdom of Great Britain and Ireland', 'Uganda', 'United States military', 'United States Army', 'Upper Volta', 'United States Marine Corps', 'United Nations', 'Ukrainian Soviet Socialist Republic', 'U.S. Virgin Islands', 'United Arab Republic', 'UNESCO', 'Ukraine', 'United States Navy', 'United States', 'Uruguay'}</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/cacheU&diff=1021262506&oldid=prev
GKFX: Add loadData-compatible modules to cache the content of the most-used country data
2021-05-03T19:25:55Z
<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 = {USA='United States', UGA='Uganda', UKR='Ukraine', URY='Uruguay', UZB='Uzbekistan', ['United States Virgin Islands']='U.S. Virgin Islands', USSR='Soviet Union', US='United States', UK='United Kingdom', ['United States of America']='United States', URS='Soviet Union', UN='United Nations', URU='Uruguay', UAE='United Arab Emirates', ['U.S.']='United States', UKGBI='United Kingdom of Great Britain and Ireland', ['Ukrainian SSR']='Ukrainian Soviet Socialist Republic'}<br />
local pages = {'United States Federal Government', 'Uzbekistan', 'Utah', 'United Arab Emirates', 'Union of South Africa', 'United Kingdom', 'United Kingdom of Great Britain and Ireland', 'Uganda', 'United States military', 'United States Army', 'Upper Volta', 'United States Marine Corps', 'United Nations', 'Ukrainian Soviet Socialist Republic', 'U.S. Virgin Islands', 'United Arab Republic', 'UNESCO', 'Ukraine', 'United States Navy', 'United States', 'Uruguay'}<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