Difference between revisions of "Template:Earth mass/doc"

From blackwiki
Jump to navigation Jump to search
imported>Jdaloner
m ("{{t1" --> "{{tl")
imported>Andrybak
 
(2 intermediate revisions by 2 users not shown)
Line 12: Line 12:
 
Alternatively, one could use
 
Alternatively, one could use
 
*<code><nowiki>{{val|12|e=8|u=Earth mass}}</nowiki></code> &rarr; {{val|12|e=8|u=Earth mass}}
 
*<code><nowiki>{{val|12|e=8|u=Earth mass}}</nowiki></code> &rarr; {{val|12|e=8|u=Earth mass}}
 +
 +
Instead of <code><nowiki>{{earth mass}}</nowiki></code> one can use the shorter version <code><nowiki>{{M+}}</nowiki></code> with the same functionality:
 +
 +
*<code><nowiki>{{val|12|e=8|u=M+}}</nowiki></code> &rarr; {{val|12|e=8|u=M+}}
 +
*<code><nowiki>{{M+}}</nowiki></code> &rarr; {{M+}}
 +
*<code><nowiki>{{M+|10}}</nowiki></code> &rarr; {{M+|10}}
  
 
=== Options ===
 
=== Options ===
Line 17: Line 23:
  
 
*<code><nowiki>{{earth mass|link=yes}}</nowiki></code> &rarr; {{earth mass|link=yes}}  
 
*<code><nowiki>{{earth mass|link=yes}}</nowiki></code> &rarr; {{earth mass|link=yes}}  
 +
*<code><nowiki>{{M+|link=yes}}</nowiki></code> &rarr; {{M+|link=yes}}
  
 
Alternatively, one could use
 
Alternatively, one could use
 
*<code><nowiki>{{val|12|e=8|ul=Earth mass}}</nowiki></code> &rarr; {{val|12|e=8|ul=Earth mass}}
 
*<code><nowiki>{{val|12|e=8|ul=Earth mass}}</nowiki></code> &rarr; {{val|12|e=8|ul=Earth mass}}
 +
*<code><nowiki>{{val|12|e=8|ul=M+}}</nowiki></code> &rarr; {{val|12|e=8|ul=M+}}
  
 
== See also ==
 
== See also ==
Line 26: Line 34:
 
* {{tl|Solar luminosity}}
 
* {{tl|Solar luminosity}}
  
<includeonly>
+
<includeonly>{{Sandbox other||
 
[[Category:Astronomical symbols templates]]
 
[[Category:Astronomical symbols templates]]
[[Category:Solar System templates]]
+
[[Category:Solar System formatting and function templates]]
</includeonly>
+
}}</includeonly>

Latest revision as of 22:16, 7 October 2020

Usage

  • {{earth mass}}M
  • {{earth mass|FOOBAR}} → FOOBAR M (with non-breaking space)

Usually, this will be used as

  • {{earth mass|10}} → 10 M
  • {{earth mass|{{val|13|1|-2|e=7}}}}Template:Val M

Alternatively, one could use

Instead of {{earth mass}} one can use the shorter version {{M+}} with the same functionality:

  • {{val|12|e=8|u=M+}}Template:Val
  • {{M+}}M
  • {{M+|10}} → 10 M

Options

To include a link to Earth mass, use the |link=yes parameter

  • {{earth mass|link=yes}}M
  • {{M+|link=yes}}M

Alternatively, one could use

See also