More actions
Created page with "<noinclude>{{main|Template:M3}}</noinclude> This template transcludes the sequence <code><nowiki>m<sup>3</sup></nowiki></code>, which generates the symbol for "cubic meters" (..." |
Proton One (talk | contribs) Some redundant documentation; sample usage is sufficient. |
||
| (3 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
< | ; Description | ||
: This template creates the cubic meter symbol, by default preceded by a non-breaking space ("{{m3}}"). It avoids a line-break between the{{m3}} and the value of preceding text, keeping them together on one line. | |||
<includeonly>[[Category: | |||
; Syntax | |||
: <''Value''>{{T|m3|no space}} | |||
:; Parameters | |||
::; no space : Optional parameter to suppress the leading non-breaking space. Valid values <code>ns</code> and <code>no space</code>. | |||
; Sample | |||
{| | |||
| {{Code|<nowiki>100{{m3}}</nowiki>}} | |||
| 100{{m3}} | |||
|- | |||
| {{Code|<nowiki>This value is in{{m3}}</nowiki>}} | |||
| This value is in{{m3}} | |||
|- | |||
| {{Code|<nowiki>({{m3|ns}})</nowiki>}} | |||
| ({{m3|ns}}) | |||
|} | |||
; Example of incorrect use | |||
{| | |||
| {{Code|<nowiki>This value is in {{m3}}</nowiki>}} | |||
| This value is in {{m3}} | |||
|- | |||
| {{Code|<nowiki>({{m3}})</nowiki>}} | |||
| ({{m3}}) | |||
|} | |||
<includeonly>[[Category:Formatting templates]]</includeonly> | |||
<noinclude>[[Category:Template documentation]]</noinclude> | <noinclude>[[Category:Template documentation]]</noinclude> | ||
Latest revision as of 15:23, 6 November 2025
- Description
- This template creates the cubic meter symbol, by default preceded by a non-breaking space (" m3"). It avoids a line-break between the m3 and the value of preceding text, keeping them together on one line.
- Syntax
- <Value>{{m3|<no space>}}
- Parameters
-
- no space
- Optional parameter to suppress the leading non-breaking space. Valid values
nsandno space.
- Sample
|
100 m3 | |
|
This value is in m3 | |
|
(m3) |
- Example of incorrect use
|
This value is in m3 | |
|
( m3) |