Template:Radic/doc: Difference between revisions

From testwiki
Jump to navigation Jump to search
imported>Beland
restore deprecation per MOS:RADICAL, add example
 
(No difference)

Latest revision as of 04:46, 30 October 2020

Template:Documentation subpage

Usage

{{radic|2}} gives Template:Radic.

{{radic|1 + 2''x''|4}} gives Template:Radic.

{{math|{{radic|2}}}} gives Template:Math.

{{math|{{radic|1 + 2''x''|4}}}} gives Template:Math.

Per MOS:RADICAL, Template:Tag markup is generally preferred to render expressions using the radical symbol √, but it does not work with the Media Viewer extension, which is used to view images full-screen on mobile devices. So this template should only be used in image captions until Template:Phab is fixed.

For example: 1+2x4 can be produced with <math>\sqrt[4]{1 + 2x}</math>.

See also

Template:Math templates