Difference between revisions of "Template:Earth radius"

From blackwiki
Jump to navigation Jump to search
imported>Tom.Reding
(Standardize {{Earth radius}} behavior to match almost all of the other Solar System templates (save {{Jupiter radius}}).)
imported>Tom.Reding
(Fixed errant behavior of wiki not parsing leading single quotes properly when no spaces present before the template: ''G''{{Earth radius}} made the rest of the line bold.)
Line 2: Line 2:
 
  |{{{1}}} 
 
  |{{{1}}} 
 
}}{{#if:{{{link|}}}
 
}}{{#if:{{{link|}}}
  |[[Earth radius|''R''<sub>⊕</sub>]]
+
  |[[Earth radius|<i>R</i><sub>⊕</sub>]]
  |''R''<sub>⊕</sub>
+
  |<i>R</i><sub>⊕</sub>
 
}}<noinclude>
 
}}<noinclude>
 
{{documentation}}
 
{{documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 20:05, 5 December 2014

R

Usage

  • {{Earth radius}}R
  • {{Earth radius|FOOBAR}} → FOOBAR R (with non-breaking space)

Usually, this will be used as:

  • {{Earth radius|10}} → 10 R
  • {{Earth radius|{{val|13|1|-2|e=7}}}}Template:Val R

Alternatively, one could use:

Instead of {{Earth radius}} one can use the shorter version {{R+}} with the same functionality:

Options

To include a link to Earth radius, use the |link=yes parameter (or |link=y):

Alternatively, one could use:

See also