{{ed right|SomeTemplate}} gives
{{ed right|SomeTemplate|this link}} gives
Caveats:
It doesn't work too well within lists. In tables better use a row |align="right"|{{ed|SomeTemplate|this link}} instead of {{ed right}}
  • {{Ed}} – navbar style edit link
  • {{Ed right}} – navbar style edit link aligned to right of page
  • {{Edit}} – plain edit link
  • {{Edit section}} – edit link aligned to right of page
  • {{Edit sup}} – edit link with <sup> tags
  • {{Edit sub}} – edit link with <sub> tags
  • {{Navbar}} – with additional links
  • {{Vedit}} – edit with the Visual Editor
  • {{View}}