Nicht angemeldeter Benutzer - Bearbeiten von Seiten ist nur als angemeldeter Benutzer möglich.

Änderungen

Zur Navigation springen Zur Suche springen
2019-10-23T13:31:15+00:00
Zeile 1: Zeile 1:  
local ISO15924 = { suite  = "ISO15924",
 
local ISO15924 = { suite  = "ISO15924",
 
                   sub    = "codes",
 
                   sub    = "codes",
                   serial = "2019-10-21T21:24:39+00:00",
+
                   serial = "2019-10-23T13:31:15+00:00",
 
                   item  = 71840276,
 
                   item  = 71840276,
 
                   main  = 71584769 }
 
                   main  = 71584769 }
Zeile 7: Zeile 7:  
ISO 15924 mw.loadData() with a snapshot of codes
 
ISO 15924 mw.loadData() with a snapshot of codes
 
]=]
 
]=]
 +
local Failsafe = ISO15924
 +
    
ISO15924.cjk = {
 
ISO15924.cjk = {
Zeile 607: Zeile 609:  
zero = { { 0x200B, 0x200D } }
 
zero = { { 0x200B, 0x200D } }
 
}
 
}
 +
 +
local fresh = function ()
 +
    -- Check for global update
 +
    -- Returns: true, if matching global version; false, if not
 +
    local r
 +
    if mw.title.getCurrentTitle().namespace > 0  and
 +
      type( Failsafe.item ) == "number"  and  Failsafe.item > 0 then
 +
        local storage = string.format( "Q%d", Failsafe.item )
 +
        local entity  = mw.wikibase.getEntity( storage )
 +
        if type( entity ) == "table" then
 +
            local seek = "P348"
 +
            local vsn  = entity:formatPropertyValues( seek )
 +
            if type( vsn ) == "table"  and
 +
              vsn.value == Failsafe.serial then
 +
                r = true
 +
            end
 +
        end
 +
    end
 +
    return r or false
 +
end -- fresh()
 +
    
ISO15924.failsafe = ISO15924.serial
 
ISO15924.failsafe = ISO15924.serial
 +
ISO15924.last    = fresh()
 
return ISO15924
 
return ISO15924
Cookies helfen uns bei der Bereitstellung von imedwiki. Durch die Nutzung von imedwiki erklärst du dich damit einverstanden, dass wir Cookies speichern.

Navigationsmenü