Forum:How would I make this template?

So, I'm hoping to make a template on the Uncharted wiki. Basically, it would go in character articles and would show what weapon(s) a particular character uses. Ideally, it would work as follows: with the "AK-47", "RPG-7" and "Pistol" parts resulting in an image of the weapon(s), possibly along with some info about them, neatly laid out. Unfortunately, I have absolutely no idea how you would go about making a template like this. Any help is appreciated. Thanks. --Klock101 19:34, August 23, 2011 (UTC)


 * I would create two templates. One for choosing an appropriate weapon icon, let's call it Weapon Icon, i.e.


 * and after that a general template which does what you described, i.e.


 * This can also be done with just one template - just requires more copy/pasting. Of course, depending on what you want the output to look like, you would need to style, format and adjust these templates accordingly. — Sovq 19:53, August 23, 2011 (UTC)


 * What I would do is have a page for each weapon, and on each of these pages, write the information you want to be displayed when inserted. Name them like "AK-47 template content", "RPG-7 template content", "Pistol".


 * To make those pages, you could use a template, say, which would be built so that including many at the same time would give a nice result.


 * Then, in the template, I'd make a series of ifs a bit like this here but using named parameters  . If a field exists, you include the article.


 * This can make quite complex templates, but it's soooo much fun and it makes article editing much easier!
 * Hunter789 20:09, August 23, 2011 (UTC)