"I wish you would have told the truth." is incorrect, although sometimes heard. "I wish you had told me the truth." is good. "I wish you would tell the truth." is good. "If only she would marry me!" is good. "If only she married me!" is incorrect. "If only she had married me!" would work.