Forum:Help with Advanced Templates

I've been struggling to learn how to create advanced templates for pages, but I understand very little information from the help pages as they seem to be deliberately written in an overly complicated style. For an example of what I could use some help with, how would I create a method whereby produces the book is red and  produces the book is blue ? --Mulder 19:25, 17 November 2008 (UTC)


 * Have you had a look through Help:Templates?. Dark  Obsidian   19:27, 17 November 2008 (UTC)
 * http://meta.wikimedia.org/wiki/Help:ParserFunctions you want a switch --Uberfuzzy 19:31, 17 November 2008 (UTC)

Yes, I've already looked at both those pages, but the first doesn't seem to answer my query and looks like it's written for beginners while I find the second to be confusing, overly complicated and such a long page that I can't find what I'm looking for! --Mulder 19:48, 17 November 2008 (UTC)

Could someone please explain the answer to my question, rather than referring me to these "help" pages, when they don't answer my query directly and I've already stated that I don't understand them? --Mulder 20:12, 17 November 2008 (UTC)
 * I just created w:c:admintools:Template:Door. It was a pain since it's the first time I used . Just copy and paste the following code:


 * --Michaeldsuarez (Talk) (Deeds) 20:26, 17 November 2008 (UTC)

Thank you, that was very helpful! :-) --Mulder 20:57, 17 November 2008 (UTC)
 * You're welcome. --Michaeldsuarez (Talk) (Deeds) 20:58, 17 November 2008 (UTC)

Your design is strange. I'd rather have this: and Template:Book would be. --◄mendel► 08:15, 18 November 2008 (UTC)
 * Yeah, that would be much more simpler; however, I only gave Mulder the template he specifically asked for. He wanted and  instead of  and  . --Michaeldsuarez (Talk) (Deeds) 15:25, 18 November 2008 (UTC)