Forum:Quick code template

Hello, sometimes ago I tried to figure out a way to create a template to quickly do this task:, but I couldn't. It was a whim of mine, to have quicker way to write inline codes (not with "pre"). I want to know if there is a way, though.

Using doesn't work because the "nowiki" cancel out the paremeter invocation. I also tried using this trick but when transcluded the "nowiki" doesn't work. There is even the tag  that works, but it transclude a template before applying the nowiki tags, for example   gives:

Any ideas or is it impossible?