https://en.wikipedia.org/w/index.php?action=history&feed=atom&title=Module%3ACountryData%2FcacheL Module:CountryData/cacheL - Revision history 2025-05-29T11:06: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/cacheL&diff=1021633670&oldid=prev GKFX: Re-arrange cache data by popularity 2021-05-05T20:07: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: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 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 = {'<del style="font-weight: bold; text-decoration: none;">Lancashire</del>', '<del style="font-weight: bold; text-decoration: none;">Laos</del>', '<del style="font-weight: bold; text-decoration: none;">Latvia</del>', '<del style="font-weight: bold; text-decoration: none;">Lebanon</del>', '<del style="font-weight: bold; text-decoration: none;">Lesotho</del>', '<del style="font-weight: bold; text-decoration: none;">Liberia</del>', '<del style="font-weight: bold; text-decoration: none;">Libya</del>', '<del style="font-weight: bold; text-decoration: none;">Liechtenstein</del>', '<del style="font-weight: bold; text-decoration: none;">Limburg (Belgium)</del>', '<del style="font-weight: bold; text-decoration: none;">Lincolnshire</del>', '<del style="font-weight: bold; text-decoration: none;">Lithuania</del>', '<del style="font-weight: bold; text-decoration: none;">Liège', 'London', 'Louisiana', 'Luhansk People\'s Republic', 'Luxembourg (Belgium)', 'Luxembourg', 'Lviv Oblast</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 pages = {'<ins style="font-weight: bold; text-decoration: none;">Apulia</ins>', '<ins style="font-weight: bold; text-decoration: none;">Bahamas</ins>', '<ins style="font-weight: bold; text-decoration: none;">Burkina_Faso</ins>', '<ins style="font-weight: bold; text-decoration: none;">Cambodia</ins>', '<ins style="font-weight: bold; text-decoration: none;">Haiti</ins>', '<ins style="font-weight: bold; text-decoration: none;">Kyrgyzstan</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;">Namibia</ins>', '<ins style="font-weight: bold; text-decoration: none;">Nazi_Germany</ins>', '<ins style="font-weight: bold; text-decoration: none;">Nicaragua</ins>', '<ins style="font-weight: bold; text-decoration: none;">Zambia</ins>'}</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 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/cacheL&diff=1021271404&oldid=prev GKFX: Put the redirects all on the summary cache. *** existing text overwritten *** 2021-05-03T20:18: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: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;">LVA=</del>'<del style="font-weight: bold; text-decoration: none;">Latvia</del>', <del style="font-weight: bold; text-decoration: none;">LTU=</del>'<del style="font-weight: bold; text-decoration: none;">Lithuania</del>', <del style="font-weight: bold; text-decoration: none;">LUX=</del>'<del style="font-weight: bold; text-decoration: none;">Luxembourg</del>', <del style="font-weight: bold; text-decoration: none;">LAO='Laos', LBN=</del>'Lebanon', <del style="font-weight: bold; text-decoration: none;">LSO=</del>'Lesotho', <del style="font-weight: bold; text-decoration: none;">LBR=</del>'Liberia', <del style="font-weight: bold; text-decoration: none;">LBY=</del>'Libya', <del style="font-weight: bold; text-decoration: none;">LIE=</del>'Liechtenstein', <del style="font-weight: bold; text-decoration: none;">LCA=</del>'<del style="font-weight: bold; text-decoration: none;">Saint</del> <del style="font-weight: bold; text-decoration: none;">Lucia</del>', <del style="font-weight: bold; text-decoration: none;">LAT=</del>'<del style="font-weight: bold; text-decoration: none;">Latvia</del>', <del style="font-weight: bold; text-decoration: none;">LES=</del>'<del style="font-weight: bold; text-decoration: none;">Lesotho</del>', <del style="font-weight: bold; text-decoration: none;">LIB=</del>'<del style="font-weight: bold; text-decoration: none;">Lebanon</del>', <del style="font-weight: bold; text-decoration: none;">LBA=</del>'<del style="font-weight: bold; text-decoration: none;">Libya</del>', <del style="font-weight: bold; text-decoration: none;">LIT=</del>'<del style="font-weight: bold; text-decoration: none;">Lithuania</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;">Lancashire</ins>', '<ins style="font-weight: bold; text-decoration: none;">Laos</ins>', '<ins style="font-weight: bold; text-decoration: none;">Latvia</ins>', 'Lebanon', 'Lesotho', 'Liberia', 'Libya', 'Liechtenstein', '<ins style="font-weight: bold; text-decoration: none;">Limburg</ins> <ins style="font-weight: bold; text-decoration: none;">(Belgium)</ins>', '<ins style="font-weight: bold; text-decoration: none;">Lincolnshire</ins>', '<ins style="font-weight: bold; text-decoration: none;">Lithuania</ins>', '<ins style="font-weight: bold; text-decoration: none;">Liège</ins>', '<ins style="font-weight: bold; text-decoration: none;">London</ins>', '<ins style="font-weight: bold; text-decoration: none;">Louisiana', 'Luhansk People\'s Republic', 'Luxembourg (Belgium)', 'Luxembourg', 'Lviv Oblast</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 = {'Lesotho', 'Laos', 'Liechtenstein', 'Liège', 'Luhansk People\'s Republic', 'Luxembourg (Belgium)', 'Libya', 'Luxembourg', 'Lebanon', 'Lincolnshire', 'London', 'Louisiana', 'Limburg (Belgium)', 'Lithuania', 'Lviv Oblast', 'Lancashire', 'Liberia', 'Latvia'}</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/cacheL&diff=1021262212&oldid=prev GKFX: Add loadData-compatible modules to cache the content of the most-used country data 2021-05-03T19:24: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(&#039;Module:CountryData&#039;)<br /> local redirects = {LVA=&#039;Latvia&#039;, LTU=&#039;Lithuania&#039;, LUX=&#039;Luxembourg&#039;, LAO=&#039;Laos&#039;, LBN=&#039;Lebanon&#039;, LSO=&#039;Lesotho&#039;, LBR=&#039;Liberia&#039;, LBY=&#039;Libya&#039;, LIE=&#039;Liechtenstein&#039;, LCA=&#039;Saint Lucia&#039;, LAT=&#039;Latvia&#039;, LES=&#039;Lesotho&#039;, LIB=&#039;Lebanon&#039;, LBA=&#039;Libya&#039;, LIT=&#039;Lithuania&#039;}<br /> local pages = {&#039;Lesotho&#039;, &#039;Laos&#039;, &#039;Liechtenstein&#039;, &#039;Liège&#039;, &#039;Luhansk People\&#039;s Republic&#039;, &#039;Luxembourg (Belgium)&#039;, &#039;Libya&#039;, &#039;Luxembourg&#039;, &#039;Lebanon&#039;, &#039;Lincolnshire&#039;, &#039;London&#039;, &#039;Louisiana&#039;, &#039;Limburg (Belgium)&#039;, &#039;Lithuania&#039;, &#039;Lviv Oblast&#039;, &#039;Lancashire&#039;, &#039;Liberia&#039;, &#039;Latvia&#039;}<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