Riksarkivet SVAR seems to be down still, after their planned maintenance yesterday evening, or I would have used your example.
But this is what I do:
<ref>Norra Sandsjö kyrkoarkiv, Husförhörslängder, SE/VALA/00265/A I/6 (1815-1824), [https://sok.riksarkivet.se/bildvisning/C0022675_00045
bildid: C0022675_00045] Riksarkivet SVAR</ref>
It's from https://www.wikitree.com/wiki/Petersohn-72
On the SVAR page, in the info panel to the right there are little icons for copying the citation, the image number and the link. I use two of these. I first copy the citation: "Norra Sandsjö kyrkoarkiv, Husförhörslängder, SE/VALA/00265/A I/6 (1815-1824), bildid: C0022675_00045" and paste it in between the <ref> <r/ef>
Then I copy the link "https://sok.riksarkivet.se/bildvisning/C0022675_00045"
and paste it in before the "bildid: C0022675_00045" part of the citation, leaving a space between and surrounding it with single brackets: [https://sok.riksarkivet.se/bildvisning/C0022675_00045
bildid: C0022675_00045] which makes the *bildid* bit a link to the image it names.
I usually type in Riksarkivet SVAR after the citation, sometimes even adding (free of charge) - since it wasn't always.
There are more elaborate ways of doing this, I'm sure.
(Not sure how this will come through the G2G editor)