The D-Link 504t is an ADSL router with a 4-port switch.
It will be possible to create a wireless network with the WL-500g. Just connect the WAN port with one of the 4 ethernet ports on the D-Link with a standard cat5 network cable. Configure the WL-500g as AP as described in your manual.