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

Template:Infobox Planet: Difference between revisions

Template page
Willco (talk | contribs)
No edit summary
Willco (talk | contribs)
No edit summary
Line 1: Line 1:
=== Planets and exoplanets ===
<infobox>
{{Anchor|Exosolar planets}}
  <title source="title1">
''See {{section link||All parameters}} for a complete listing.''
    <default>{{PAGENAME}}</default>
 
  </title>
{{Infobox planet
  <image source="image1">
| extrasolarplanet   = yes
    <caption source="caption1"/>
| name              = ''name''
  </image>
| image              = Example image not be used in article namespace.jpg
  <data source="Primary">
| image_alt          = ''image_alt''
    <label>Primary</label>
| caption            = ''caption''
  </data>
| apsis              = astron
  <data source="Type">
| discoverer        = ''discoverer''
    <label>Type</label>
| discovery_site     = ''discovery_site''
  </data>
| discovered        = ''discovered''
   <data source="Orbital radius">
| discovery_method   = ''discovery_method''
    <label>Orbital radius</label>
| alt_names          = ''alt_names''
  </data>
| periastron        = ''periastron''
  <data source="Orbital period">
| apoastron          = ''apoastron''
    <label>Orbital period</label>
| semimajor          = ''semimajor''
  </data>
| avg_speed          = ''avg_speed''
  <data source="Rotation">
| eccentricity      = ''eccentricity''
    <label>Rotation</label>
| period            = ''period''
  </data>
| synodic_period    = ''synodic_period''
  <data source="Axial tilt">
| inclination        = ''inclination''
    <label>Axial tilt</label>
| angular_dist      = ''angular_dist''
  </data>
| long_periastron    = ''long_periastron''
  <data source="Mass">
| time_periastron    = ''time_periastron''
    <label>Mass</label>
| semi-amplitude    = ''semi-amplitude''
  </data>
| star              = ''star''
<data source="Radius">
| mean_radius        = ''mean_radius''
    <label>Radius</label>
| surface_area      = ''surface_area''
  </data>
| volume            = ''volume''
<data source="Surface gravity">
| density            = ''density''
     <label>Surface gravity</label>
| surface_grav      = ''surface_grav''
  </data>
| moment_of_inertia_factor = ''moment_of_inertia_factor''
<data source="Water coverage">
| escape_velocity    = ''escape_velocity''
    <label>Water coverage</label>
| mass              = ''mass''
  </data>
| albedo            = ''albedo''
<data source="Atmosphere">
| single_temperature = ''single_temperature''
    <label>Atmosphere</label>
   </data>
<data source="Mean temperature">
    <label>Mean temperature</label>
  </data>
<data source="Moons">
    <label>Moons</label>
  </Moons>
  <group>
    <header>Geographical Features</header>
    <data source="radius">
      <label>Radius</label>
    </data>
    <data source="races">
      <label>Races</label>
    </data>
    <data source="population">
      <label>Population</label>
    </data>
  </group>
</infobox>
<noinclude>
Example usage:<pre>
{{Planet Infobox
|title1=Example
|image1=Example
|caption1=Example
|Primary=Example
|Type=Example
|Orbital radius=Example
|Orbital period=Example
|Rotation=Example
|Axial tilt=Example
|Mass=Example
|Radius=Example
|Surface gravity=Example
|Water coverage=Example
|Atmosphere=Example
|Mean temperature=Example
|Status=Example
|Moons=Example
|age=Example
|races=Example
|population=Example
}}
}}
<syntaxhighlight lang="wikitext" style="font-size: 95%; overflow: auto;">
</pre>
{{Infobox planet
</noinclude>
| extrasolarplanet  = yes
| name              = <!-- Displays on top of infobox-->
| image              = <!-- Use bare filename: Example.jpg -->
| image_scale        = <!-- Overrides reader's default image size -->
| image_alt          =
| caption            =
| apsis              = astron
| discovery_ref      = <!-- <ref>...</ref>-->
| discoverer        =
| discovery_site    =
| discovered        = <!--(Date)-->
| discovery_method  =
| alt_names          = <!--(Any alternative names for the body)-->
| orbit_ref          = <!-- <ref>...</ref>-->
| periastron        =
| apoastron          =
| semimajor          =
| avg_speed          = <!--(Average orbital speed)-->
| eccentricity      =
| period            = <!--(Sidereal orbital period)-->
| synodic_period    = <!--(Synodic orbital period)-->
| inclination        =
| angular_dist      =
| long_periastron    = <!--(Longitude of periastron)-->
| time_periastron    = <!--(Time of periastron)-->
| semi-amplitude    =
| star              =
| physical_ref      = <!-- <ref>...</ref>-->
| mean_radius        = <!--(For planets and large, spheroidal minor planets)-->
| surface_area      =
| volume            = <!-- g/cm<sup>3</sup> -->
| density            =
| mass              =
| surface_grav      = <!--Equatorial surface gravity-->
| moment_of_inertia_factor =
| escape_velocity    =
| albedo            =
| single_temperature =
}}
</syntaxhighlight>
{{clear}}

