Namespaces
Variants
Views
Actions

Template:mathjax-or

From cppreference.com
Template documentation

Usage: {{mathjax-or|1=X|2=Y}}.

When MathJax is available via the gadget, displays X. Otherwise, displays Y as if it is wrapped in {{math}}.

Example: {{mathjax-or|1=\(\binom{k + i - 1}{i}\)|2={{mparen|(|)|k + i − 1|i}}}}

produces the text \(\binom{k + i - 1}{i}\) if the gadget is enabled, which is then rendered by MathJax .

Otherwise, it produces the fallback:

k + i − 1
i