「テンプレート:基礎情報 国」の版間の差分

提供: monarchy
ナビゲーションに移動 検索に移動
Remons (トーク | 投稿記録)
編集の要約なし
Remons (トーク | 投稿記録)
編集の要約なし
 
(同じ利用者による、間の3版が非表示)
1行目: 1行目:
/* {{pp-template}} */
<includeonly><templatestyles src="基礎情報 国/styles.css" /><dl id="infoboxCountry">
dl#infoboxCountry {
<dt class="infoboxCountryNameJa">{{{日本語国名}}}</dt>
    clear: right;
<dt class="infoboxCountryName">{{{公式国名}}}</dt>
    float: right;
<dd class="infoboxCountryDataA" style="border-top:0px">
    width: 300px;
{{#if:{{{国旗画像|}}}|{{#if:{{{国章画像|}}}|<table class="infoboxCountryInsignia"><!--国旗国章共にある場合-->
    margin-left: 0.5em;
<tr>
}
<th style="padding-top:10px">[[ファイル:{{{国旗画像}}}{{#ifeq:{{{国旗縁|}}}|no||{{!}}border}}|{{#if:{{{国旗幅|}}}|{{{国旗幅}}}|125}}px|{{{略名|○○○}}}の{{#ifeq:{{{自治領等|}}}|y|旗|国旗}}]]</th>
 
<th style="padding-top:10px">{{{国章画像}}}</th></tr>
dl#infoboxCountry dt.infoboxCountryNameJa {
<tr>
    font-size: 1.36em;
<td>(国旗)</td>
    margin: 0 0 0.13em;
<td>{{#if:{{{国章リンク|}}}|{{{国章リンク}}}|(国章)}}</td>
    text-align: center;
</tr></table>|<table class="infoboxCountryInsignia"><!--国旗のみの場合-->
}
<tr>
 
<th>[[ファイル:{{{国旗画像}}}{{#ifeq:{{{国旗縁|}}}|no||{{!}}border}}|{{#if:{{{国旗幅|}}}|{{{国旗幅}}}|125}}px|{{{略名|○○○}}}の{{#ifeq:{{{自治領等|}}}|y|旗|国旗}}]]</th></tr>
dl#infoboxCountry dt.infoboxCountryName {
<tr>
    font-size: 1.13em;
<td>([[{{{略名|○○○}}}の{{#ifeq:{{{自治領等|}}}|y|旗|国旗}}|{{#ifeq:{{{自治領等|}}}|y|地域の旗|国旗}}]])</td>
    font-weight: normal;
</tr></table>}}|{{#if:{{{国章画像|}}}|<table class="infoboxCountryInsignia"><!--国章のみの場合-->
    margin: 0 0 0.13em;
<tr>
    text-align: center;
<th style="padding-top:10px">{{{国章画像}}}</th></tr>
}
<tr>
 
<td>{{#if:{{{国章リンク|}}}|{{{国章リンク}}}|([[{{{略名|○○○}}}の{{#ifeq:{{{自治領等|}}}|y|紋章|国章}}|{{#ifeq:{{{自治領等|}}}|y|地域の紋章|国章}}]])}}</td></tr>
dl#infoboxCountry dd.infoboxCountryDataA {
</table>|}}}}</dd>
    margin: 0;
<dd class="infoboxCountryMotto">{{#ifeq:{{{自治領等|}}}|y|地域の標語|国の標語}}:{{#if:{{{標語|}}}|{{{標語}}}|不明}}{{{標語追記|}}}</dd>
    padding: 0;
<dd class="infoboxCountryAnthem">{{#ifeq:{{{自治領等|}}}|y|地域の歌|国歌}}:{{#if:{{{国歌|}}}|{{{国歌}}}}}{{{国歌追記|}}}</dd>
    border-color: #a2a9b1;
{{#if:{{{地図画像|}}}|<dd class="infoboxCountryMap">[[ファイル:{{{地図画像|}}}|250px|{{{略名|○○○}}}の地図]]</dd>
    border-width: 1px;
|}}
    border-style: solid solid none solid;
{{#if:{{{位置画像|}}}|<dd class="infoboxCountryMap">[[ファイル:{{{位置画像|}}}|{{#if:{{{位置画像幅|}}}|{{{位置画像幅}}}|250}}px|{{#if:{{{略名|}}}|{{{略名}}}の位置|{{{日本語国名}}}の位置}}]]{{#if:{{{位置画像説明|}}}|<br/><small>{{{位置画像説明}}}</small>}}</dd>
}
}}<dd class="infoboxCountryDataB">
 
{| border="1" frame="void" rules="all" cellspacing="0"
dl#infoboxCountry table.infoboxCountryPrevSucc {
|-
    width: 298px;
!イデオロギー
    border-collapse: collapse;
|{{#if:{{{イデオロギー|}}}|[[{{{イデオロギー}}}]]|不明}}
    font-size: 0.95em;
|-
}
!公用語
 
|{{#if:{{{公用語|}}}|{{{公用語}}}|不明}}
dl#infoboxCountry table.infoboxCountryPrevSucc td {
|-
    margin: 0;
!{{#ifeq:{{{自治領等|}}}|y|主都|首都}}
    padding: 4px;
|{{#if:{{{首都|}}}|{{{首都}}}|不明}}
    text-align: center;
|-
}
!最大の都市
 
|{{#if:{{{最大都市|}}}|{{{最大都市}}}|不明}}
dl#infoboxCountry td.infoboxCountryPrev {
|-
    text-align: left;
| colspan="2" class="infoboxCountrySome" style="padding:0"|<dl><dt class="infoboxCountryLeader">政府</dt>
    width: 60px
<dd>
}
{|
 
|-
dl#infoboxCountry td.infoboxCountrySucc {
{{#if:{{{最高指導者等肩書|}}}{{{最高指導者等氏名|}}}|<tr>
    text-align: right;
<th>{{{最高指導者等肩書|}}}</th><td>{{{最高指導者等氏名|不明}}}</td>
    width: 60px;
</tr>|}}
}
|-
 
!{{#if:{{{元首等肩書|}}}|{{{元首等肩書}}}|元首等}}
dl#infoboxCountry table.infoboxCountryInsignia {
|{{#if:{{{元首等氏名|}}}|{{{元首等氏名}}}|不明}}
    width: 298px;
|-
    border-collapse: collapse;
!{{#if:{{{首相等肩書|}}}|{{{首相等肩書}}}|首相等}}
    font-size: 0.95em;
|{{#if:{{{首相等氏名|}}}|{{{首相等氏名}}}|不明}}
    text-align: center;
{{#if:{{{他元首等肩書1|}}}{{{他元首等氏名1|}}}|<tr>
    border-top: 1px solid #a2a9b1;
<th>{{{他元首等肩書1|}}}</th><td>{{{他元首等氏名1|不明}}}</td>
}
</tr>|}}{{#if:{{{他元首等肩書2|}}}{{{他元首等氏名2|}}}|<tr>
dl#infoboxCountry table.infoboxCountryInsignia th {
<th>{{{他元首等肩書2|}}}</th><td>{{{他元首等氏名2|不明}}}</td>
    padding: 4px;
</tr>|}}{{#if:{{{他元首等肩書3|}}}{{{他元首等氏名3|}}}|<tr>
    width: 50%;
<th>{{{他元首等肩書3|}}}</th><td>{{{他元首等氏名3|不明}}}</td>
    border: none;
</tr>|}}{{#if:{{{他元首等肩書4|}}}{{{他元首等氏名4|}}}|<tr>
}
<th>{{{他元首等肩書4|}}}</th><td>{{{他元首等氏名4|不明}}}</td>
 
</tr>|}}{{#if:{{{他元首等肩書5|}}}{{{他元首等氏名5|}}}|<tr>
dl#infoboxCountry table.infoboxCountryInsignia td {
<th>{{{他元首等肩書5|}}}</th><td>{{{他元首等氏名5|不明}}}</td>
    padding: 4px;
</tr>|}}{{#if:{{{他元首等肩書6|}}}{{{他元首等氏名6|}}}|<tr>
    font-size: 0.85em;
<th>{{{他元首等肩書6|}}}</th><td>{{{他元首等氏名6|不明}}}</td>
}
</tr>|}}{{#if:{{{他元首等肩書7|}}}{{{他元首等氏名7|}}}|<tr>
 
<th>{{{他元首等肩書7|}}}</th><td>{{{他元首等氏名7|不明}}}</td>
dl#infoboxCountry dd.infoboxCountryAdd,
</tr>|}}
dl#infoboxCountry dd.infoboxCountryMotto,
|}</dd>
dl#infoboxCountry dd.infoboxCountryAnthem,
{{#if:{{{確立年月日1|}}}|<dt>{{#if:{{{建国形態|}}}|{{{建国形態}}}|{{#ifeq:{{{自治領等|}}}|y|成立|建国}}}}</dt>
dl#infoboxCountry dd.infoboxCountryMap {
<dd>
    text-align: center;
<table>
    width: 290px;
<tr>
    margin: 0;
<th>{{#if:{{{確立形態1|}}}|{{{確立形態1}}}|状態の確立}}</th><td>{{#if:{{{確立年月日1|}}}|{{{確立年月日1}}}|不明}}</td>
    padding: 4px;
</tr>{{#if:{{{確立年月日2|}}}|<tr>
    border-color: #a2a9b1;
<th>{{{確立形態2|}}}</th><td>{{{確立年月日2|不明}}}</td>
    border-width: 1px;
</tr>|}}{{#if:{{{確立年月日3|}}}|<tr>
    border-style: solid solid none solid;
<th>{{{確立形態3|}}}</th><td>{{{確立年月日3|不明}}}</td>
}
</tr>|}}{{#if:{{{確立年月日4|}}}|<tr>
 
<th>{{{確立形態4|}}}</th><td>{{{確立年月日4|不明}}}</td>
dl#infoboxCountry dd.infoboxCountryAdd,
</tr>|}}{{#if:{{{確立年月日5|}}}|<tr>
dl#infoboxCountry dd.infoboxCountryMotto,
<th>{{{確立形態5|}}}</th><td>{{{確立年月日5|不明}}}</td>
dl#infoboxCountry dd.infoboxCountryAnthem {
</tr>|}}{{#if:{{{確立年月日6|}}}|<tr>
    font-size: 0.8em;
<th>{{{確立形態6|}}}</th><td>{{{確立年月日6|不明}}}</td>
}
</tr>|}}{{#if:{{{確立年月日7|}}}|<tr>
 
<th>{{{確立形態7|}}}</th><td>{{{確立年月日7|不明}}}</td>
dl#infoboxCountry dd.infoboxCountryMap {
</tr>|}}{{#if:{{{確立年月日8|}}}|<tr>
}
<th>{{{確立形態8|}}}</th><td>{{{確立年月日8|不明}}}</td>
 
</tr>|}}{{#if:{{{確立年月日9|}}}|<tr>
dl#infoboxCountry dd.infoboxCountryDataB {
<th>{{{確立形態9|}}}</th><td>{{{確立年月日9|不明}}}</td>
    margin: 0;
</tr>|}}{{#if:{{{確立年月日10|}}}|<tr>
    padding: 0;
<th>{{{確立形態10|}}}</th><td>{{{確立年月日10|不明}}}</td>
    border: 1px solid #a2a9b1;
</tr>|}}{{#if:{{{確立年月日11|}}}|<tr>
}
<th>{{{確立形態11|}}}</th><td>{{{確立年月日11|不明}}}</td>
 
</tr>|}}{{#if:{{{確立年月日12|}}}|<tr>
dl#infoboxCountry dd.infoboxCountryDataB table {
<th>{{{確立形態12|}}}</th><td>{{{確立年月日12|不明}}}</td>
    width: 298px;
</tr>
    border-collapse: collapse;
|}}</table></dd>
    border-color: #a2a9b1;
}}</dl>{{#if:{{{確立年月日1|}}}||
    font-size: 0.9em;
<tr>
    line-height: 1.3;
<th>{{#if:{{{建国形態|}}}|{{{建国形態}}}|{{#ifeq:{{{自治領等|}}}|y|成立|建国}}}}</th><td>{{#if:{{{建国年月日|}}}|{{{建国年月日}}}|不明}}</td>
}
</tr>}}
 
|-
dl#infoboxCountry dd.infoboxCountryDataB tr {
!通貨
    border-color: #a2a9b1;
|{{#if:{{{通貨|}}}|{{{通貨}}}|不明}}
    vertical-align: top;
|-
}
!国家タグ
 
|{{#if:{{{国家タグ|}}}|[[テンプレート:{{{国家タグ}}}|{{{国家タグ}}}]]|未指定}}
dl#infoboxCountry dd.infoboxCountryDataB th {
|}</dl></includeonly><noinclude>[[カテゴリ:国家|*]]</noinclude>
    padding: 4px;
    border-color: #a2a9b1;
    border-width: 1px;
    text-align: left;
    font-weight: normal;
    width: 50%;
}
 
dl#infoboxCountry dd.infoboxCountryDataB td {
    padding: 4px;
    border-color: #a2a9b1;
    border-width: 1px;
    width: 50%;
}
 
dl#infoboxCountry td.infoboxCountrySome {
    padding: 0;
}
 
dl#infoboxCountry td.infoboxCountrySome dl,
dl#infoboxCountry td.infoboxCountrySome dl dd {
    margin: 0;
    padding: 0;
}
 
dl#infoboxCountry td.infoboxCountrySome dl dt {
    margin: 0;
    padding: 4px;
    font-weight: normal;
    border-top: 1px solid #a2a9b1;
}
 
dl#infoboxCountry td.infoboxCountrySome dl dt.infoboxCountryLeader {
    border-top: none;
}
 
dl#infoboxCountry td.infoboxCountrySome dl table {
    width: 100%;
    font-size: 100%;
    border-collapse: collapse;
}
 
dl#infoboxCountry td.infoboxCountrySome dl th {
    width: 50%;
    padding: 4px;
    text-indent: 0.75em;
}
 
dl#infoboxCountry td.infoboxCountrySome dl td {
    width: 50%;
    padding: 4px;
    border-color: #a2a9b1;
    border-width: 1px;
    border-style: solid none none solid;
}
 
dd#Infobox_before-after {
    width: 298px;
    margin: 0;
    padding: 0;
    border-color: #a2a9b1;
    border-width: 1px;
    border-style: none solid solid solid;
}
 
dd#Infobox_before-after table {
    border-collapse: collapse;
    width: 100%;
    background: transparent;
}
 
dd#Infobox_before-after th {
    width: 50%;
    padding: 0 4px;
}
 
dd#Infobox_before-after th.infoboxCountryPrev {
    border-right: 1px solid #ccc;
}
 
dd#Infobox_before-after th.infoboxCountrySucc {
    border-left: #ccc 1px solid;
}
 
dd#Infobox_before-after td.infoboxCountryPrev {
    width: 50%;
    padding: 2px 4px;
    font-size: 80%;
    text-align: left;
    vertical-align: top;
    border-color: #ccc;
    border-width: 1px;
    border-style: solid solid none none;
}
 
dd#Infobox_before-after td.infoboxCountrySucc {
    width: 50%;
    padding: 2px 4px;
    font-size: 80%;
    text-align: right;
    vertical-align: top;
    border-color: #ccc;
    border-width: 1px;
    border-style: solid none none solid;
}
 
dl#infoboxCountry dd.infoboxCountryNote {
    font-size: 0.75em;
    width: 290px;
    margin: 0;
    padding: 2px 4px;
    border-color: #a2a9b1;
    border-width: 1px;
    border-style: none solid solid;
}
 
@media all and (max-width: 720px) {
dl#infoboxCountry {
float: none !important;
margin: 0 !important;
width: 100% !important;
}
dl#infoboxCountry dd {
width: auto !important;
}
dl#infoboxCountry,
dl#infoboxCountry table {
display:table;
}
}
/* [[Category:テンプレートスタイル]] */

2025年10月27日 (月) 12:50時点における最新版