<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://goodoldtv.com/index.php?action=history&amp;feed=atom&amp;title=Template%3AMath%2Fdoc</id>
	<title>Template:Math/doc - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://goodoldtv.com/index.php?action=history&amp;feed=atom&amp;title=Template%3AMath%2Fdoc"/>
	<link rel="alternate" type="text/html" href="http://goodoldtv.com/index.php?title=Template:Math/doc&amp;action=history"/>
	<updated>2026-05-05T06:02:56Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.38.2</generator>
	<entry>
		<id>http://goodoldtv.com/index.php?title=Template:Math/doc&amp;diff=14126&amp;oldid=prev</id>
		<title>Adminpeter: 1 revision imported</title>
		<link rel="alternate" type="text/html" href="http://goodoldtv.com/index.php?title=Template:Math/doc&amp;diff=14126&amp;oldid=prev"/>
		<updated>2022-09-05T01:58:15Z</updated>

		<summary type="html">&lt;p&gt;1 revision imported&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 21:58, 4 September 2022&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Adminpeter</name></author>
	</entry>
	<entry>
		<id>http://goodoldtv.com/index.php?title=Template:Math/doc&amp;diff=14125&amp;oldid=prev</id>
		<title>GOTV&gt;Beland: /* Usage */ {{tag|math}} should be used for expressions with the radical symbol (√); see MOS:RADICAL.</title>
		<link rel="alternate" type="text/html" href="http://goodoldtv.com/index.php?title=Template:Math/doc&amp;diff=14125&amp;oldid=prev"/>
		<updated>2022-06-16T00:57:28Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Usage: &lt;/span&gt; {{tag|math}} should be used for expressions with the radical symbol (√); see &lt;a href=&quot;/index.php?title=MOS:RADICAL&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;MOS:RADICAL (page does not exist)&quot;&gt;MOS:RADICAL&lt;/a&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Documentation subpage}}&lt;br /&gt;
