Difference between revisions of "Template:M3/doc"
From EVE University Wiki
m |
(Update doc.) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
− | < | + | ; Description |
− | + | : This template creates the cubic meter symbol ({{m3|ns}}) by default preceded with a non-breaking space. It avoids a line-break between the{{m3}} and the value or 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> gives...}} | ||
+ | : 100{{m3}} | ||
+ | : {{Code|<nowiki>This value is in{{m3}}</nowiki> gives...}} | ||
+ | : This value is in{{m3}} | ||
+ | |||
+ | |||
+ | : Example of {{notthis|incorrect}} use | ||
+ | : {{Code|<nowiki>This value is in {{m3}}.</nowiki> gives...}} This value is in {{m3}}. | ||
+ | : It is hard to see, but this results in 2 spaces between in and{{m3}} and as one is a normal space when an automatic line-break occurs between in and the{{m3}} they will be split over two lines. | ||
+ | |||
+ | |||
+ | : Example where suppression of the non-breaking space is needed | ||
+ | : {{Code|<nowiki>({{m3|ns}})</nowiki> gives...}} | ||
+ | : ({{m3|ns}}) | ||
+ | : Not suppressing the non-breaking space here would lead to the strange looking ({{m3}}). | ||
+ | |||
+ | |||
<includeonly>[[Category:Formatting templates]]</includeonly> | <includeonly>[[Category:Formatting templates]]</includeonly> | ||
<noinclude>[[Category:Template documentation]]</noinclude> | <noinclude>[[Category:Template documentation]]</noinclude> |
Latest revision as of 12:30, 25 July 2024
- Description
- This template creates the cubic meter symbol (m3) by default preceded with a non-breaking space. It avoids a line-break between the m3 and the value or 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
ns
andno space
.
- Sample
100{{m3}} gives... - 100 m3
This value is in{{m3}} gives... - This value is in m3
- Example of incorrect use
This value is in m3.This value is in {{m3}}. gives... - It is hard to see, but this results in 2 spaces between in and m3 and as one is a normal space when an automatic line-break occurs between in and the m3 they will be split over two lines.
- Example where suppression of the non-breaking space is needed
({{m3|ns}}) gives... - (m3)
- Not suppressing the non-breaking space here would lead to the strange looking ( m3).