Modul:Temp: Porovnání verzí

Smazaný obsah Přidaný obsah
- relikt z testování
+ monitoring dalších typů shody parametru s názvem stránky
Řádek 152:
local output = ""
local valuetitle = mw.texttitle.trim( frame:getParentgetCurrentTitle().args[2] or "" )text
local argumentValue = mw.text.trim( frame:getParent().args[2] or "" )
local valueType = ""
local parentheses = mw.ustring.match( value, ".*%(([^%)]+)%)$" )
local value
local parentheses
local equalityType
localvalue, parentheses = mw.ustring.match( valueargumentValue, "(.*)%(([^%)]+)%)$" )
if parentheses then
if value == title then
valueType = string.format( "⌂ (%s)", parentheses )
equalityType = "≡"
elseif mw.ustring.lower( value ) == mw.ustring.lower( title ) then
equalityType = "≋"
else
equalityType = "≢"
end
valueType = string.format( "%s (%s)", equalityType, parentheses )
else
valueType = valueargumentValue
end