https://en.wikipedia.org/w/index.php?action=history&feed=atom&title=Module%3ACountryData%2FcacheP Module:CountryData/cacheP - Revision history 2025-05-31T05:00:48Z Revision history for this page on the wiki MediaWiki 1.45.0-wmf.3 https://en.wikipedia.org/w/index.php?title=Module:CountryData/cacheP&diff=1021633767&oldid=prev GKFX: Re-arrange cache data by popularity 2021-05-05T20:08:19Z <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 = {'Antigua_and_Barbuda', 'Bermuda', 'Brunei', 'Cape_Verde', 'Gambia', 'Illinois', 'Macedonia', 'Maldives', 'New_South_Wales', 'Somalia', 'Suriname', 'Texas'}</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 = {'Pahang', 'Pakistan', 'Palau', 'Palestine', 'Palestinian National Authority', 'Panama', 'Papal States', 'Papua New Guinea', 'Paraguay', 'Paraná', 'Penang', 'Pennsylvania', 'Perak', 'Perlis', 'Peru', 'Philadelphia', 'Philippines', 'Pitcairn Islands', 'Poland', 'Portugal', 'Prince Edward Island', 'Prussia', 'Puebla', 'Puerto Rico', 'Puntland'}</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/cacheP&diff=1021271497&oldid=prev GKFX: Put the redirects all on the summary cache. *** existing text overwritten *** 2021-05-03T20:18:51Z <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;">POL=</del>'<del style="font-weight: bold; text-decoration: none;">Poland</del>', <del style="font-weight: bold; text-decoration: none;">PRT=</del>'<del style="font-weight: bold; text-decoration: none;">Portugal</del>', <del style="font-weight: bold; text-decoration: none;">[</del>'<del style="font-weight: bold; text-decoration: none;">People\</del>'<del style="font-weight: bold; text-decoration: none;">s</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;">China</del>'<del style="font-weight: bold; text-decoration: none;">]=</del>'<del style="font-weight: bold; text-decoration: none;">China</del>', <del style="font-weight: bold; text-decoration: none;">PRK=</del>'<del style="font-weight: bold; text-decoration: none;">North</del> <del style="font-weight: bold; text-decoration: none;">Korea</del>', <del style="font-weight: bold; text-decoration: none;">PAK=</del>'<del style="font-weight: bold; text-decoration: none;">Pakistan</del>', <del style="font-weight: bold; text-decoration: none;">PRY=</del>'Paraguay', <del style="font-weight: bold; text-decoration: none;">PER=</del>'<del style="font-weight: bold; text-decoration: none;">Peru</del>', <del style="font-weight: bold; text-decoration: none;">PHL=</del>'<del style="font-weight: bold; text-decoration: none;">Philippines</del>', <del style="font-weight: bold; text-decoration: none;">PRI=</del>'<del style="font-weight: bold; text-decoration: none;">Puerto Rico</del>', <del style="font-weight: bold; text-decoration: none;">PAN=</del>'<del style="font-weight: bold; text-decoration: none;">Panama</del>', <del style="font-weight: bold; text-decoration: none;">PNG=</del>'<del style="font-weight: bold; text-decoration: none;">Papua New Guinea</del>', <del style="font-weight: bold; text-decoration: none;">PUR=</del>'<del style="font-weight: bold; text-decoration: none;">Puerto Rico</del>', <del style="font-weight: bold; text-decoration: none;">PAR=</del>'<del style="font-weight: bold; text-decoration: none;">Paraguay</del>', <del style="font-weight: bold; text-decoration: none;">PHI=</del>'Philippines', <del style="font-weight: bold; text-decoration: none;">POR=</del>'<del style="font-weight: bold; text-decoration: none;">Portugal</del>', <del style="font-weight: bold; text-decoration: none;">PRC=</del>'<del style="font-weight: bold; text-decoration: none;">China</del>', <del style="font-weight: bold; text-decoration: none;">PLE=</del>'<del style="font-weight: bold; text-decoration: none;">Palestine</del>', <del style="font-weight: bold; text-decoration: none;">[</del>'<del style="font-weight: bold; text-decoration: none;">Palestinian</del> <del style="font-weight: bold; text-decoration: none;">Territory</del>'<del style="font-weight: bold; text-decoration: none;">]=</del>'<del style="font-weight: bold; text-decoration: none;">Palestinian</del> <del style="font-weight: bold; text-decoration: none;">National Authority</del>', <del style="font-weight: bold; text-decoration: none;">[</del>'<del style="font-weight: bold; text-decoration: none;">Palestinian</del> <del style="font-weight: bold; text-decoration: none;">Authority</del>'<del style="font-weight: bold; text-decoration: none;">]=</del>'<del style="font-weight: bold; text-decoration: none;">Palestinian National Authority</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;">Pahang</ins>', '<ins style="font-weight: bold; text-decoration: none;">Pakistan</ins>', '<ins style="font-weight: bold; text-decoration: none;">Palau</ins>'<ins style="font-weight: bold; text-decoration: none;">,</ins> <ins style="font-weight: bold; text-decoration: none;">'Palestine',</ins> <ins style="font-weight: bold; text-decoration: none;">'Palestinian</ins> <ins style="font-weight: bold; text-decoration: none;">National Authority</ins>'<ins style="font-weight: bold; text-decoration: none;">, </ins>'<ins style="font-weight: bold; text-decoration: none;">Panama</ins>', '<ins style="font-weight: bold; text-decoration: none;">Papal</ins> <ins style="font-weight: bold; text-decoration: none;">States</ins>', '<ins style="font-weight: bold; text-decoration: none;">Papua New Guinea</ins>', 'Paraguay', '<ins style="font-weight: bold; text-decoration: none;">Paraná</ins>', '<ins style="font-weight: bold; text-decoration: none;">Penang</ins>', '<ins style="font-weight: bold; text-decoration: none;">Pennsylvania</ins>', '<ins style="font-weight: bold; text-decoration: none;">Perak</ins>', '<ins style="font-weight: bold; text-decoration: none;">Perlis</ins>', '<ins style="font-weight: bold; text-decoration: none;">Peru</ins>', '<ins style="font-weight: bold; text-decoration: none;">Philadelphia</ins>', 'Philippines', '<ins style="font-weight: bold; text-decoration: none;">Pitcairn Islands</ins>', '<ins style="font-weight: bold; text-decoration: none;">Poland</ins>', '<ins style="font-weight: bold; text-decoration: none;">Portugal</ins>', '<ins style="font-weight: bold; text-decoration: none;">Prince</ins> <ins style="font-weight: bold; text-decoration: none;">Edward Island</ins>'<ins style="font-weight: bold; text-decoration: none;">, </ins>'<ins style="font-weight: bold; text-decoration: none;">Prussia',</ins> <ins style="font-weight: bold; text-decoration: none;">'Puebla</ins>', '<ins style="font-weight: bold; text-decoration: none;">Puerto</ins> <ins style="font-weight: bold; text-decoration: none;">Rico</ins>'<ins style="font-weight: bold; text-decoration: none;">, </ins>'<ins style="font-weight: bold; text-decoration: none;">Puntland</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 = {'Pakistan', 'Palestine', 'Puebla', 'Prince Edward Island', 'Papal States', 'Palau', 'Puntland', 'Philippines', 'Panama', 'Papua New Guinea', 'Puerto Rico', 'Palestinian National Authority', 'Pahang', 'Philadelphia', 'Pennsylvania', 'Poland', 'Penang', 'Portugal', 'Peru', 'Prussia', 'Perlis', 'Paraná', 'Paraguay', 'Pitcairn Islands', 'Perak'}</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/cacheP&diff=1021262346&oldid=prev GKFX: Add loadData-compatible modules to cache the content of the most-used country data 2021-05-03T19:25:05Z <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 = {POL=&#039;Poland&#039;, PRT=&#039;Portugal&#039;, [&#039;People\&#039;s Republic of China&#039;]=&#039;China&#039;, PRK=&#039;North Korea&#039;, PAK=&#039;Pakistan&#039;, PRY=&#039;Paraguay&#039;, PER=&#039;Peru&#039;, PHL=&#039;Philippines&#039;, PRI=&#039;Puerto Rico&#039;, PAN=&#039;Panama&#039;, PNG=&#039;Papua New Guinea&#039;, PUR=&#039;Puerto Rico&#039;, PAR=&#039;Paraguay&#039;, PHI=&#039;Philippines&#039;, POR=&#039;Portugal&#039;, PRC=&#039;China&#039;, PLE=&#039;Palestine&#039;, [&#039;Palestinian Territory&#039;]=&#039;Palestinian National Authority&#039;, [&#039;Palestinian Authority&#039;]=&#039;Palestinian National Authority&#039;}<br /> local pages = {&#039;Pakistan&#039;, &#039;Palestine&#039;, &#039;Puebla&#039;, &#039;Prince Edward Island&#039;, &#039;Papal States&#039;, &#039;Palau&#039;, &#039;Puntland&#039;, &#039;Philippines&#039;, &#039;Panama&#039;, &#039;Papua New Guinea&#039;, &#039;Puerto Rico&#039;, &#039;Palestinian National Authority&#039;, &#039;Pahang&#039;, &#039;Philadelphia&#039;, &#039;Pennsylvania&#039;, &#039;Poland&#039;, &#039;Penang&#039;, &#039;Portugal&#039;, &#039;Peru&#039;, &#039;Prussia&#039;, &#039;Perlis&#039;, &#039;Paraná&#039;, &#039;Paraguay&#039;, &#039;Pitcairn Islands&#039;, &#039;Perak&#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