https://de.wikipedia.org/w/index.php?action=history&feed=atom&title=Modul%3AISO15924%2Fcommons
Modul:ISO15924/commons - Versionsgeschichte
2025-06-29T08:09:38Z
Versionsgeschichte dieser Seite in Wikipedia
MediaWiki 1.45.0-wmf.7
https://de.wikipedia.org/w/index.php?title=Modul:ISO15924/commons&diff=193983712&oldid=prev
PerfektesChaos: 2019-11-12
2019-11-12T14:08:48Z
<p>2019-11-12</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="de">
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">← Nächstältere Version</td>
<td colspan="2" style="background-color: #fff; color: #202122; text-align: center;">Version vom 12. November 2019, 16:08 Uhr</td>
</tr><tr>
<td colspan="2" class="diff-lineno">Zeile 1:</td>
<td colspan="2" class="diff-lineno">Zeile 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 ISO15924 = { suite = "ISO15924",</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 ISO15924 = { suite = "ISO15924",</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> sub = "commons",</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> sub = "commons",</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> serial = "2019-<del style="font-weight: bold; text-decoration: none;">10</del>-<del style="font-weight: bold; text-decoration: none;">20</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> serial = "2019-<ins style="font-weight: bold; text-decoration: none;">11</ins>-<ins style="font-weight: bold; text-decoration: none;">12</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> item = 71679535,</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> item = 71679535,</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> main = 71584769 }</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> main = 71584769 }</div></td>
</tr>
<tr>
<td colspan="2" class="diff-lineno">Zeile 141:</td>
<td colspan="2" class="diff-lineno">Zeile 141:</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>Fetch.run()</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>Fetch.run()</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>ISO15924.failsafe = ISO15924.serial</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>ISO15924.failsafe = ISO15924.serial</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>if mw.title.getCurrentTitle().namespace > 0 then</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>ISO15924.last = fresh()</div></td>
<td colspan="2" class="diff-empty diff-side-added"></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> ISO15924.last = fresh()</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>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>
<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>
PerfektesChaos
https://de.wikipedia.org/w/index.php?title=Modul:ISO15924/commons&diff=193365458&oldid=prev
Funkruf: Schützte „Modul:ISO15924/commons“: Wunsch auf WP:A/AF https://de.wikipedia.org/w/index.php?title=Wikipedia:Administratoren/Anfragen&diff=prev&oldid=193363492&diffmode=source ([Bearbeiten=Nur Sichter] (unbeschränkt) [Verschieben=Nur Administratoren] (unbeschränkt))
2019-10-22T16:15:07Z
<p>Schützte „<a href="/wiki/Modul:ISO15924/commons" title="Modul:ISO15924/commons">Modul:ISO15924/commons</a>“: Wunsch auf WP:A/AF https://de.wikipedia.org/w/index.php?title=Wikipedia:Administratoren/Anfragen&diff=prev&oldid=193363492&diffmode=source ([Bearbeiten=Nur Sichter] (unbeschränkt) [Verschieben=Nur Administratoren] (unbeschränkt))</p>
<table style="background-color: #fff; color: #202122;" data-mw="interface">
<tr class="diff-title" lang="de">
<td colspan="1" style="background-color: #fff; color: #202122; text-align: center;">← Nächstältere Version</td>
<td colspan="1" style="background-color: #fff; color: #202122; text-align: center;">Version vom 22. Oktober 2019, 18:15 Uhr</td>
</tr><tr><td colspan="2" class="diff-notice" lang="de"><div class="mw-diff-empty">(kein Unterschied)</div>
</td></tr></table>
Funkruf
https://de.wikipedia.org/w/index.php?title=Modul:ISO15924/commons&diff=193361330&oldid=prev
PerfektesChaos: 2019-10-20
2019-10-22T13:56:48Z
<p>2019-10-20</p>
<p><b>Neue Seite</b></p><div>local ISO15924 = { suite = "ISO15924",<br />
sub = "commons",<br />
serial = "2019-10-20",<br />
item = 71679535,<br />
main = 71584769 }<br />
--[=[<br />
Create ISO 15924 mw.loadData() table from commons:Data:<br />
]=]<br />
local Failsafe = ISO15924<br />
local Fetch = { }<br />
<br />
<br />
<br />
Fetch.data = function ( access, assume )<br />
-- Retrieve one Data.tab element<br />
-- Precondition:<br />
-- access -- string, with sub tab, or false<br />
-- assume -- string, with expected structure type<br />
-- Returns: table<br />
local storage = ISO15924.suite<br />
local r = { }<br />
local data, lucky<br />
if access then<br />
storage = string.format( "%s/%s", storage, access )<br />
end<br />
storage = storage .. ".tab"<br />
lucky, data = pcall( mw.ext.data.get, storage )<br />
if type( data ) == "table" and<br />
type( data.data ) == "table" and<br />
type( Fetch[ assume ] ) == "function" then<br />
local entry, sign, value<br />
data = data.data<br />
for i = 1, #data do<br />
entry = data[ i ]<br />
if type( entry ) == "table" then<br />
sign, value = Fetch[ assume ]( entry )<br />
if sign then<br />
r[ sign ] = value<br />
elseif value then<br />
table.insert( r, value )<br />
end<br />
end<br />
end -- for i<br />
end<br />
return r<br />
end -- Fetch.data()<br />
<br />
<br />
<br />
Fetch.boolean = function ( achieved )<br />
-- Convert ext.data entry into assignment to boolean<br />
local r1 = achieved[ 1 ]<br />
local r2 = achieved[ 2 ]<br />
if not r2 then<br />
r1 = false<br />
end<br />
return r1, r2<br />
end -- Fetch.boolean()<br />
<br />
<br />
<br />
Fetch.ranges = function ( achieved )<br />
-- Convert ext.data entry into table of ranges or redirects<br />
local r = achieved[ 2 ]<br />
if r:sub( 1, 2 ) == "0x" then<br />
local ranges = mw.text.split( r, "%s*|%s*" )<br />
local range<br />
r = { }<br />
for i = 1, #ranges do<br />
range = mw.text.split( ranges[ i ], "%s+" )<br />
range = { tonumber( range[ 1 ] ),<br />
tonumber( range[ 2 ] ) }<br />
table.insert( r, range )<br />
end -- for i<br />
else<br />
r = mw.text.split( r, "%s+" )<br />
end<br />
return achieved[ 1 ], r<br />
end -- Fetch.ranges()<br />
<br />
<br />
<br />
Fetch.reverse = function ( achieved )<br />
-- Convert ext.data entry into table item with range and string table<br />
local iBeg = tonumber( achieved[ 1 ], 16 )<br />
local iEnd = tonumber( achieved[ 2 ], 16 )<br />
local permit = mw.text.split( achieved[ 3 ], "%s+" )<br />
return false, { iBeg, iEnd, permit }<br />
end -- Fetch.reverse()<br />
<br />
<br />
<br />
Fetch.string = function ( achieved )<br />
-- Convert ext.data entry into assignment to string<br />
return achieved[ 1 ], achieved[ 2 ]<br />
end -- Fetch.string()<br />
<br />
<br />
<br />
Fetch.strings = function ( achieved )<br />
-- Convert ext.data entry into assignment to table of strings<br />
return achieved[ 1 ], mw.text.split( achieved[ 2 ], "%s+" )<br />
end -- Fetch.strings()<br />
<br />
<br />
<br />
Fetch.run = function ()<br />
-- Populate object with data<br />
-- Postcondition:<br />
-- ISO15924 expanded<br />
local tables = Fetch.data( false, "string" )<br />
for k, v in pairs( tables ) do<br />
ISO15924[ k ] = Fetch.data( k, v )<br />
end -- for k, v<br />
end -- Fetch.run()<br />
<br />
<br />
<br />
local fresh = function ()<br />
-- Check for global update<br />
-- Returns: true, if matching global version; false, if not<br />
-- 2019-10-15<br />
local r<br />
if type( Failsafe.item ) == "number" and Failsafe.item > 0 then<br />
local storage = string.format( "Q%d", Failsafe.item )<br />
local entity = mw.wikibase.getEntity( storage )<br />
if type( entity ) == "table" then<br />
local seek = Failsafe.serialProperty or "P348"<br />
local vsn = entity:formatPropertyValues( seek )<br />
if type( vsn ) == "table" and<br />
vsn.value == Failsafe.serial then<br />
r = true<br />
end<br />
end<br />
end<br />
return r or false<br />
end -- fresh()<br />
<br />
<br />
<br />
Fetch.run()<br />
ISO15924.failsafe = ISO15924.serial<br />
ISO15924.last = fresh()<br />
<br />
<br />
<br />
return ISO15924</div>
PerfektesChaos