Template:Radic: Difference between revisions
From Vigyanwiki
Template>Army1987 m (adding classes) |
Template>Army1987 m (smaller radical sign) |
||
Line 1: | Line 1: | ||
<span style="white-space: nowrap"><sup><sup class="radic_index" style="margin-right: -0.7em">{{{2|}}}</sup></sup><span class="radic_sign" style="font-size: | <span style="white-space: nowrap"><sup><sup class="radic_index" style="margin-right: -0.7em">{{{2|}}}</sup></sup><span class="radic_sign" style="font-size: 150%; margin-right: -0.05em">√</span><span style="border-top: 0.08em solid; padding-top:0.3em" class="radic">{{{1}}}</span></span><noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
<!-- PLEASE ADD THIS TEMPLATE'S CATEGORIES AND INTERWIKIS TO THE /doc SUBPAGE, THANKS --> | <!-- PLEASE ADD THIS TEMPLATE'S CATEGORIES AND INTERWIKIS TO THE /doc SUBPAGE, THANKS --> | ||
</noinclude> | </noinclude> |
Revision as of 18:07, 7 October 2008
√{{{1}}}
Usage
{{radic|2}}
gives √2.
{{radic|1 + 2''x''|4}}
gives 4√1 + 2x.
{{math|{{radic|2}}}}
gives √2.
{{math|{{radic|1 + 2''x''|4}}}}
gives 4√1 + 2x.
Per MOS:RADICAL, <math>...</math>
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 T263572 is fixed.
For example: can be produced with <math>\sqrt[4]{1 + 2x}</math>.