Zum Inhalt springen

Modul:URLutil: Unterschied zwischen den Versionen

c/p aus https://de.wikipedia.beta.wmflabs.org/w/index.php?title=Modul:URLutil&oldid=21865 (Spezial:PermaLink/179745316#1× C&P Modul mit 700.000 Einbindungen)
w>Septembermorgen
(https://de.wikipedia.org/w/index.php?title=Wikipedia%3AAdministratoren%2FAnfragen&type=revision&diff=173391765&oldid=173390181)
w>Schniggendiller
(c/p aus https://de.wikipedia.beta.wmflabs.org/w/index.php?title=Modul:URLutil&oldid=21865 (Spezial:PermaLink/179745316#1× C&P Modul mit 700.000 Einbindungen))
Zeile 1: Zeile 1:
local URLutil = { suite  = "URLutil",
local URLutil = { suite  = "URLutil",
                   serial = "2018-01-24",
                   serial = "2018-01-27",
                   item  = 10859193 }
                   item  = 10859193 }
--[=[
--[=[
Zeile 37: Zeile 37:
* isWebURL()
* isWebURL()
* wikiEscapeURL()
* wikiEscapeURL()
* failsafe()
Only [[dotted decimal]] notation for IPv4 expected.
Only [[dotted decimal]] notation for IPv4 expected.
Does not support dotted hexadecimal, dotted octal, or single-number formats.
Does not support dotted hexadecimal, dotted octal, or single-number formats.
Zeile 909: Zeile 910:
         since = false
         since = false
         if type( item ) == "number"  and  item > 0 then
         if type( item ) == "number"  and  item > 0 then
             local ent = mw.wikibase.getEnt( string.format( "Q%d",
             local ent = mw.wikibase.getEntity( string.format( "Q%d",
                                                          item ) )
                                                              item ) )
             if type( ent ) == "table" then
             if type( ent ) == "table" then
                 local vsn = ent:formatPropertyValues( "P348" )
                 local vsn = ent:formatPropertyValues( "P348" )
Anonymer Benutzer