Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Console selector/button: Difference between revisions

Template page
(Created page with "{{Clickable button 2|{{{page}}}|{{#ifexist: {{{page}}} | {{{console}}} | {{{console}}} (does not exist) <!-- ifexist -->}} <!-- cb2 -->}}")
 
No edit summary
 
Line 1: Line 1:
{{Clickable button 2|{{{page}}}|{{#ifexist: {{{page}}} | {{{console}}} | {{{console}}} (does not exist) <!-- ifexist -->}} <!-- cb2 -->}}
{{#ifexist: {{{page}}} | <!-- exists -->{{Clickable button 2| {{{page}}} | {{{console}}} }} | <!-- doesn't exist -->{{Clickable button 2| {{{page}}} | ''{{{console}}}'' |style=color: var(--color-link-new);}} <!-- ifexist -->}}<noinclude>
 
ifexist is considered an expensive parser function, so we only call it once and include the button twice. [[mw:Help:Extension:ParserFunctions##ifexist]]

Latest revision as of 05:54, 2 March 2023

[[{{{page}}}|{{{console}}}]]

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