Template:Sqrt/doc

来自testwiki
跳转到导航 跳转到搜索

Template:缺乏中文说明 Template:Documentation subpage

Usage

{{sqrt|2}} gives Template:Sqrt.

This template is an alternative to using the LaTeX \sqrt rendered in-line, and will make the square root appear as text with the √ symbol and then the number (entered as the first parameter in this template) with an overline. Do not use this inside <math> tags.

  • 當然也可以選用<math></math>輸出:
    {{Sqrt|2|3|use math=yes}} gives Template:Sqrt.
  • 若要放置於<math></math>中請同時指定use mathin math為真,並且以{{#tag:math|}}來書寫math標籤:
    {{#tag:math| 2 + {{Sqrt|2|3|use math=yes|in math=yes}} }} gives 2+[[:Template:Sqrt]]
  • 若未啟用use math則無法正常顯示多次方根:
    {{Sqrt|2|3}} gives Template:Sqrt

See also