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

編集の要約なし
タグ: 差し戻し済み
編集の要約なし
 
(同じ利用者による、間の13版が非表示)
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<sup>3</sup></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">{{{表面重力|}}} m/s<sup>2</sup></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:{{{天体画像}}}|400px]]</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>
<noinclude>
<noinclude>
 
<templatedata>
<pre>
{
{{天体
"params": {
|天体名 =
"天体名": {},
|天体現地語名 =
"天体現地語名": {},
|天体画像 =
"天体画像": {},
|天体分類 =
"天体分類": {},
|半径 =
"半径": {},
|質量 =
"質量": {},
|密度 =
"密度": {},
|自転周期 =
"自転周期": {},
<!-- 恒星特有項目 -->
"恒星特性": {},
|恒星特性 = <!-- yes を入力すると表示されます -->
"恒星温度": {},
|恒星温度 =
"分光型": {},
|分光型 =
"光度": {},
|光度 =
"年齢": {},
|年齢 =
"軌道要素": {},
<!-- 惑星・衛星特有項目 -->
"主星名": {},
|軌道要素 = <!-- yes を入力すると表示されます -->
"軌道長半径": {},
|主星名 =
"離心率": {},
|軌道長半径 =
"軌道傾斜角": {},
|離心率 =
"公転周期": {},
|公転周期 =
"環境要素": {},
|軌道傾斜角 =
"表面重力": {},
|近点引数 =
"大気圧": {},
|昇降点黄経 =
"大気組成": {}
<!-- 環境要素 -->
}
|環境要素 = <!-- yes を入力すると表示されます -->
}
|表面重力 =
</templatedata>
|表面気圧 =
|大気成分 =
|平均気温 =
}}
</pre>
 
天体のテンプレートでございますわ
 
 
</noinclude>
</noinclude>