Difference between revisions of "Template:Math"

From The Perfect Tower II
Jump to navigation Jump to search
(Created page with "<span style="font-family: serif; font-size: 125%;">{{{1}}}</span><noinclude> <templatedata> { "params": { "1": { "label": "Formula or variable", "description": "The f...")
 
m (Use <onlyinclude>)
 
Line 1: Line 1:
<span style="font-family: serif; font-size: 125%;">{{{1}}}</span><noinclude>
+
<onlyinclude><span style="font-family: serif; font-size: 125%;">{{{1}}}</span></onlyinclude>
 
<templatedata>
 
<templatedata>
 
{
 
{
 +
"description": "Adds formatting for mathematical formulae and variables",
 +
"format": "inline",
 
"params": {
 
"params": {
 
"1": {
 
"1": {
Line 7: Line 9:
 
"description": "The formula or variable to display",
 
"description": "The formula or variable to display",
 
"example": "a = (x / y)^2",
 
"example": "a = (x / y)^2",
"type": "string",
+
"required": true,
"required": true
+
"type": "string"
 
}
 
}
},
+
}
"description": "Adds formatting for mathematical formulae and variables",
 
"format": "inline"
 
 
}
 
}
 
</templatedata>
 
</templatedata>
</noinclude>
 

Latest revision as of 19:42, 9 March 2026

{{{1}}}

Adds formatting for mathematical formulae and variables

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Formula or variable1

The formula or variable to display

Example
a = (x / y)^2
Stringrequired