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

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

/* テンプレート:Pp-template */ dl#infoboxCountry {

   clear: right;
   float: right;
   width: 300px;
   margin-left: 0.5em;

}

dl#infoboxCountry dt.infoboxCountryNameJa {

   font-size: 1.36em;
   margin: 0 0 0.13em;
   text-align: center;

}

dl#infoboxCountry dt.infoboxCountryName {

   font-size: 1.13em;
   font-weight: normal;
   margin: 0 0 0.13em;
   text-align: center;

}

dl#infoboxCountry dd.infoboxCountryDataA {

   margin: 0;
   padding: 0;
   border-color: #a2a9b1;
   border-width: 1px;
   border-style: solid solid none solid;

}

dl#infoboxCountry table.infoboxCountryPrevSucc {

   width: 298px;
   border-collapse: collapse;
   font-size: 0.95em;

}

dl#infoboxCountry table.infoboxCountryPrevSucc td {

   margin: 0;
   padding: 4px;
   text-align: center;

}

dl#infoboxCountry td.infoboxCountryPrev {

   text-align: left;
   width: 60px

}

dl#infoboxCountry td.infoboxCountrySucc {

   text-align: right;
   width: 60px;

}

dl#infoboxCountry table.infoboxCountryInsignia {

   width: 298px;
   border-collapse: collapse;
   font-size: 0.95em;
   text-align: center;
   border-top: 1px solid #a2a9b1;

} dl#infoboxCountry table.infoboxCountryInsignia th {

   padding: 4px;
   width: 50%;
   border: none;

}

dl#infoboxCountry table.infoboxCountryInsignia td {

   padding: 4px;
   font-size: 0.85em;

}

dl#infoboxCountry dd.infoboxCountryAdd, dl#infoboxCountry dd.infoboxCountryMotto, dl#infoboxCountry dd.infoboxCountryAnthem, dl#infoboxCountry dd.infoboxCountryMap {

   text-align: center;
   width: 290px;
   margin: 0;
   padding: 4px;
   border-color: #a2a9b1;
   border-width: 1px;
   border-style: solid solid none solid;

}

dl#infoboxCountry dd.infoboxCountryAdd, dl#infoboxCountry dd.infoboxCountryMotto, dl#infoboxCountry dd.infoboxCountryAnthem {

   font-size: 0.8em;

}

dl#infoboxCountry dd.infoboxCountryMap { }

dl#infoboxCountry dd.infoboxCountryDataB {

   margin: 0;
   padding: 0;
   border: 1px solid #a2a9b1;

}

dl#infoboxCountry dd.infoboxCountryDataB table {

   width: 298px;
   border-collapse: collapse;
   border-color: #a2a9b1;
   font-size: 0.9em;
   line-height: 1.3;

}

dl#infoboxCountry dd.infoboxCountryDataB tr {

   border-color: #a2a9b1;
   vertical-align: top;

}

dl#infoboxCountry dd.infoboxCountryDataB th {

   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; } } /* */