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
value, parentheses = mw.ustring.match( argumentValue, "(.*) %(([^%)]+)%)$" )▼
if parentheses then▼
if value == title then▼
equalityType = "≡"▼
equalityType = "
equalityType = "≋"
else▼
equalityType = "≢"▼
end▼
valueType = string.format( "%s (%s)", equalityType, parentheses )▼
else
▲ equalityType = "≢"
▲ equalityType = "≡"
▲ end
elseif mw.ustring.lower( argumentValue ) == mw.ustring.lower( title ) then
▲ valueType = string.format( "%s (%s)", equalityType, parentheses )
▲ if argumentValue == title then
end
▲ elseif mw.ustring.lower( argumentValue ) == mw.ustring.lower( title ) then
valueType = string.format( "%s %s", equalityType, ( equalityType == "≢" and argumentValue or "*" ) )
▲ valueType = "≋"
▲ else
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 )
|