Modul:Temp: Porovnání verzí

Smazaný obsah Přidaný obsah
+ monitoring přípony souboru; úprava logiky
optimalizace kódu
Řádek 162:
local title = titleObject.text
local valueType = ""
local equalityType
local fileName
local fileExtension
local valueType = ""
local equalityType
local value
local parentheses
Řádek 175:
if fileExtension then
output = output .. string.format( "[[Kategorie:Monitoring:Audio/1/*.%s]]]", fileExtension )
end
Řádek 182:
if text ~= "" then
value, parentheses = mw.ustringstring.match( text, "(.*) %(([^%)]+)%)$" )
if parentheses then
Řádek 204:
end
end
if equalityType then
output = output .. string.format( "[[Kategorie:Monitoring:Audio/2/%s]]", equalityType )
output = output .. string.format( "[[Kategorie:Monitoring:Audio/2/%s]]", valueType )
if parentheses then
output = output .. string.format( "[[Kategorie:Monitoring:Audio/2/* (%s)]]", parentheses )
if elseif equalityType == "≢" then
output = output .. string.format( "[[Kategorie:Monitoring:Audio/2/≢ */%s]]", text )
end
else
output = output .. "[[Kategorie:Monitoring:Audio/2/]]"
end
output = output .. string.format( "[[Kategorie:Monitoring:Audio/2/%s]]", valueType )
if parentheses then
output = output .. string.format( "[[Kategorie:Monitoring:Audio/2/* (%s)]]", parentheses )
elseif equalityType == "≢" then
output = output .. string.format( "[[Kategorie:Monitoring:Audio/2/≢ */%s]]", text )
end
output = frame:preprocess( output )