Set oven at 350 degress. Greese a baking dish. Put onions in pan, dot with maragrine. Add wine, parsley, bay leaf, and thyme, salt and pepper, and water. Cover pan with foil. Bake 30 minutes. Coat liver with flour. Arrange on onion mixture. Cover and bake 30 minutes. Remove foil and bake 10 minutes.