Module:Update: Skirtumas tarp puslapio versijų

Pereiti į navigaciją Jump to search
202 pridėti baitai ,  11 balandžio
S
nėra keitimo aprašymo
SNėra keitimo santraukos
SNėra keitimo santraukos
422 eilutė: 422 eilutė:
if hc(a.category) then
if hc(a.category) then
-- if it has category, {{Update}}
    -- if it has category, {{Update}}
cat = category_info[cat_switch[string.gsub(string.lower(a.category), ' ?updates?', '')]][2]
    local category_key = cat_switch[string.gsub(string.lower(a.category), ' ?updates?', '')]
    if category_key then
        cat = category_info[category_key][2]
    else
        -- If the category key doesn't exist, default to 'Patch Notes'
        cat = 'Patch Notes'
    end
else
else
-- missing both probably means {{Patch Notes}}
    -- missing both probably means {{Patch Notes}}
cat = 'Patch Notes'
    cat = 'Patch Notes'
end
end
return string.format("'''%s''' – %s: [[Update:%s|%s]]",year,cat,page,page)
return string.format("'''%s''' – %s: [[Update:%s|%s]]",year,cat,page,page)

Naršymo meniu