Moduł:Dopracować: Różnice pomiędzy wersjami

Usunięta treść Dodana treść
Nie podano opisu zmian
Nie podano opisu zmian
Linia 219:
templates["{{comma}}"]=",";
elseif(nazwa_przestrzeni_nazw==resources.data.defaultwikibooks)then
if(((typ_jednostki)and (typ_jednostki=="brudnopisjednostka brudnopisu projektu"))or(mw.ustring.match(nazwa_jednostki,"^[Bb]rudnopis/.-")))then
sourceTemplates = (section) and resources.sectionTemplates or resources.documentationdraftprojectTemplates;
templates["{{unit type}}"]="Jednostki brudnopisu projektu"
else
sourceTemplates = (section) and resources.sectionTemplates or resources.projektTemplates;
templates["{{unit type}}"]="Strony projektu"
end;
if(((typ_jednostki)and(typ_jednostki=="brudnopis projektu"))or(mw.ustring.match(nazwa_jednostki,"^[Bb]rudnopis/.-")))then
templates["{{unit type}}"]="Jednostki brudnopisu projektu"
else
templates["{{unit type}}"]="Strony projektu"
end;
templates["{{comma}}"]=",";
elseif(nazwa_przestrzeni_nazw==resources.data.defaulttemplate)then--
if(((typ_jednostki)and (typ_jednostki=="brudnopisstrona brudnopisu opisu szablonu"))
or((not mw.ustring.match(nazwa_jednostki,"^[Bb]rudnopis/opis$"))and(mw.ustring.match(nazwa_jednostki,"^[Bb]rudnopis/.-"))))then
sourceTemplates = (section) and resources.sectionTemplates or resources.documentationdrafttemplateTemplates
Linia 241 ⟶ 238:
templates["{{comma}}"]=",";
elseif(nazwa_przestrzeni_nazw==resources.data.defaultmodule)then--
if(((typ_jednostki)and(typ_jednostki=="brudnopisstrona brudnopisu opisu modułu"))
or((not mw.ustring.match(nazwa_jednostki,"^[Bb]rudnopis/opis$"))and(mw.ustring.match(nazwa_jednostki,"^[Bb]rudnopis/.-"))))then
sourceTemplates = (section) and resources.sectionTemplates or resources.documentationdraftmoduleTemplates;