Moduł:Pudełko: Różnice pomiędzy wersjami

Usunięta treść Dodana treść
Nie podano opisu zmian
Nie podano opisu zmian
Linia 576:
nazwa_jednostki,_=mw.ustring.gsub(nazwa_jednostki,"^(.-)%?[^&]+=[^&]*.*$","%1");
return nazwa_jednostki;
end;
["Nazwa strony i jej parametry z parametry strony jednostki"]=function(frame)
local parametry_modul=require("Module:Parametry");
local PobierzParametr=parametry_modul.PobierzParametr(frame);
local parametry_strony,_=PobierzParametr("parametry strony jednostki") or PobierzParametr(1);
if(parametry_modul.CzyTak(parametry_strony))then
if(mw.ustring.match(parametry_strony,"^title=[^&]*"))then
nazwa_strony_linku=mw.ustring.match(parametry_strony,"^title=([^&]+)&?.*$");
parametry_strony,_=mw.ustring.gsub(parametry_strony,"^title=([^&]+)&?","");
elseif(mw.ustring.match(parametry_strony,"&title=[^&]*"))then
nazwa_strony_linku=mw.ustring.match(parametry_strony,"&title=([^&]+)&?.*$");
parametry_strony,_=mw.ustring.gsub(parametry_strony,"&title=([^&]+).*$","");
end;
return nazwa_strony_jednostki,parametry_strony;
else
return nil;
end;
end;
}