Thread:Project:Support desk/Template:Infobox problem/reply

Wikipedia has the Extension:ParserFunctions extension installed which provides this  logic. You have to install that extension if you want to use templates directly from Wikipedia.