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

編集の要約なし
編集の要約なし
 
(同じ利用者による、間の19版が非表示)
1行目: 1行目:
<templatestyles src="惑星/style.css"/>
{{Infobox
<div id="PlanetInfo">
| width = 320px
<dl>
| title = {{{天体名|}}}
<dt style="text-align:center;font-size:20px;overflow-wrap: break-word;">{{{惑星名}}}</dt>
| subtitle = {{#if:{{{天体現地語名|}}}|{{{天体現地語名|}}}}}
<dt style="text-align:center;overflow-wrap: break-word;">{{{惑星現地語名}}}</dt>
| image = {{{天体画像|}}}
</dl>
| content =
<table style="align-content:center;">
  <tr>
<tr>
    <th class="Left">分類</th><td class="Left">{{{天体分類|}}}</td>
<th class="Center" colspan="2">[[{{{惑星画像}}}|400px]]</th>
  </tr>
</tr>
  <tr>
<tr>
    <th class="Left">半径</th><td class="Left">{{{半径|}}} km</td>
<th class="Left">分類</th>
  </tr>
<td class="Left">{{{惑星分類}}}</td>
  <tr>
</tr>
    <th class="Left">質量</th><td class="Left">{{{質量|}}} kg</td>
<tr>
  </tr>
<th colspan="2">軌道要素</th>
  <tr>
</tr>
    <th class="Left">密度</th><td class="Left">{{{密度|}}} g/cm<sup>3</sup></td>
<tr>
  </tr>
<th class="Left">軌道長半径(a)</th>
  <tr>
<td class="Left">{{{軌道長半径}}} km</td>
    <th class="Left">自転周期</th><td class="Left">{{{自転周期|}}}</td>
</tr>
  </tr>
<tr>
 
<th class="Left">離心率(e)</th>
  {{#if:{{{恒星特性|}}}|
<td class="Left">{{{離心率}}}</td>
    <tr><th colspan="2" class="T">恒星特性</th></tr>
</tr>
    {{#if:{{{恒星温度|}}}|<tr><th class="Left">表面温度</th><td class="Left">{{{恒星温度|}}} K</td></tr>}}
<tr>
    {{#if:{{{分光型|}}}|<tr><th class="Left">分光型</th><td class="Left">{{{分光型|}}}</td></tr>}}
<th class="Left">公転周期(P)</th>
    {{#if:{{{光度|}}}|<tr><th class="Left">光度</th><td class="Left">{{{光度|}}}</td></tr>}}
<td class="Left">{{{公転周期}}} </td>
    {{#if:{{{年齢|}}}|<tr><th class="Left">年齢</th><td class="Left">{{{年齢|}}}</td></tr>}}
</tr>
  }}
<tr>
 
<th class="Left">軌道傾斜角(i)</th>
  {{#if:{{{軌道要素|}}}|
<td class="Left">{{{軌道傾斜角}}}°</td>
    <tr><th colspan="2" class="T">軌道要素</th></tr>
</tr>
    {{#if:{{{主星名|}}}|<tr><th class="Left">主星</th><td class="Left">{{{主星名|}}}</td></tr>}}
<tr>
    {{#if:{{{軌道長半径|}}}|<tr><th class="Left">軌道長半径</th><td class="Left">{{{軌道長半径|}}} km</td></tr>}}
<th class="Left">近点引数(ω)</th>
    {{#if:{{{離心率|}}}|<tr><th class="Left">離心率</th><td class="Left">{{{離心率|}}}</td></tr>}}
<td class="Left">{{{近点引数}}}°</td>
    {{#if:{{{軌道傾斜角|}}}|<tr><th class="Left">軌道傾斜角</th><td class="Left">{{{軌道傾斜角|}}}°</td></tr>}}
</tr>
    {{#if:{{{公転周期|}}}|<tr><th class="Left">公転周期</th><td class="Left">{{{公転周期|}}}</td></tr>}}
<tr>
  }}
<th class="Left">昇降点黄経(Ω)</th>
 
<td class="Left">{{{昇降点黄経}}}°</td>
  {{#if:{{{環境要素|}}}|
</tr>
    <tr><th colspan="2" class="T">環境要素</th></tr>
<tr>
    {{#if:{{{表面重力|}}}|<tr><th class="Left">表面重力</th><td class="Left">{{{表面重力|}}} m/s<sup>2</sup></td></tr>}}
<th colspan="2">物理的性質</th>
    {{#if:{{{大気圧|}}}|<tr><th class="Left">大気圧</th><td class="Left">{{{大気圧|}}} atm</td></tr>}}
</tr>
    {{#if:{{{大気組成|}}}|<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">{{{自転周期}}}</td>
</tr>
<tr>
<th class="Left">質量</th>
<td class="Left">{{{質量}}} kg</td>
</tr>
<tr>
<th class="Left">密度</th>
<td class="Left">{{{密度}}} kg/</td>
</tr>
<tr>
<th class="Left">表面重力</th>
<td class="Left">{{{表面重力}}} m/</td>
</tr>
<tr>
<th class="Left">表面気圧</th>
<td class="Left">{{{表面気圧}}} hPa</td>
</tr>
<tr>
<th class="Left">大気成分</th>
<td class="Left">{{{大気成分}}}</td>
</tr>
</table>
</div>
 
<noinclude>
<noinclude>
 
<templatedata>
<pre>
{
{{惑星
"params": {
|惑星名 =
"天体名": {},
|惑星現地語名 =
"天体現地語名": {},
|惑星画像 =
"天体画像": {},
|惑星分類 =
"天体分類": {},
|軌道長半径 =
"半径": {},
|離心率 =
"質量": {},
|公転周期 =
"密度": {},
|軌道傾斜角 =
"自転周期": {},
|近点引数 =
"恒星特性": {},
|昇降点黄経 =
"恒星温度": {},
|半径 =
"分光型": {},
|自転周期 =
"光度": {},
|質量 =
"年齢": {},
|密度 =
"軌道要素": {},
|表面重力 =
"主星名": {},
|表面気圧 =
"軌道長半径": {},
|大気成分 =
"離心率": {},
}}
"軌道傾斜角": {},
</pre>
"公転周期": {},
 
"環境要素": {},
惑星のテンプレートでございますわ
"表面重力": {},
 
"大気圧": {},
 
"大気組成": {}
}
}
</templatedata>
</noinclude>
</noinclude>