コンテンツにスキップ

「テンプレート:天体」の版間の差分

提供: ApolaTrajectoryWiki
編集の要約なし
編集の要約なし
1行目: 1行目:
<templatestyles src="天体/style.css"/>
{{Infobox
<div id="CelestialBodyInfo">
| width = 320px
<dl>
| title = {{{天体名|}}}
<dt style="text-align:center;font-size:20px;overflow-wrap: break-word;">{{{天体名}}}</dt>
| subtitle = {{#if:{{{天体現地語名|}}}|{{{天体現地語名|}}}}}
{{#if:{{{天体現地語名|}}}|
| image = {{{天体画像|}}}
<dt style="text-align:center;overflow-wrap: break-word;">{{{天体現地語名}}}</dt>
| content =
  <tr>
    <th class="Left">分類</th><td class="Left">{{{天体分類|}}}</td>
  </tr>
  <tr>
    <th class="Left">半径</th><td class="Left">{{{半径|}}} km</td>
  </tr>
  <tr>
    <th class="Left">質量</th><td class="Left">{{{質量|}}} kg</td>
  </tr>
  <tr>
    <th class="Left">密度</th><td class="Left">{{{密度|}}} g/cm³</td>
  </tr>
  <tr>
    <th class="Left">自転周期</th><td class="Left">{{{自転周期|}}}</td>
  </tr>
 
  {{#if:{{{恒星特性|}}}|
    <tr><th colspan="2" class="T">恒星特性</th></tr>
    {{#if:{{{恒星温度|}}}|<tr><th class="Left">表面温度</th><td class="Left">{{{恒星温度|}}} K</td></tr>}}
    {{#if:{{{分光型|}}}|<tr><th class="Left">分光型</th><td class="Left">{{{分光型|}}}</td></tr>}}
    {{#if:{{{光度|}}}|<tr><th class="Left">光度</th><td class="Left">{{{光度|}}}</td></tr>}}
    {{#if:{{{年齢|}}}|<tr><th class="Left">年齢</th><td class="Left">{{{年齢|}}}</td></tr>}}
  }}
 
  {{#if:{{{軌道要素|}}}|
    <tr><th colspan="2" class="T">軌道要素</th></tr>
    {{#if:{{{主星名|}}}|<tr><th class="Left">主星</th><td class="Left">{{{主星名|}}}</td></tr>}}
    {{#if:{{{軌道長半径|}}}|<tr><th class="Left">軌道長半径</th><td class="Left">{{{軌道長半径|}}} km</td></tr>}}
    {{#if:{{{離心率|}}}|<tr><th class="Left">離心率</th><td class="Left">{{{離心率|}}}</td></tr>}}
    {{#if:{{{軌道傾斜角|}}}|<tr><th class="Left">軌道傾斜角</th><td class="Left">{{{軌道傾斜角|}}}°</td></tr>}}
    {{#if:{{{公転周期|}}}|<tr><th class="Left">公転周期</th><td class="Left">{{{公転周期|}}}</td></tr>}}
  }}
 
  {{#if:{{{環境要素|}}}|
    <tr><th colspan="2" class="T">環境要素</th></tr>
    {{#if:{{{表面重力|}}}|<tr><th class="Left">表面重力</th><td class="Left">{{{表面重力|}}} G</td></tr>}}
    {{#if:{{{大気圧|}}}|<tr><th class="Left">大気圧</th><td class="Left">{{{大気圧|}}} atm</td></tr>}}
    {{#if:{{{大気組成|}}}|<tr><th class="Left">大気組成</th><td class="Left">{{{大気組成|}}}</td></tr>}}
  }}
}}
}}
</dl>
<table style="align-content:center;">
<tr>
<th class="Center" colspan="2">[[file:{{{天体画像}}}|300px]]</th>
</tr>
<!-- 全天体共通項目 -->
<tr>
<th class="Left">分類</th>
<td class="Left">{{{天体分類}}}</td>
</tr>
<tr>
<th class="Left">半径</th>
<td class="Left">{{{半径}}} km</td>
</tr>
<tr>
<th class="Left">質量</th>
<td class="Left">{{{質量}}} kg</td>
</tr>
<tr>
<th class="Left">密度</th>
<td class="Left">{{{密度}}} kg/m³</td>
</tr>
<tr>
<th class="Left">自転周期</th>
<td class="Left">{{{自転周期}}}</td>
</tr>
<!-- 恒星特有項目 -->
{{#if:{{{恒星温度|}}}|
<tr>
<th colspan="2" class="T">恒星特性</th>
</tr>
}}
{{#if:{{{恒星温度|}}}|
<tr>
<th class="Left">表面温度</th>
<td class="Left">{{{恒星温度}}} K</td>
</tr>
}}
{{#if:{{{分光型|}}}|
<tr>
<th class="Left">分光型</th>
<td class="Left">{{{分光型}}}</td>
</tr>
}}
{{#if:{{{光度|}}}|
<tr>
<th class="Left">光度</th>
<td class="Left">{{{光度}}} L<sub>☉</sub></td>
</tr>
}}
{{#if:{{{年齢|}}}|
<tr>
<th class="Left">年齢</th>
<td class="Left">{{{年齢}}} 億年</td>
</tr>
}}
<!-- 惑星・衛星特有項目 -->
{{#if:{{{軌道要素|}}}|
<tr>
<th colspan="2" class="T">軌道要素</th>
</tr>
}}
{{#if:{{{主星名|}}}|
<tr>
<th class="Left">主星</th>
<td class="Left">{{{主星名}}}</td>
</tr>
}}
{{#if:{{{軌道長半径|}}}|
<tr>
<th class="Left">軌道長半径(a)</th>
<td class="Left">{{{軌道長半径}}} km</td>
</tr>
}}
{{#if:{{{離心率|}}}|
<tr>
<th class="Left">離心率(e)</th>
<td class="Left">{{{離心率}}}</td>
</tr>
}}
{{#if:{{{公転周期|}}}|
<tr>
<th class="Left">公転周期(P)</th>
<td class="Left">{{{公転周期}}} 日</td>
</tr>
}}
{{#if:{{{軌道傾斜角|}}}|
<tr>
<th class="Left">軌道傾斜角(i)</th>
<td class="Left">{{{軌道傾斜角}}}°</td>
</tr>
}}
{{#if:{{{近点引数|}}}|
<tr>
<th class="Left">近点引数(ω)</th>
<td class="Left">{{{近点引数}}}°</td>
</tr>
}}
{{#if:{{{昇降点黄経|}}}|
<tr>
<th class="Left">昇降点黄経(Ω)</th>
<td class="Left">{{{昇降点黄経}}}°</td>
</tr>
}}
<!-- 惑星特有の環境項目 -->
{{#if:{{{表面重力|}}}{{{表面気圧|}}}{{{大気成分|}}}|
<tr>
<th colspan="2" class="T">環境要素</th>
</tr>
}}
{{#if:{{{表面重力|}}}|
<tr>
<th class="Left">表面重力</th>
<td class="Left">{{{表面重力}}} m/s²</td>
</tr>
}}
{{#if:{{{表面気圧|}}}|
<tr>
<th class="Left">表面気圧</th>
<td class="Left">{{{表面気圧}}} hPa</td>
</tr>
}}
{{#if:{{{大気成分|}}}|
<tr>
<th class="Left">大気成分</th>
<td class="Left">{{{大気成分}}}</td>
</tr>
}}
{{#if:{{{平均気温|}}}|
<tr>
<th class="Left">平均気温</th>
<td class="Left">{{{平均気温}}} K</td>
</tr>
}}
</table>
</div>
<th colspan="2" class="T">環境要素</th>
</tr>
}}
{{#if:{{{表面重力|}}}|
<tr>
<th class="Left">表面重力</th>
<td class="Left">{{{表面重力}}} m/s²</td>
</tr>
}}
{{#if:{{{表面気圧|}}}|
<tr>
<th class="Left">表面気圧</th>
<td class="Left">{{{表面気圧}}} hPa</td>
</tr>
}}
{{#if:{{{大気成分|}}}|
<tr>
<th class="Left">大気成分</th>
<td class="Left">{{{大気成分}}}</td>
</tr>
}}
{{#if:{{{平均気温|}}}|
<tr>
<th class="Left">平均気温</th>
<td class="Left">{{{平均気温}}} K</td>
</tr>
}}
</table>
</div>
<noinclude>
<pre>
{{天体
|天体名 =
|天体現地語名 =
|天体画像 =
|天体分類 =
|半径 =
|質量 =
|密度 =
|自転周期 =
|恒星温度 =
|分光型 =
|光度 =
|年齢 =
|主星名 =
|軌道長半径 =
|離心率 =
|公転周期 =
|軌道傾斜角 =
|近点引数 =
|昇降点黄経 =
|表面重力 =
|表面気圧 =
|大気成分 =
|平均気温 =
}}
</pre>
天体のテンプレートでございますわ
</noinclude>

2025年7月10日 (木) 23:58時点における版

分類
半径 km
質量 kg
密度 g/cm³
自転周期