Modul:Infobox: Unterschied zwischen den Versionen

75 Bytes hinzugefügt ,  4. Oktober 2016
keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 45: Zeile 45:


function getScreenSize(property)
function getScreenSize(property)
local result = ''
local result = nil
local needToClose = false
local needToClose = false
if property then
if property then
result = ""
for key, prop in pairs(property) do
for key, prop in pairs(property) do
if key == 1 then
if key == 1 then
Zeile 66: Zeile 67:


function getScreenResolution(property)
function getScreenResolution(property)
local result = ''
local result = nil
if property then
if property then
if property[2] then
if property[2] then
Zeile 78: Zeile 79:


function getScreenPpi(property)
function getScreenPpi(property)
return getValueWithUnit(property[1])
if property and property[1] then
return getValueWithUnit(property[1])
else
return nil
end
end
end


11.008

Bearbeitungen