Difference between revisions of "Template:Jupiter radius"

From blackwiki
Jump to navigation Jump to search
imported>Tom.Reding
(Fixed errant behavior of wiki not parsing leading single quotes properly when no spaces present before the template: ''G''{{Jupiter radius}} made the rest of the line bold.)
imported>Tom.Reding
(Added identical Jup= and jup= parameter options to accommodate M_Jup usage.)
Line 2: Line 2:
 
  |{{{1}}} 
 
  |{{{1}}} 
 
}}{{#if:{{{link|}}}
 
}}{{#if:{{{link|}}}
  |[[Jupiter radius|<i>R</i><sub>J</sub>]]
+
  |[[Jupiter radius|<i>R</i><sub>{{#if:{{{jup|}}}|Jup|{{#if:{{{Jup|}}}|Jup|J}}}}</sub>]]
  |<i>R</i><sub>J</sub>
+
  |<i>R</i><sub>{{#if:{{{jup|}}}|Jup|{{#if:{{{Jup|}}}|Jup|J}}}}</sub>
 
}}<noinclude>
 
}}<noinclude>
 
{{documentation}}
 
{{documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 07:18, 12 December 2014

RJ

Usage

  • {{Jupiter radius}}RJ
  • {{Jupiter radius|dozens of}} → dozens of RJ (with non-breaking spaces via &nbsp; and {{nowrap}})

Usually, this will be used as:

  • {{Jupiter radius|1.03{{e|5}}}} → 1.03×105 RJ
  • {{Jupiter radius|{{val|13|1|-2|e=7}}}}Template:Val RJ

Alternatively, one could use:

Options

  • To include a link to Jupiter radius, use the |link=yes or |link=y parameter:
{{Jupiter radius|link=yes}}RJ
Alternatively, one could use:
{{val|12|e=8|ul=Jupiter radius}}Template:Val
  • To change the default "J" subscript to "Jup", use the |jup=y or |Jup=y parameter:
{{Jupiter radius|jup=y}}RJup
{{Jupiter radius|Jup=y}}RJup
  • To change the default "J" subscript to "", use the |greek=yes or |greek=y parameter:
{{Jupiter radius|greek=y}}RJ

See also