I.e. I have made this template, to show an image, in a width relative to the paragraph container.
<!--@If Defined(ParagraphImageClean)--> <img src="/admin/public/getimage.aspx?Image=<!--@ParagraphImageClean-->&Width=<!--@If(ParagraphContainer='billede')-->330<!--@EndIf--><!--@If(ParagraphContainer='mobilbillede')-->290<!--@EndIf-->&Height=<!--@If(ParagraphContainer='billede')-->320<!--@EndIf--><!--@If(ParagraphContainer='mobilbillede')-->280<!--@EndIf-->" width="<!--@If(ParagraphContainer='billede')-->330<!--@EndIf--><!--@If(ParagraphContainer='mobilbillede')-->290<!--@EndIf-->" height="<!--@If(ParagraphContainer='billede')-->320<!--@EndIf--><!--@If(ParagraphContainer='mobilbillede')-->280<!--@EndIf-->" <!--@If Defined(ParagraphImageLinkAlt)-->alt="<!--@ParagraphImageLinkAlt-->"> <!--@EndIf(ParagraphImageClean)-->
Now, if you had some kind of ability to define your own variables in a template, this could be done much better. Like this:
<!--@If Defined(ParagraphImageClean)--> <!--@If(ParagraphContainer='billede')--> <!--@Var:myWidth=330--> <!--@Var:myHeight=320--> <!--@EndIf--> <!--@If(ParagraphContainer='mobilbillede')--> <!--@Var:myWidth=290--> <!--@Var:myHeight=280--> <!--@EndIf--> <img src="/admin/public/getimage.aspx?Image=<!--@ParagraphImageClean-->&Width=<!--@Var:myWidth-->&Height=<!--@Var:myHeight-->" width="<!--@Var:myWidth-->" height="<!--@Var:myHeight-->" <!--@If Defined(ParagraphImageLinkAlt)-->alt="<!--@ParagraphImageLinkAlt-->"> <!--@EndIf(ParagraphImageClean)-->