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

編集の要約なし
タグ: 差し戻し済み
Astro Sola (トーク) による編集を さめたろー による直前の版へ差し戻しました
タグ: 巻き戻し 差し戻し済み
1行目: 1行目:
<templatestyles src="Template:Infobox/style.css"/>
<templatestyles src="惑星/style.css"/>
<div class="infobox" style="{{#if:{{{width|}}}|width:{{{width}}}px;}}">
<div id="PlanetInfo">
{{#if:{{{image|}}}|
<dl>
<div class="infobox-image">[[File:{{{image}}}|frameless|upright=1|alt={{{title|}}}]]</div>
<dt style="text-align:center;font-size:20px;overflow-wrap: break-word;">{{{惑星名}}}</dt>
}}
<dt style="text-align:center;overflow-wrap: break-word;">{{{惑星現地語名}}}</dt>
{{#if:{{{title|}}}|
</dl>
<div class="infobox-title">{{{title}}}</div>
<table style="align-content:center;">
<tr>
<th class="Center" colspan="2">[[{{{惑星画像}}}|300px]]</th>
</tr>
<tr>
<th class="Left">分類</th><td>{{{惑星分類}}}</td>
</tr>
<tr>
<th colspan="2">軌道要素</th>
</tr>
<tr>
<th class="Left">軌道長半径(a)</th>
<td>{{{軌道長半径}}} au</td>
</tr>
<tr>
<th class="Left">離心率(e)</th>
<td>{{{離心率}}}</td>
</tr>
<tr>
<th class="Left">公転周期(P)</th>
<td>{{{公転周期}}} 日</td>
</tr>
<tr>
<th class="Left">軌道傾斜角(i)</th>
<td>{{{軌道傾斜角}}}°</td>
</tr>
<tr>
<th class="Left">近点引数(ω)</th>
<td>{{{近点引数}}}°</td>
</tr>
<tr>
<th class="Left">昇降点黄経(Ω)</th>
<td>{{{昇降点黄経}}}°</td>
</tr>
<tr>
<th colspan="2">物理的性質</th>
</tr>
<tr>
<th class="Left">半径</th>
<td>{{{半径}}} km</td>
</tr>
<tr>
<th class="Left">自転周期</th>
<td>{{{自転周期}}}</td>
</tr>
<tr>
<th class="Left">質量</th>
<td>{{{質量}}} kg</td>
</tr>
<tr>
<th class="Left">密度</th>
<td>{{{密度}}} kg/m³</td>
</tr>
<tr>
<th class="Left">表面重力</th>
<td>{{{表面重力}}} m/s²</td>
</tr>
<tr>
<th class="Left">表面気圧</th>
<td>{{{表面気圧}}} hPa</td>
</tr>
<tr>
<th class="Left">大気成分</th>
<td>{{{大気成分}}}</td>
</tr>
</table>
</div>
 
<noinclude>
 
<pre>
{{惑星
|惑星名 =
|惑星現地語名 =
|惑星画像 =
|惑星分類 =
|軌道長半径 =
|離心率 =
|公転周期 =
|軌道傾斜角 =
|近点引数 =
|昇降点黄経 =
|半径 =
|自転周期 =
|質量 =
|密度 =
|表面重力 =
|表面気圧 =
|大気成分 =
}}
}}
{{#if:{{{subtitle|}}}|
</pre>
<div class="infobox-subtitle">{{{subtitle}}}</div>
}}
<div class="infobox-content">
{| class="wikitable"
|-
! class="Left" | 分類
| class="Left" | {{{天体分類}}}
|-
! class="Left" | 半径
| class="Left" | {{{半径}}} km
|-
! class="Left" | 質量
| class="Left" | {{{質量}}} kg
|-
! class="Left" | 密度
| class="Left" | {{{密度}}} kg/m³
|-
! class="Left" | 自転周期
| class="Left" | {{{自転周期}}}
|-


{{#if:{{{恒星特性|}}}|
惑星のテンプレートでございますわ
! class="T" colspan="2" | 恒星特性
|-
{{#if:{{{恒星温度|}}}|
! class="Left" | 表面温度
| class="Left" | {{{恒星温度}}} K
|-
}}
{{#if:{{{分光型|}}}|
! class="Left" | 分光型
| class="Left" | {{{分光型}}}
|-
}}
{{#if:{{{光度|}}}|
! class="Left" | 光度
| class="Left" | {{{光度}}} L<sub>☉</sub>
|-
}}
{{#if:{{{年齢|}}}|
! class="Left" | 年齢
| class="Left" | {{{年齢}}} 億年
|-
}}
}}


{{#if:{{{軌道要素|}}}|
! class="T" colspan="2" | 軌道要素
|-
{{#if:{{{主星名|}}}|
! class="Left" | 主星
| class="Left" | {{{主星名}}}
|-
}}
{{#if:{{{軌道長半径|}}}|
! class="Left" | 軌道長半径(a)
| class="Left" | {{{軌道長半径}}} km
|-
}}
{{#if:{{{離心率|}}}|
! class="Left" | 離心率(e)
| class="Left" | {{{離心率}}}
|-
}}
{{#if:{{{公転周期|}}}|
! class="Left" | 公転周期(P)
| class="Left" | {{{公転周期}}} 日
|-
}}
{{#if:{{{軌道傾斜角|}}}|
! class="Left" | 軌道傾斜角(i)
| class="Left" | {{{軌道傾斜角}}}°
|-
}}
{{#if:{{{近点引数|}}}|
! class="Left" | 近点引数(ω)
| class="Left" | {{{近点引数}}}°
|-
}}
{{#if:{{{昇降点黄経|}}}|
! class="Left" | 昇降点黄経(Ω)
| class="Left" | {{{昇降点黄経}}}°
|-
}}
}}


{{#if:{{{環境要素|}}}|
! class="T" colspan="2" | 環境要素
|-
{{#if:{{{表面重力|}}}|
! class="Left" | 表面重力
| class="Left" | {{{表面重力}}} m/s²
|-
}}
{{#if:{{{表面気圧|}}}|
! class="Left" | 表面気圧
| class="Left" | {{{表面気圧}}} hPa
|-
}}
{{#if:{{{大気成分|}}}|
! class="Left" | 大気成分
| class="Left" | {{{大気成分}}}
|-
}}
{{#if:{{{平均気温|}}}|
! class="Left" | 平均気温
| class="Left" | {{{平均気温}}} K
|-
}}
}}
|}
</div>
</div><noinclude>
{{Documentation}}
</noinclude>
</noinclude>