Board Thread:Support Requests - Getting Technical/@comment-4151266-20160501194107/@comment-856287-20160501202730

The Star Wars Wiki implements them with a somewhat complicated Lua module. But basically, it puts them in a div that moves itself up: So   is the important bit. It means "position this at the right edge, and move it up 2 ems (1 "em" is equal to the current font-size, based on the letter "M").

So you can do the same thing in your Template:Quality:

I'm not sure how that might work if you do it with both Template:Quality and Template:Toprighticon. They might end up overlapping if they both appear on one page. You'll have to try it and see.