Difference between revisions of "Template:Math"

From The Perfect Tower II
Jump to navigation Jump to search
m (Use <onlyinclude>)
(Add `nowrap` parameter)
 
Line 1: Line 1:
<onlyinclude><span style="font-family: serif; font-size: 125%;">{{{1}}}</span></onlyinclude>
+
<onlyinclude><span style="font-family: serif; font-size: 125%;{{ifdef|{{{nowrap|<noinclude>1</noinclude>}}}|<nowiki/> white-space: nowrap;}}">{{{1}}}</span></onlyinclude>
 
<templatedata>
 
<templatedata>
 
{
 
{
Line 11: Line 11:
 
"required": true,
 
"required": true,
 
"type": "string"
 
"type": "string"
 +
},
 +
"nowrap": {
 +
"label": "No Wrap?",
 +
"description": "Whether to prevent text wrapping",
 +
"default": "0",
 +
"autovalue": "1",
 +
"type": "boolean"
 
}
 
}
 
}
 
}
 
}
 
}
 
</templatedata>
 
</templatedata>

Latest revision as of 16:49, 17 April 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
No Wrap?nowrap

Whether to prevent text wrapping

Default
0
Auto value
1
Booleanoptional