Revision as of 19:33, 15 June 2026

There is a problem with parsing the infobox

  • 0
  • 1
    <title source="title1">
  • 2
    <default>{{PAGENAME}}</default>
  • 3
    </title>
  • 4
    <image source="image1">
  • 5
    <caption source="caption1"/>
  • 6
    </image>
  • 7
    <data source="Primary">
  • 8
    <label>Primary</label>
  • 9
    </data>
  • 10
    <data source="Type">
  • 11
    <label>Type</label>
  • 12
    </data>
  • 13
    <data source="Orbital radius">
  • 14
    <label>Orbital radius</label>
  • 15
    </data>
  • 16
    <data source="Orbital period">
  • 17
    <label>Orbital period</label>
  • 18
    </data>
  • 19
    <data source="Rotation">
  • 20
    <label>Rotation</label>
  • 21
    </data>
  • 22
    <data source="Axial tilt">
  • 23
    <label>Axial tilt</label>
  • 24
    </data>
  • 25
    <data source="Mass">
  • 26
    <label>Mass</label>
  • 27
    </data>
  • 28
    <data source="Radius">
  • 29
    <label>Radius</label>
  • 30
    </data>
  • 31
    <data source="Surface gravity">
  • 32
    <label>Surface gravity</label>
  • 33
    </data>
  • 34
    <data source="Water coverage">
  • 35
    <label>Water coverage</label>
  • 36
    </data>
  • 37
    <data source="Atmosphere">
  • 38
    <label>Atmosphere</label>
  • 39
    </data>
  • 40
    <data source="Mean temperature">
  • 41
    <label>Mean temperature</label>
  • 42
    </data>
  • 43
    <data source="Moons">
  • 44
    <label>Moons</label>
  • 45
    </Moons>

    Opening and ending tag mismatch

  • 46
    <group>
  • 47
    <header>Geographical Features</header>
  • 48
    <data source="radius">
  • 49
    <label>Radius</label>
  • 50
    </data>
  • 51
    <data source="races">
  • 52
    <label>Races</label>
  • 53
    </data>
  • 54
    <data source="population">
  • 55
    <label>Population</label>
  • 56
    </data>
  • 57
    </group>
  • 58

Example usage:

{{Planet Infobox
|title1=Example
|image1=Example
|caption1=Example
|Primary=Example
|Type=Example
|Orbital radius=Example
|Orbital period=Example
|Rotation=Example
|Axial tilt=Example
|Mass=Example
|Radius=Example
|Surface gravity=Example
|Water coverage=Example
|Atmosphere=Example
|Mean temperature=Example
|Status=Example
|Moons=Example
|age=Example
|races=Example
|population=Example
}}