Dokumentation [visa] [redigera] [historik] [rensa sidcachen]


local p = {}
 
function p.main( frame )
    args = frame.args
    text = ""
    if args["fler"] .. args["källor"] .. args["blp"] ~= "" then
        text = text .. "* Kompletteras med [[Wikipedia:Verifierbarhet|fler källor]] "
        if args["fler"] ~= "ja" and args["fler"] ~= "" then 
            text = text .. "(" .. args["fler"] .. ")"
        end
        if args["källor"] ~= "ja" and args["källor"] ~= "" then
            text = text .. "(" .. args["källor"] .. ")"
        end
        if args["blp"] ~= "ja" and args["blp"] ~= "" then
            text = text .. "(" .. args["blp"] .. ")"
        end
        text = text .. "\n"
    end
    if args["wiki"] ~= "" then
        text = text .. "* [[Wikipedia:Introduktion till formatering|Wikiformateras]] "
        if args["wiki"] ~= "ja" then
            text = text .. "(" .. args["wiki"] .. ")"
        end
        text = text .. "\n"
    end
    if args["rel"] ~= "" then
        text = text .. "* Utökas med information som verifierar att ämnet uppfyller [[Wikipedia:Relevanskriterier|Wikipedias relevanskriterier]] "
        if args["rel"] ~= "ja" then
            text = text .. "(" ..  args["rel"] .. ")"
        end
        text = text .. "\n"
    end
    if args["fakta"] ~= "" then
        text = text .. "* [[Wikipedia:Verifierbarhet|Faktakontrolleras]] "
        if args["fakta"] ~= "ja" then
            text = text .. "(" .. args["fakta"] .. ")"
        end
        text = text .. "\n"
    end
    if args["inledning"] ~= "" then
        text = text .. "* [[Wikipedia:Inledning_av_artiklar#Förklara_sammanhanget|Ges ett sammanhang]] "
        if args["inledning"] ~= "ja" then
            text = text .. "(" .. args["inledning"] .. ")"
        end
        text = text .. "\n"
    end
    if args["pov"] ~= "" then
        text = text .. "* [[Wikipedia:Neutral synvinkel|Skrivas mer neutralt]] "
        if args["pov"] ~= "ja" then
            text = text .. "(" .. args["pov"] .. ")"
        end
        text = text .. "\n"
    end
    if args["reklam"] ~= "" then
        text = text .. "* Göras mindre [[Wikipedia:Vad_Wikipedia_inte_är#Inget_propaganda-_eller_reklammedium|reklamaktig]] "
        if args["reklam"] ~= "ja" then
            text = text .. "(" .. args["reklam"] .. ")"
        end
        text = text .. "\n"
    end
    if args["stub"] ~= "" then
        text = text .. "* Utökas eller infogas då den innehåller [[Wikipedia:Stubbar#Substubbar|nästan ingen information]] "
        if args["stub"] ~= "ja" then
            text = text .. "(" .. args["stub"] .. ")"
        end
        text = text .. "\n"
    end
    if args["språk"] ~= "" then
        text = text .. "* Förbättras [[Wikipedia:Språkvård|språkligt]] eller [[Wikipedia:Korrekturläsning|korrekturläsas]] "
        if args["språk"] ~= "ja" then
            text = text .. "(" .. args["språk"] .. ")"
        end
        text = text .. "\n"
    end
    if args["okat"] ~= "" then
        text = text .. "* [[Wikipedia:Kategorier|Kategoriseras]] "
        if args["okat"] ~= "ja" then
            text = text .. "(" .. args["okat"] .. ")"
        end
        text = text .. "\n"
    end
    if args["kk"] ~= "" then
        text = text .. "* [[Wikipedia:Kvalitetskontroll|Kvalitetskontrolleras]] "
        if args["kk"] ~= "ja" then
            text = text .. "(" .. args["kk"] .. ")"
        end
        text = text .. "\n"
    end
    if args["förvirrande"] ~= "" then
        text = text .. "* [[Wikipedia:Skriv ut det självklara|Förtydligas]] "
        if args["förvirrande"] ~= "ja" then
            text = text .. "(" .. args["förvirrande"] .. ")"
        end
        text = text .. "\n"
    end
    if args["fluff"] ~= "" then
        text = text .. "* Skrivas mer [[Wikipedia:Skriv specifikt och koncist|specifikt och koncist]] "
        if args["fluff"] ~= "ja" then
            text = text .. "(" .. args["fluff"] .. ")"
        end
        text = text .. "\n"
    end
    if args["bluff"] ~= "" then
        text = text .. "* Förses med information och källor som bekräftar att det som står i artikeln inte utgör en bluff "
        if args["bluff"] ~= "ja" then
            text = text .. "(" .. args["bluff"] .. ")"
        end
        text = text .. "\n"
    end
    if args["global"] ~= "" then
        text = text .. "* Skrivas ur ett [[Wikipedia:Globalt perspektiv|globalt perspektiv]] "
        if args["global"] ~= "ja" then
            text = text .. "(" .. args["global"] .. ")"
        end
        text = text .. "\n"
    end
    for i = 1 , 10 do
        local a = args[i]
        if a == "källor biografi" or a == "källor_biografi" or a == "biografi" or a == "blp" or a == "källor" or a == "fler" or a == "fler_källor" or a == "fler källor" then
            text = text .. "* Kompletteras med [[Wikipedia:Verifierbarhet|fler källor]]\n"
        end
        if a == "wiki" or a == "ickewiki" then
            text = text .. "* [[Wikipedia:Introduktion till formatering|Wikiformateras]]\n"
        end
        if a == "relevans" or a == "rel" then
            text = text .. "* Utökas med information som verifierar att ämnet uppfyller [[Wikipedia:Relevanskriterier|Wikipedias relevanskriterier]]\n"
        end
        if a == "fakta" or a == "faktakoll" then
            text = text .. "* [[Wikipedia:Verifierbarhet|Faktakontrolleras]]\n"
        end
        if a == "inledning" or a == "sammanhang" then
            text = text .. "* [[Wikipedia:Inledning_av_artiklar#F.C3.B6rklara_sammanhanget|Ges ett sammanhang]]\n"
        end
        if a == "pov" or a == "npov" then
            text = text .. "* [[Wikipedia:Neutral synvinkel|Skrivas mer neutralt]]\n"
        end
        if a == "reklam" then
            text = text .. "* Göras mindre [[Wikipedia:Vad_Wikipedia_inte_är#Inget_propaganda-_eller_reklammedium|reklamaktig]]\n"
        end
        if a == "språkvård" or a == "språk" then
            text = text .. "* Förbättras [[Wikipedia:Språkvård|språkligt]] eller [[Wikipedia:Korrekturläsning|korrekturläsas]]\n"
        end
        if a == "global" or a == "global/sverige" or a == "sverige" then
            text = text .. "* Skrivas ur ett [[Wikipedia:Globalt perspektiv|globalt perspektiv]]\n"
        end
        if a == "substub" or a == "stub" then
            text = text .. "* Utökas eller infogas då den innehåller [[Wikipedia:Stubbar#Substubbar|nästan ingen information]]\n"
        end
        if a == "förvirrande" then
            text = text .. "* [[Wikipedia:Skriv ut det självklara|Förtydligas]]\n"
        end
        if a == "kk" or a == "kvalite" or a == "kvalitetskontroll" then
            text = text .. "* [[:Wikipedia:Kvalitetskontroll|Kvalitetskontrolleras]]\n"
        end
        if a == "fluff" then
            text = text .. "* Skrivas mer [[Wikipedia:Skriv specifikt och koncist|specifikt och koncist]]\n"
        end
        if a == "okat" or a == "okategoriserad" then
            text = text .. "* [[Wikipedia:Kategorier|Kategoriseras]]\n"
        end
        if a == "bluff" or a == "hoax" then
            text = text .. "* Förses med information och källor som bekräftar att det som står i artikeln inte utgör en bluff\n"
        end
 
    end     
 
    return text
