Hello Irishseeker,
Found a match on ScotlandsPeople for William Wedlock by just entering his name & year of death. Try leaving out his year of birth. (I didn't know birth year or place of death so left them blank)
'Tootsiepie' has already posted a reminder about surname first then Christian name. (Easy to forget if you are moving between other sites like Ancestry & ScotlandsPeople) Also check you have clicked on Deaths in the Statutory Registers down left side of page. Heading should be Statutory Deaths 1855 - 2013.
Good luck with your search.
Regards, Dod.
PS. Has there been a wee slip of the fingers somewhere because, with reference to 'bleckie's' post, if William was 70 when he died in 1882, his birth year would be 1812 not 1821.