Modul:Brister

Från Järnvägsdata

local p = {}

function p.main( frame )

   args = frame.args
   text = ""
   if args["fler"] .. args["källor"] .. args["blp"] ~= "" then
       text = text .. "* Kompletteras med 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 .. "* 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 Wikipedias relevanskriterier "
       if args["rel"] ~= "ja" then
           text = text .. "(" ..  args["rel"] .. ")"
       end
       text = text .. "\n"
   end
   if args["fakta"] ~= "" then
       text = text .. "* Faktakontrolleras "
       if args["fakta"] ~= "ja" then
           text = text .. "(" .. args["fakta"] .. ")"
       end
       text = text .. "\n"
   end
   if args["inledning"] ~= "" then
       text = text .. "* Ges ett sammanhang "
       if args["inledning"] ~= "ja" then
           text = text .. "(" .. args["inledning"] .. ")"
       end
       text = text .. "\n"
   end
   if args["pov"] ~= "" then
       text = text .. "* 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 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 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 språkligt eller korrekturläsas "
       if args["språk"] ~= "ja" then
           text = text .. "(" .. args["språk"] .. ")"
       end
       text = text .. "\n"
   end
   if args["okat"] ~= "" then
       text = text .. "* Kategoriseras "
       if args["okat"] ~= "ja" then
           text = text .. "(" .. args["okat"] .. ")"
       end
       text = text .. "\n"
   end
   if args["kk"] ~= "" then
       text = text .. "* Kvalitetskontrolleras "
       if args["kk"] ~= "ja" then
           text = text .. "(" .. args["kk"] .. ")"
       end
       text = text .. "\n"
   end
   if args["förvirrande"] ~= "" then
       text = text .. "* 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 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 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 fler källor\n"
       end
       if a == "wiki" or a == "ickewiki" then
           text = text .. "* Wikiformateras\n"
       end
       if a == "relevans" or a == "rel" then
           text = text .. "* Utökas med information som verifierar att ämnet uppfyller Wikipedias relevanskriterier\n"
       end
       if a == "fakta" or a == "faktakoll" then
           text = text .. "* Faktakontrolleras\n"
       end
       if a == "inledning" or a == "sammanhang" then
           text = text .. "* Ges ett sammanhang\n"
       end
       if a == "pov" or a == "npov" then
           text = text .. "* Skrivas mer neutralt\n"
       end
       if a == "reklam" then
           text = text .. "* Göras mindre reklamaktig\n"
       end
       if a == "språkvård" or a == "språk" then
           text = text .. "* Förbättras språkligt eller korrekturläsas\n"
       end
       if a == "global" or a == "global/sverige" or a == "sverige" then
           text = text .. "* Skrivas ur ett globalt perspektiv\n"
       end
       if a == "substub" or a == "stub" then
           text = text .. "* Utökas eller infogas då den innehåller nästan ingen information\n"
       end
       if a == "förvirrande" then
           text = text .. "* Förtydligas\n"
       end
       if a == "kk" or a == "kvalite" or a == "kvalitetskontroll" then
           text = text .. "* Kvalitetskontrolleras\n"
       end
       if a == "fluff" then
           text = text .. "* Skrivas mer specifikt och koncist\n"
       end
       if a == "okat" or a == "okategoriserad" then
           text = text .. "* 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 .. ""
   end
   if args["källor"] ~= "" then
   	text = text .. ""
   end
   if args["blp"] ~= "" then

text = text .. ""

   end
   if args["wiki"] ~= "" or args["okat"] ~= "" then
       if datum == "utan datum" then
           text = text .. "" 

else

           text = text .. ""
       end
       text = text .. ""
   end
   if args["rel"] ~= "" then
   	text = text .. ""
   end
   if args["fakta"] ~= "" then

text = text .. ""

   end
   if args["inledning"] ~= "" then

text = text .. ""

   end
   if args["pov"] ~= "" then

text = text .. ""

   end
   if args["reklam"] ~= "" then

text = text .. ""

   end
   if args["stub"] ~= "" then

text = text .. ""

   end
   if args["språk"] ~= "" then

text = text .. ""

   end
   if args["okat"] ~= "" then

text = text .. ""

   end
   if args["kk"] ~= "" then

text = text .. ""

   end
   if args["förvirrande"] ~= "" then

text = text .. ""

   end
   if args["fluff"] ~= "" then

text = text .. ""

   end
   if args["bluff"] ~= "" then

text = text .. ""

   end
   if args["global"] ~= "" then

text = text .. ""

   end
   for i = 1 , 10 do
       local a = args[i]
       if a == "källor"  then
           text = text .. ""
       end
       if a == "källor biografi" or a == "källor_biografi" or a == "biografi" or a == "blp" then
           text = text .. ""
       end
       if a == "fler" or a == "fler_källor" or a == "fler källor" then
           text = text .. ""
       end
       if a == "wiki" or a == "ickewiki" or a == "okat" or a == "okategoriserad" then
           if datum == "utan datum" then
               text = text .. "" 
           else
               text = text .. ""
           end
           text = text .. ""
       end
       if a == "relevans" or a == "rel" then
           text = text .. ""
       end
       if a == "fakta" or a == "faktakoll" then
           text = text .. ""
       end
       if a == "inledning" or a == "sammanhang" then
           text = text .. ""
       end
       if a == "pov" or a == "npov" then
           text = text .. ""
       end
       if a == "reklam" then
           text = text .. ""
       end
       if a == "språkvård" or a == "språk" then
           text = text .. ""
       end
       if a == "global" or a == "global/sverige" or a == "sverige" then
           text = text .. ""
       end
       if a == "substub" or a == "stub" then
           text = text .. ""
       end
       if a == "förvirrande" then
           text = text .. ""
       end
       if a == "kk" or a == "kvalite" or a == "kvalitetskontroll" then
           text = text .. ""
       end
       if a == "fluff" then
           text = text .. ""
       end
       if a == "okat" or a == "okategoriserad" then
           text = text .. ""
       end
       if a == "bluff" or a == "hoax" then
           text = text .. ""
       end
       if a == "problemparameter" then
           text = text .. ""
       end
   end     
   return text

end

return p