end

function p.katt( frame )
    args = frame.args
    local datum = args["datum"]
    text = ""
    if args["fler"] ~= "" then
        text = text .. "[[Kategori:Artiklar som behöver fler källor " .. datum .. "]][[Kategori:Alla artiklar som behöver fler källor]][[Kategori:Alla artiklar som behöver källor]]"
    end
    if args["källor"] ~= "" then
    	text = text .. "[[Kategori:Artiklar som behöver källor " .. datum .. "]][[Kategori:Alla artiklar märkta med mallen källor]][[Kategori:Alla artiklar som behöver källor]]"
    end
    if args["blp"] ~= "" then
		text = text .. "[[Kategori:Biografiska artiklar som behöver källor " .. datum .. "]][[Kategori:Alla biografiska artiklar som behöver källor]][[Kategori:Alla artiklar som behöver källor]]"
    end
    if args["wiki"] ~= "" or args["okat"] ~= "" then
        if datum == "utan datum" then
            text = text .. "[[Kategori:Artiklar som behöver wikifieras utan datum]]" 
		else
            text = text .. "[[Kategori:Artiklar som behöver wikifieras " .. datum .. "]]"
        end
        text = text .. "[[Kategori:Artiklar som behöver wikifieras-samtliga]]"
    end
    if args["rel"] ~= "" then
    	text = text .. "[[Kategori:Relevanskontroll " .. datum .. "]][[Kategori:Relevanskontroll-samtliga]]"
    end
    if args["fakta"] ~= "" then
		text = text .. "[[Kategori:Faktakoll " .. datum .. "]][[Kategori:Alla artiklar som behöver faktakollas]]"
    end
    if args["inledning"] ~= "" then
		text = text .. "[[Kategori:Artiklar vars inledning behöver skrivas om " .. datum .. "]][[Kategori:Städa-samtliga]]"
    end
    if args["pov"] ~= "" then
		text = text .. "[[Kategori:POV " .. datum .. "]][[Kategori:POV-samtliga]]"
    end
    if args["reklam"] ~= "" then
		text = text .. "[[Kategori:Reklamartiklar]][[Kategori:POV " .. datum .. "]][[Kategori:POV-samtliga]]"
    end
    if args["stub"] ~= "" then
		text = text .. "[[Kategori:Substubbar " .. datum .. "]][[Kategori:Substubbar-samtliga]]"
    end
    if args["språk"] ~= "" then
		text = text .. "[[Kategori:Wikipedia:Språkvård " .. datum .. "]][[Kategori:Wikipedia:Språkvård-samtliga]]"
    end
    if args["okat"] ~= "" then
		text = text .. "[[Kategori:Artiklar som bör kategoriseras]]"
    end
    if args["kk"] ~= "" then
		text = text .. "[[Kategori:Kvalitetskontroll " .. datum .. "]][[Kategori:Kvalitetskontroll-samtliga]]"
    end
    if args["förvirrande"] ~= "" then
		text = text .. "[[Kategori:Förvirrande " .. datum .. "]][[Kategori:Förvirrande-samtliga]]"
    end
    if args["fluff"] ~= "" then
		text = text .. "[[Kategori:Fluff " .. datum .. "]][[Kategori:Fluff-samtliga]]"
    end
    if args["bluff"] ~= "" then
		text = text .. "[[Kategori:Sidor som behöver verifieras]][[Kategori:Faktakoll " .. datum .. "]][[Kategori:Alla artiklar som behöver faktakollas]]"
    end
    if args["global"] ~= "" then
		text = text .. "[[Kategori:Wikipedia:Globalt perspektiv " .. datum .. "]][[Kategori:Wikipedia:Globalt perspektiv-samtliga]]"
    end
    for i = 1 , 10 do
        local a = args[i]
        if a == "källor"  then
            text = text .. "[[Kategori:Artiklar som behöver källor " .. datum .. "]][[Kategori:Alla artiklar märkta med mallen källor]][[Kategori:Alla artiklar som behöver källor]]"
        end
        if a == "källor biografi" or a == "källor_biografi" or a == "biografi" or a == "blp" then
            text = text .. "[[Kategori:Biografiska artiklar som behöver källor " .. datum .. "]][[Kategori:Alla biografiska artiklar som behöver källor]][[Kategori:Alla artiklar som behöver källor]]"
        end
        if a == "fler" or a == "fler_källor" or a == "fler källor" then
            text = text .. "[[Kategori:Artiklar som behöver fler källor " .. datum .. "]][[Kategori:Alla artiklar som behöver fler källor]][[Kategori:Alla artiklar som behöver källor]]"
        end
        if a == "wiki" or a == "ickewiki" or a == "okat" or a == "okategoriserad" then
            if datum == "utan datum" then
                text = text .. "[[Kategori:Artiklar som behöver wikifieras utan datum]]" 
            else
                text = text .. "[[Kategori:Artiklar som behöver wikifieras " .. datum .. "]]"
            end
            text = text .. "[[Kategori:Artiklar som behöver wikifieras-samtliga]]"
        end
        if a == "relevans" or a == "rel" then
            text = text .. "[[Kategori:Relevanskontroll " .. datum .. "]][[Kategori:Relevanskontroll-samtliga]]"
        end
        if a == "fakta" or a == "faktakoll" then
            text = text .. "[[Kategori:Faktakoll " .. datum .. "]][[Kategori:Alla artiklar som behöver faktakollas]]"
        end
        if a == "inledning" or a == "sammanhang" then
            text = text .. "[[Kategori:Artiklar vars inledning behöver skrivas om " .. datum .. "]][[Kategori:Städa-samtliga]]"
        end
        if a == "pov" or a == "npov" then
            text = text .. "[[Kategori:POV " .. datum .. "]][[Kategori:POV-samtliga]]"
        end
        if a == "reklam" then
            text = text .. "[[Kategori:Reklamartiklar]][[Kategori:POV " .. datum .. "]][[Kategori:POV-samtliga]]"
        end
        if a == "språkvård" or a == "språk" then
            text = text .. "[[Kategori:Wikipedia:Språkvård " .. datum .. "]][[Kategori:Wikipedia:Språkvård-samtliga]]"
        end
        if a == "global" or a == "global/sverige" or a == "sverige" then
            text = text .. "[[Kategori:Wikipedia:Globalt perspektiv " .. datum .. "]][[Kategori:Wikipedia:Globalt perspektiv-samtliga]]"
        end
        if a == "substub" or a == "stub" then
            text = text .. "[[Kategori:Substubbar " .. datum .. "]][[Kategori:Substubbar-samtliga]]"
        end
        if a == "förvirrande" then
            text = text .. "[[Kategori:Förvirrande " .. datum .. "]][[Kategori:Förvirrande-samtliga]]"
        end
        if a == "kk" or a == "kvalite" or a == "kvalitetskontroll" then
            text = text .. "[[Kategori:Kvalitetskontroll " .. datum .. "]][[Kategori:Kvalitetskontroll-samtliga]]"
        end
        if a == "fluff" then
            text = text .. "[[Kategori:Fluff " .. datum .. "]][[Kategori:Fluff-samtliga]]"
        end
        if a == "okat" or a == "okategoriserad" then
            text = text .. "[[Kategori:Artiklar som bör kategoriseras]]"
        end
        if a == "bluff" or a == "hoax" then
            text = text .. "[[Kategori:Sidor som behöver verifieras]][[Kategori:Faktakoll " .. datum .. "]][[Kategori:Alla artiklar som behöver faktakollas]]"
        end
        if a == "problemparameter" then
            text = text .. "[[Kategori:Artiklar med bristermall som har en okänd parameter]]"
        end
    end     
    return text
end

return p