Template:Math: Difference between revisions

From The Perfect Tower II
Jump to navigation Jump to search
Exe boss (talk | contribs)
m Use <onlyinclude>
Exe boss (talk | contribs)
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 14:49, 17 April 2026

{{{1}}}

Adds formatting for mathematical formulae and variables

Template parameters[Edit template data]

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