Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:M3/doc: Difference between revisions

Template page
Arin Mara (talk | contribs)
mNo edit summary
Proton One (talk | contribs)
Some redundant documentation; sample usage is sufficient.
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
<noinclude>{{main|Template:M3}}</noinclude>
; Description
This template transcludes the sequence <code><nowiki>m<sup>3</sup></nowiki></code>, which generates the symbol for "cubic meters" ('''m<sup>3</sup>''').
: 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''>{{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>