Here's a link from a question about this on the Meta site for Stack Exchange.
Basically I want some help with the syntax of MediaWiki, like how can I create templates like this.
Specifics: as commentators requested. I am interested in creating these templates to be fully functional so that I can utilize them in articles. Like I'd love to be able to create drugboxes for my articles on this Wiki.
Now, I realize this is generalized, but all I want is someone to give me an explanation, and then walk me through it.