Moduł:Dopracować: Różnice pomiędzy wersjami
Usunięta treść Dodana treść
Nie podano opisu zmian |
Nie podano opisu zmian |
||
Linia 156:
args.pf = frame:getParent()
args.nazwa_przestrzeni_nazw=args.pf.args["nazwa przestrzeni nazw"]
args.
args.
args.nazwa_jednostki=args.pf.args["nazwa jednostki"]
args.
args.
args.
args.
args.nazwa_przestrzeni_nazw=(not args.nazwa_przestrzeni_nazw)and args.title.nsText or args.nazwa_przestrzeni_nazw;
args.nazwa_przestrzeni_nazw=require("Module:Nazwy").NpFun{nazwa=args.nazwa_przestrzeni_nazw};
Linia 188:
args.nadmiarowe_argumenty=Nadmiarowy_zbior_argumentow(args.nazwa_przestrzeni_nazw,frame)
or (((((Nadmiarowy_zbior_argumentow(resources.data.defaultmainspace,frame))or (Nadmiarowy_zbior_argumentow(resources.data.defaultwikijunior,frame)))
and (args.nazwa_przestrzeni_nazw==resources.data.defaultwikibooks)and(args.
args.powtarzajace_sie_parametry=require("Moduł:Dopracować").repeatfun(frame)
args.nieznane_parametry=require("Moduł:Dopracować").unknown(frame)
Linia 194:
and(((args.nazwa_przestrzeni_nazw2~="")and(args.nazwa_przestrzeni_nazw~=""))or((args.nazwa_przestrzeni_nazw2=="")and(args.nazwa_przestrzeni_nazw=="")))
and(args.nstext==args.nazwa_przestrzeni_nazw)and(args.prawidlowa_nazwa_jednostki)
and((args.
and(args.title.fullText~=args.
and(args.
and(string.match(args.
or(args.nazwa_przestrzeni_nazw==resources.data.defaultwikijunior))
and(((args.
or(((not args.
and(((not args.
or((args.nazwa_przestrzeni_nazw==resources.data.defaultmainspace)and((args.
or((args.nazwa_przestrzeni_nazw==resources.data.defaultwikijunior)and((args.
or(args.nazwa_przestrzeni_nazw==resources.data.defaultcategory)
or((args.nazwa_przestrzeni_nazw==resources.data.defaultwikibooks)and (((not args.
or((args.
or(args.nazwa_przestrzeni_nazw==resources.data.defaulthelp)or((args.nazwa_przestrzeni_nazw==resources.data.defaulttemplate)
and(((args.
or(((not args.
and((args.title.subpageText==resources.data.defaultdoc)
or((args.title.exists)and(require("Module:Łatki").contentMatchFun{[1]='<noinclude>.-{{%s*[Dd]okumentacja%s*}}.-</noinclude>'
,[2]='<noinclude>.-{{%s*[Dd]okumentacja%s*|.-</noinclude>',pagename=args.title.fullText,namespace=0}==""))))))
or((args.nazwa_przestrzeni_nazw==resources.data.defaultmodule)
and(((args.
or(((not args.
and(args.title.subpageText==resources.data.defaultdoc))))
or((args.nazwa_przestrzeni_nazw==resources.data.defaultuser)and(string.match(args.nazwa_jednostki,"^[^/]+/.*$")))))then
Linia 286:
end;
function Templates()
if((args.
sourceTemplates = (section) and resources.sectionTemplates or resources.otherTemplates
templates["{{unit type}}"]="Jednostki"
Linia 299:
templates["{{comma}}"]=",";
elseif(args.nazwa_przestrzeni_nazw==resources.data.defaultwikibooks)then
if(((args.
sourceTemplates = (section) and resources.sectionTemplates or resources.documentationdraftprojectTemplates;
else
sourceTemplates = (section) and resources.sectionTemplates or resources.projektTemplates;
end;
if(((args.
templates["{{unit type}}"]="Jednostki brudnopisu projektu"
else
Linia 311:
templates["{{comma}}"]=",";
elseif(args.nazwa_przestrzeni_nazw==resources.data.defaulttemplate)then--
if(((args.
or((not mw.ustring.match(args.nazwa_jednostki,"^[Bb]rudnopis/opis$"))and(mw.ustring.match(args.nazwa_jednostki,"^[Bb]rudnopis/.-"))))then
sourceTemplates = (section) and resources.sectionTemplates or resources.documentationdrafttemplateTemplates
Linia 321:
templates["{{comma}}"]=",";
elseif(args.nazwa_przestrzeni_nazw==resources.data.defaultmodule)then--
if(((args.
or((not mw.ustring.match(args.nazwa_jednostki,"^[Bb]rudnopis/opis$"))and(mw.ustring.match(args.nazwa_jednostki,"^[Bb]rudnopis/.-"))))then
sourceTemplates = (section) and resources.sectionTemplates or resources.documentationdraftmoduleTemplates;
Linia 335:
templates["{{comma}}"]=",";
elseif(args.nazwa_przestrzeni_nazw==resources.data.defaultmainspace)then
if(args.
if(args.
sourceTemplates=(section) and resources.sectionTemplates or resources.articleTemplates;
templates["{{unit type}}"]="Artykuły"
Linia 357:
end;
elseif(args.nazwa_przestrzeni_nazw==resources.data.defaultwikijunior)then
if(args.
if(args.
sourceTemplates=(section) and resources.sectionTemplates or resources.articleTemplates;
templates["{{unit type}}"]="Artykuły dla dzieci"
Linia 586:
local mainText2=""
local result={}
if((args.title)and((not args.
mainText, _ = string.gsub(resources.nieobslugiwana_strona_nie_opis_szablonu.simple, resources.data.templatePattern, resources.otherTemplates)
mainText2=mainText2.."<li>"..mainText.."</li>";
Linia 593:
end
end
if((args.title)and((not args.
mainText, _ = string.gsub(resources.nieobslugiwana_strona_nie_opisu_modolu.simple, resources.data.templatePattern, resources.otherTemplates)
mainText2=mainText2.."<li>"..mainText.."</li>";
Linia 600:
end
end
if((args.
mainText, _ = string.gsub(resources.pusta_nazwa_strony_glownej_projektu.simple, resources.data.templatePattern, resources.otherTemplates)
mainText2=mainText2.."<li>"..mainText.."</li>";
Linia 607:
end
end
if((args.
mainText, _ = string.gsub(resources.nieprawidlowa_nazwa_strony_glownej_projektu.simple, resources.data.templatePattern, resources.otherTemplates)
mainText2=mainText2.."<li>"..mainText.."</li>";
Linia 614:
end
end
if((args.title)and(args.
mainText, _ = string.gsub(resources.nieobslugiwana_strona_glowna_projektu.simple, resources.data.templatePattern, resources.otherTemplates)
mainText2=mainText2.."<li>"..mainText.."</li>";
Linia 621:
end
end
if(not args.nadmiarowe_argumenty)and((not args.
mainText, _ = string.gsub(resources.nadmiarowe_parametry.simple, resources.data.templatePattern, resources.otherTemplates)
mainText2=mainText2.."<li>"..mainText.."</li>";
Linia 677:
end
end
if((args.
mainText, _ = string.gsub(resources.pusta_nazwa_strony_glownej_dla_dzieci.simple, resources.data.templatePattern, resources.otherTemplates)
mainText2=mainText2.."<li>"..mainText.."</li>";
Linia 684:
end
end
if((args.
mainText, _ = string.gsub(resources.nieprawidlowa_nazwa_strony_glownej_dla_dzieci.simple, resources.data.templatePattern, resources.otherTemplates)
mainText2=mainText2.."<li>"..mainText.."</li>";
Linia 691:
end
end
if(((not args.
and(args.nazwa_przestrzeni_nazw==resources.data.defaultmainspace)))then
mainText, _ = string.gsub(resources.nieprawidlowy_typ_jednostki_przestrzeni_glownej .simple, resources.data.templatePattern, resources.otherTemplates)
Linia 699:
end
end
if(((not args.
and((args.
and(args.nazwa_przestrzeni_nazw==resources.data.defaultwikijunior))then
mainText, _ = string.gsub(resources.nieprawidlowy_typ_jednostki_przestrzeni_wikijuniora.simple, resources.data.templatePattern, resources.otherTemplates)
Linia 708:
end
end
if(((not args.
and(args.
and(args.nazwa_przestrzeni_nazw==resources.data.defaultwikibooks))then
mainText, _ = string.gsub(resources.nieprawidlowy_typ_jednostki_przestrzeni_projektu.simple, resources.data.templatePattern, resources.otherTemplates)
Linia 717:
end
end
if(((not args.
and(args.
and(args.nazwa_przestrzeni_nazw==resources.data.defaultmodule))then
mainText, _ = string.gsub(resources.nieprawidlowy_typ_jednostki_przestrzeni_modul.simple, resources.data.templatePattern, resources.otherTemplates)
Linia 726:
end
end
if(((not args.
and(args.
and(args.nazwa_przestrzeni_nazw==resources.data.defaulttemplate))then
mainText, _ = string.gsub(resources.nieprawidlowy_typ_jednostki_przestrzeni_szablon.simple, resources.data.templatePattern, resources.otherTemplates)
Linia 735:
end
end
if((args.title)and(args.
mainText, _ = string.gsub(resources.nieobslugiwana_strona_glowna_dla_dzieci.simple, resources.data.templatePattern, resources.otherTemplates)
mainText2=mainText2.."<li>"..mainText.."</li>";
|