Webpage Card’s url is not templatable.
Initially, I thought it might be possible to put an <iframe> in a markdown card, but it seems to just render it as text (probably for security reasons).
I think you might have to look for a custom card to do this. I’ve found Lovelace card-templater card (Jinja2 card templating in Lovelace!), but I haven’t tested it myself.