Template:Console selector/button

ifexist is considered an expensive parser function, so we only call it once and include the button twice. mw:Help:Extension:ParserFunctions