More actions
m Update docs. |
Proton One (talk | contribs) Some redundant documentation; sample usage is sufficient. |
||
| (One intermediate revision by one other user not shown) | |||
| Line 1: | Line 1: | ||
; Description | ; Description | ||
: This template creates the cubic meter symbol | : 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 | ; Syntax | ||
: <''Value''>{{T|m3}} | : <''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> | <includeonly>[[Category:Formatting templates]]</includeonly> | ||
<noinclude>[[Category:Template documentation]]</noinclude> | <noinclude>[[Category:Template documentation]]</noinclude> | ||