&amp;lt;!-- Categories go where indicated at the bottom of this page, please; interwikis go to Wikidata (see also: [[Wikipedia:Wikidata]]). --&amp;gt;&lt;br /&gt;
{{high-use| 6640 }}&lt;br /&gt;
:{{for|basic mathematical functions|Module:Math}}&lt;br /&gt;
The &amp;#039;&amp;#039;&amp;#039;math&amp;#039;&amp;#039;&amp;#039; template formats [[HTML]]- or [[Help:Wikitext|wiki markup]]-generated mathematical formulas. (It does not accept the [[AMS-LaTeX]] markup that &amp;lt;nowiki&amp;gt;&amp;lt;math&amp;gt;&amp;lt;/nowiki&amp;gt; does.) The template uses the &amp;lt;code&amp;gt;texhtml&amp;lt;/code&amp;gt; class by default for inline text style formulas, which aims to match the size of the serif font with the surrounding sans-serif font (see below). The template also prevents line-wrapping.&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
Use this template for inline, non-complex formulas as an alternative to using the {{tag|math}} tag pair (see: [[Help:Math]]).&lt;br /&gt;
&lt;br /&gt;
=== Examples ===&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{math|&amp;#039;&amp;#039;f&amp;#039;&amp;#039;(&amp;#039;&amp;#039;x&amp;#039;&amp;#039;) {{=}} &amp;#039;&amp;#039;b&amp;#039;&amp;#039;&amp;lt;sup&amp;gt;&amp;#039;&amp;#039;x&amp;#039;&amp;#039;&amp;lt;/sup&amp;gt; {{=}} &amp;#039;&amp;#039;y&amp;#039;&amp;#039;}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
: produces: {{math|&amp;#039;&amp;#039;f&amp;#039;&amp;#039;(&amp;#039;&amp;#039;x&amp;#039;&amp;#039;) {{=}} &amp;#039;&amp;#039;b&amp;#039;&amp;#039;&amp;lt;sup&amp;gt;&amp;#039;&amp;#039;x&amp;#039;&amp;#039;&amp;lt;/sup&amp;gt; {{=}} &amp;#039;&amp;#039;y&amp;#039;&amp;#039;}}&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{math|sin &amp;amp;amp;pi; {{=}} 0}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
: produces: {{math|sin &amp;amp;pi; {{=}} 0}}.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{math|{{intmath|int|0|+&amp;amp;amp;infin;}} &amp;#039;&amp;#039;e&amp;#039;&amp;#039;&amp;lt;sup&amp;gt;−&amp;#039;&amp;#039;x&amp;#039;&amp;#039;&amp;lt;/sup&amp;gt; d&amp;#039;&amp;#039;x&amp;#039;&amp;#039; {{=}} 1}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
: produces: {{math|{{intmath|int|0|+&amp;amp;infin;}} &amp;#039;&amp;#039;e&amp;#039;&amp;#039;&amp;lt;sup&amp;gt;−&amp;#039;&amp;#039;x&amp;#039;&amp;#039;&amp;lt;/sup&amp;gt; d&amp;#039;&amp;#039;x&amp;#039;&amp;#039; {{=}} 1}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;{{math|{{sfrac|1|2}} − {{sfrac|1|3}} {{=}} {{sfrac|1|6}}}}&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
: produces: &amp;#039;&amp;#039;&amp;#039;{{math|{{sfrac|1|2}} − {{sfrac|1|3}} {{=}} {{sfrac|1|6}}}}&amp;#039;&amp;#039;&amp;#039;.  Note the triple-apostrophes have set the whole formula as bold.&lt;br /&gt;
&lt;br /&gt;
{{tag|math}} should be used for expressions with the radical symbol (√); see [[MOS:RADICAL]].&lt;br /&gt;
&lt;br /&gt;
===Use of equals-sign and absolute value bars===&lt;br /&gt;
The equals sign, =, and bar, |, are used as syntax by the wiki template system. Therefore, if a single equals-sign (&amp;quot;=&amp;quot;) is used, it will fail to render, instead showing &amp;quot;&amp;lt;nowiki&amp;gt;{{{1}}}&amp;lt;/nowiki&amp;gt;&amp;quot;. For example, the following template-coding would be invalid:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;{{math|1 + 2 = 3}}&amp;lt;/pre&amp;gt;&lt;br /&gt;
: produces: {{math|1 + 2 = 3}}, which is invalid code&lt;br /&gt;
&lt;br /&gt;
To resolve this, either: (a) Start the formula with &amp;quot;&amp;lt;code&amp;gt;1=&amp;lt;/code&amp;gt;&amp;quot; as in:&lt;br /&gt;
&amp;lt;pre&amp;gt;{{math|1=1 + 2 = 3}}&amp;lt;/pre&amp;gt;&lt;br /&gt;
: produces: {{math|1=1 + 2 = 3}}, or else, (b) enclose the equals-sign in double-braces &amp;lt;nowiki&amp;gt;&amp;quot;{{=}}&amp;quot;&amp;lt;/nowiki&amp;gt; as in:&lt;br /&gt;
&amp;lt;pre&amp;gt;{{math|1 + 2 {{=}} 3}}&amp;lt;/pre&amp;gt;&lt;br /&gt;
: produces: {{math|1 + 2 {{=}} 3}}.&lt;br /&gt;
&lt;br /&gt;
A similar difficulty concerns the vertical bars (&amp;quot;|&amp;quot;) used to indicate absolute value, which without care would get interpreted as part of the template syntax. The solution is different than for the equals sign: such bars should be entered as &amp;quot;&amp;lt;nowiki&amp;gt;{{!}}&amp;lt;/nowiki&amp;gt;&amp;quot;:&lt;br /&gt;
&amp;lt;pre&amp;gt;{{math|{{!}}&amp;#039;&amp;#039;f&amp;#039;&amp;#039;(&amp;#039;&amp;#039;x&amp;#039;&amp;#039;) − &amp;#039;&amp;#039;a&amp;#039;&amp;#039;{{!}} &amp;lt; ε}}&amp;lt;/pre&amp;gt;&lt;br /&gt;
: produces: {{math|{{!}}&amp;#039;&amp;#039;f&amp;#039;&amp;#039;(&amp;#039;&amp;#039;x&amp;#039;&amp;#039;) − &amp;#039;&amp;#039;a&amp;#039;&amp;#039;{{!}} &amp;lt; ε}}.&lt;br /&gt;
&lt;br /&gt;
This example can also be produced by the following:&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;{{math|{{mabs|&amp;#039;&amp;#039;f&amp;#039;&amp;#039;(&amp;#039;&amp;#039;x&amp;#039;&amp;#039;) − &amp;#039;&amp;#039;a&amp;#039;&amp;#039;}} &amp;lt; ε}}&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
: produces: {{math|{{mabs|&amp;#039;&amp;#039;f&amp;#039;&amp;#039;(&amp;#039;&amp;#039;x&amp;#039;&amp;#039;) − &amp;#039;&amp;#039;a&amp;#039;&amp;#039;}} &amp;lt; ε}}&lt;br /&gt;
&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
The following parameters are optional:&lt;br /&gt;
* &amp;lt;code&amp;gt;big=1&amp;lt;/code&amp;gt; – This will render the formula in a bigger fontsize, increased to 165%.&lt;br /&gt;
* &amp;lt;code&amp;gt;size=&amp;#039;&amp;#039;font-size&amp;#039;&amp;#039;&amp;lt;/code&amp;gt; – Use this to specify your own fontsize.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;{{math|big=1|1 + 2 {{=}} 3}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
: produces: {{math|big=1|1 + 2 {{=}} 3}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;nowiki&amp;gt;{{math|size=250%|1 + 2 {{=}} 3}}&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
: produces: {{math|size=250%|1 + 2 {{=}} 3}}&lt;br /&gt;
&lt;br /&gt;
=== TemplateData ===&lt;br /&gt;
{{TemplateData header}}&lt;br /&gt;
&amp;lt;templatedata&amp;gt;{&lt;br /&gt;
&amp;quot;description&amp;quot;: &amp;quot;This template formats markup generated mathematical formulas with HTML and CSS. The template tries to match the size of the serif font with the surrounding sans-serif font. The template also prevents line-wrapping. Use this template for non-complex formulas as an alternative to using the &amp;lt;math&amp;gt; format.&amp;quot;,&lt;br /&gt;
&amp;quot;params&amp;quot;: {&lt;br /&gt;
  &amp;quot;1&amp;quot;: {&lt;br /&gt;
    &amp;quot;label&amp;quot;: &amp;quot;formula&amp;quot;,&lt;br /&gt;
    &amp;quot;description&amp;quot;: &amp;quot;wrap an inline formula in wikitext.&amp;quot;,&lt;br /&gt;
    &amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
    &amp;quot;required&amp;quot;: true&lt;br /&gt;
  },&lt;br /&gt;
  &amp;quot;big&amp;quot;: {&lt;br /&gt;
    &amp;quot;label&amp;quot;: &amp;quot;bigger font size&amp;quot;,&lt;br /&gt;
    &amp;quot;description&amp;quot;: &amp;quot;if set to ‘1’, this will render the formula in a bigger font size, increased to 165%&amp;quot;,&lt;br /&gt;
    &amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
    &amp;quot;required&amp;quot;: false&lt;br /&gt;
  },&lt;br /&gt;
  &amp;quot;size&amp;quot;: {&lt;br /&gt;
    &amp;quot;label&amp;quot;: &amp;quot;custom font size&amp;quot;,&lt;br /&gt;
    &amp;quot;description&amp;quot;: &amp;quot;use this to specify your own font size&amp;quot;,&lt;br /&gt;
    &amp;quot;type&amp;quot;: &amp;quot;string&amp;quot;,&lt;br /&gt;
    &amp;quot;required&amp;quot;: false&lt;br /&gt;
  }&lt;br /&gt;
}}&amp;lt;/templatedata&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
The font and fontsize used for &amp;lt;code&amp;gt;texhtml&amp;lt;/code&amp;gt;, as defined in [[MediaWiki:Common.css]], was determined by comparing common default fonts found on Windows, OS X and Linux and is scaled to 118% to match their [[x-height]]. However, not everyone uses the default fonts. If you find that the rendered math is not of the same size as the surrounding text, you can adjust this in your personal CSS. For instance, the DejaVu Sans and DejaVu Serif fonts do &amp;#039;&amp;#039;not&amp;#039;&amp;#039; need scaling, in which case &amp;lt;code&amp;gt;.mw-parser-output span.texhtml { font-size: 100%; }&amp;lt;/code&amp;gt; will restore proper display.&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;code&amp;gt;texhtml&amp;lt;/code&amp;gt; classname is a remnant from the [[TeX]] renderer, which had a user preference to render [[TeX]]-written formulae in &amp;quot;HTML when simple&amp;quot;. That option has been removed some time ago, but the classname continues to be used for formulae written in HTML.&lt;br /&gt;
&lt;br /&gt;
===Tracking category===&lt;br /&gt;
* Articles with unknown parameters are listed in {{clc|Category:Pages using Math with unknown parameters}}.&lt;br /&gt;
**These same errors are notes in a {{button|Preview}} warning.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[Help:Displaying a formula]]&lt;br /&gt;
* [[Wikipedia:Rendering math]], a comparison of different representation of mathematical expressions&lt;br /&gt;
{{Math templates|notation}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;{{basepage subpage|&lt;br /&gt;
&amp;lt;!-- Categories go below this line, please; interwikis go to Wikidata, thank you! --&amp;gt;&lt;br /&gt;
[[Category:Mathematical formatting templates]]&lt;br /&gt;
&lt;br /&gt;
}}&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>GOTV&gt;Beland</name></author>
	</entry>
</feed>