Modul:Temp: Porovnání verzí

Smazaný obsah Přidaný obsah
úprava pořadí výpisu; úprava logiky
+ monitoring přípony souboru; úprava logiky
Řádek 158:
local output = ""
local titlefile = titleObjectmw.text.trim( frame:getParent().args[1] or "" )
local argumentValuetext = mw.text.trim( frame:getParent().args[2] or "" )
local argumentValue = mw.text.trim( frame:getParent().args[2] or "" )
local title = titleObject.text
local fileName
local fileExtension
local valueType = ""
local equalityType = ""
local value
local parentheses
if argumentValuefile ~= "" then
fileName, fileExtension = mw.ustring.match( file, "^(.+)%.([^%.]+)$" )
if fileExtension then
output = output .. string.format( "[[Kategorie:Monitoring:Audio/1/*.%s]]]", fileExtension )
end
end
if text ~= "" then
value, parentheses = mw.ustring.match( argumentValuetext, "(.*) %(([^%)]+)%)$" )
if parentheses then
Řádek 182 ⟶ 194:
valueType = string.format( "%s (%s)", equalityType, parentheses )
else
if argumentValuetext == title then
equalityType = "≡"
elseif mw.ustring.lower( argumentValuetext ) == mw.ustring.lower( title ) then
equalityType = "≋"
else
Řádek 194 ⟶ 206:
end
if equalityType ~= "" then
output = output .. string.format( "[[Kategorie:Monitoring:Audio/2/%s]]", equalityType )
end
Řádek 203 ⟶ 215:
output = output .. string.format( "[[Kategorie:Monitoring:Audio/2/* (%s)]]", parentheses )
elseif equalityType == "≢" then
output = output .. string.format( "[[Kategorie:Monitoring:Audio/2/≢ */%s]]", argumentValuetext )
end