Modul:Temp: Porovnání verzí
Smazaný obsah Přidaný obsah
ošetření názvů s podtržítky místo mezer |
+ další formáty |
||
Řádek 155:
return
end
local patternsLangEntry = {
"^(%a%a%a?%-%a%a%-)(.+)$",
"^(%a%a%a?%-)(.+)$",
"^(Paris%-%-)(.+)$"
}
local patternsEntryLang = {
"^(.+)(%-fr-Paris)$",
"^(.+)( FR-Paris)$",
"^(.+)(%-fr-ouest)$",
}
local output = ""
Řádek 167 ⟶ 179:
local fileExtension
local lang
local entry
local value
Řádek 181 ⟶ 192:
if fileName then
for _, pattern in ipairs( patternsLangEntry ) do
lang
if lang then
valueType = string.format( "%s%s", lang, entry )
break
end
end
if not lang then
for _, pattern in ipairs( patternsEntryLang ) do
if lang then
valueType = string.format( "%s%s", entry, lang )
break
end
end
end
entry = entry and entry or fileName
if entry == title then
Řádek 196 ⟶ 221:
output = output .. string.format( "[[Kategorie:Monitoring:Audio/1/*.%s]]", fileExtension )
output = output .. string.format( "[[Kategorie:Monitoring:Audio/1/%s]]", lang .. ( country and ( "-" .. country ) or "" ) )▼
if valueType then
▲ output = output .. string.format( "[[Kategorie:Monitoring:Audio/1/%s]]",
end
output = output .. string.format( "[[Kategorie:Monitoring:Audio/1/%s]]", equalityType )
|