Modul:Temp: Porovnání verzí

Smazaný obsah Přidaný obsah
+ monitoring dalších typů shody parametru s názvem stránky
kompletace monitoringu pro {{Audio}}
Řádek 157:
local valueType = ""
local equalityType = ""
local value
local parentheses
local equalityType
if argumentValue =~= title"" then
value, parentheses = mw.ustring.match( argumentValue, "(.*) %(([^%)]+)%)$" )
value, parentheses = mw.ustring.match( argumentValue, "(.*) %(([^%)]+)%)$" )
if parentheses then
if value == title then
if parentheses then
equalityType = "≡"
elseif mw.ustring.lower( if value ) == mw.ustring.lower( title ) then
equalityType = ""
elseif mw.ustring.lower( argumentValuevalue ) == mw.ustring.lower( title ) then
equalityType = "≋"
else
equalityType = "≢"
end
valueType = string.format( "%s (%s)", equalityType, parentheses )
else
if valueargumentValue == title then
equalityType = "≢"
equalityType = "≡"
end
elseif mw.ustring.lower( argumentValue ) == mw.ustring.lower( title ) then
valueType = string.format( "%s (%s)", equalityType, parentheses )
valueType equalityType = "≋"
else
else
if argumentValue == title then
valueType equalityType = ""
end
elseif mw.ustring.lower( argumentValue ) == mw.ustring.lower( title ) then
valueType = string.format( "%s %s", equalityType, ( equalityType == "≢" and argumentValue or "*" ) )
valueType = "≋"
else
valueType = argumentValue
end
end
output = output .. string.format( "[[Kategorie:Monitoring:Audio/2/%s]]", valueType )
if equalityType ~= "" then
output = output .. string.format( "[[Kategorie:Monitoring:Audio/2/%s]]", equalityType )
end
output = frame:preprocess( output )