Difference between revisions of "User:Gioto/sandbox4"

From Gramps
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
see
 
see
* https://gramps-project.org/wiki/index.php/Template:Infobox
+
* https://gramps-project.org/wiki/index.php/Template:Infobox  unused  see https://en.wikipedia.org/wiki/Template:Infobox
* https://gramps-project.org/wiki/index.php/Template:Infobox_Country
+
* https://gramps-project.org/wiki/index.php/Template:Infobox_Country used
* https://gramps-project.org/wiki/index.php/Template:Infobox_Country/mergedtoprow
+
** https://gramps-project.org/wiki/index.php/Template:Infobox_Country/mergedtoprow
 +
 
 +
=test for working infobox=
 +
 
 +
<includeonly><!--
 +
--><div style="padding-top:0.75em;"><!--Please retain; this padding is to prevent any long dab statements at the top of an article from clashing with this infobox.-->
 +
{|  style="text-align: left; border-collapse: collapse; line-height: 1.2em; font-size: 90%; width:46ex; border: 1px solid #aaa; background-color: #f9f9f9; color: black; margin-bottom: 0.5em; margin-left: 1em; padding: 0.2em; float: right; clear: right;"
 +
<!---------------------------------------Names----------------------------------------->
 +
|- align="center" style="line-height:1.2em; font-size:1.2em; border-top: solid 1px #aaa; padding: 0.4em 0.6em 0.2em 0.6em;vertical-align: top; border: 0; border-right: 1px solid #aaa;"
 +
| colspan="3" | {{#if:{{{native_name|}}}
 +
        |<!--then:-->{{{native_name}}} {{#if:{{{conventional_long_name|}}}
 +
                                        |<!--then:--><br/>{{{conventional_long_name}}}
 +
                                        }}
 +
        |<!--else:-->{{#if:{{{conventional_long_name|}}}
 +
                      |<!--then:-->{{{conventional_long_name}}}
 +
                      |<!--else:-->{{PAGENAME}}
 +
                      }}
 +
        }}
 +
 
 +
<!------------------------Flag / Coat-of-arms (or other symbol)---------->
 +
{{#if:{{{image_flag|}}}
 +
|<!--then:-->
 +
{{!}}- {{Infobox_Country/mergedtoprow}}
 +
{{!}} colspan="3" style="border: 0; padding: 0;" {{!}}
 +
        <!----------Start subtable:----------->
 +
{{{!}} align="center" style="background:none; text-align:center;"
 +
        <!-------Images:------->
 +
{{!}}-
 +
{{!}}[[Image:{{{image_flag}}}|125px|Flag of {{{common_name|{{PAGENAME}}}}}]]
 +
{{!}}[[Image:{{{image_coat}}}|85px|{{{symbol_type|Coat of arms}}} of {{{common_name|{{PAGENAME}}}}}]]
 +
        <!-------Links:------->
 +
{{!}}-
 +
{{!}}<small>{{{flag_caption|Flag}}}</small>
 +
{{!}}<small>{{{symbol_type|Coat of arms}}}</small>
 +
        <!-----------End subtable:------------>
 +
{{!}}}
 +
}}
 +
 
 +
 
 +
<!----------------------------------------Maps----------------------------------------->
 +
{{#if:{{{image_map|}}}
 +
|<!--then:-->
 +
{{!}}-
 +
{{!}} colspan="3" style="text-align:center; padding:0.6em 0em 0.6em 0em;" {{!}}[[Image:{{{image_map}}}|250px|center|Location of {{{common_name|{{PAGENAME}}}}}]] <small>{{{map_caption|<noinclude>{{{map_caption}}}</noinclude>}}}</small>
 +
}}
 +
 
 +
{{#if:{{{image_map2|}}}
 +
|<!--then:-->
 +
{{!}}- {{Infobox_Country/mergedtoprow}}
 +
{{!}} colspan="3" style="text-align:center; padding:0.6em 0em 0.6em 0em;" {{!}}[[Image:{{{image_map2}}}|250px|center|Location of {{{common_name|{{PAGENAME}}}}}]] <small>{{{map_caption2|}}}</small>
 +
}}
 +
 
 +
<!-------------------------------Capital ------->
 +
{{#if:{{{capital|}}}
 +
|<!--then:-->
 +
{{!}}- {{Infobox_Country/mergedtoprow}}
 +
{{!}} colspan="2" style="padding:0.6em 0em 0.6em 0em;" {{!}}'''Capital'''
 +
{{!}} {{{capital}}}<!--add capital's latitude/longitude (if provided):--><!--
 +
                  -->{{#if:{{{latd|}}} |<!--then:--><br/><small><!--
 +
                  -->{{coor dm |{{{latd}}}|{{{latm}}}|{{{latNS}}}|{{{longd}}}|<!--
 +
                  -->{{{longm}}}|{{{longEW}}}<!--end coor_dm:-->}}</small>}}
 +
}}
 +
 
 +
<!--------------------------Official languages, Ethnic groups----------------->
 +
{{#if:{{{official_languages|}}}
 +
|<!--then:-->
 +
{{!}}- {{Infobox_Country/mergedtoprow}}
 +
{{!}} colspan="2"  style="padding:0.6em 0em 0.6em 0em;" {{!}} '''Official languages'''
 +
{{!}} style="padding:0.6em 0em 0.6em 0em;" {{!}}{{{official_languages}}}
 +
}}
 +
 
 +
{{#if:{{{ethnic_groups|}}}
 +
|<!--then:-->
 +
{{!}}- style="vertical-align: top;"
 +
{{!}} colspan="2" style="padding:0.6em 0em 0.6em 0em;" {{!}} '''Ethnic groups'''
 +
{{!}}style="padding:0.6em 0em 0.6em 0em;"{{!}}{{{ethnic_groups}}}
 +
}}
 +
 
 +
<!-------------------------------------Government----------------------------->
 +
|-  {{Infobox_Country/mergedtoprow}}
 +
| colspan="2" |'''Government'''
 +
|{{{government_type|}}}
 +
 
 +
<!------------------------------------Sovereignty---------------------------->
 +
{{#if:{{{established_event1|}}}{{{sovereignty_type|}}}
 +
|<!--then:-->
 +
{{!}}- {{#if:{{{established_event1|}}} |<!--then:-->{{Infobox_Country/mergedtoprow}} |
 +
<!--else:--> style="vertical-align: top;"}}
 +
{{!}} {{#if:{{{sovereignty_note|}}} |
 +
<!--then:--> colspan="2" {{!}}'''{{{sovereignty_type}}}'''
 +
{{!}}{{{sovereignty_note}}}&nbsp; |
 +
<!--else:--> colspan="3" {{!}}'''{{{sovereignty_type}}}'''
 +
}}
 +
}}<!--
 +
 
 +
-->
 +
<!------Significant events in country/territory's establishment---------->
 +
{{#if:{{{established_event1|}}}
 +
|<!--then:-->
 +
{{!}}- style="border: 0; padding: 0 0.6em 0.2em 0.6em; vertical-align: top;"
 +
{{!}} style="padding:0 0 0 0.6em;" {{!}}&nbsp;-&nbsp;
 +
{{!}} style="padding-left:0px;" {{!}} {{{established_event1}}}
 +
{{!}}{{{established_date1|}}}&nbsp;
 +
}}<!--
 +
 
 +
-->
 +
{{#if:{{{established_event2|}}}
 +
|<!--then:-->
 +
{{!}}- style="border: 0; padding: 0 0.6em 0.2em 0.6em; vertical-align: top;"
 +
{{!}} style="padding:0 0 0 0.6em;" {{!}}&nbsp;-&nbsp;
 +
{{!}} style="padding-left:0px;" {{!}} {{{established_event2}}}
 +
{{!}}{{{established_date2|}}}&nbsp;
 +
}}<!--
 +
 
 +
-->
 +
{{#if:{{{established_event3|}}}
 +
|<!--then:-->
 +
{{!}}- style="border: 0; padding: 0 0.6em 0.2em 0.6em; vertical-align: top;"
 +
{{!}} style="padding:0 0 0 0.6em;" {{!}}&nbsp;-&nbsp;
 +
{{!}} style="padding-left:0px;" {{!}} {{{established_event3}}}
 +
{{!}}{{{established_date3|}}}&nbsp;
 +
}}<!--
 +
 
 +
-->
 +
{{#if:{{{established_event4|}}}
 +
|<!--then:-->
 +
{{!}}- style="border: 0; padding: 0 0.6em 0.2em 0.6em; vertical-align: top;"
 +
{{!}} style="padding:0 0 0 0.6em;" {{!}}&nbsp;-&nbsp;
 +
{{!}} style="padding-left:0px;" {{!}} {{{established_event4}}}
 +
{{!}}{{{established_date4|}}}&nbsp;
 +
}}<!--
 +
 
 +
-->
 +
{{#if:{{{established_event5|}}}
 +
|<!--then:-->
 +
{{!}}- style="border: 0; padding: 0 0.6em 0.2em 0.6em; vertical-align: top;"
 +
{{!}} style="padding:0 0 0 0.6em;" {{!}}&nbsp;-&nbsp;
 +
{{!}} style="padding-left:0px;" {{!}} {{{established_event5}}}
 +
{{!}}{{{established_date5|}}}&nbsp;
 +
}}<!--
 +
 
 +
-->
 +
{{#if:{{{established_event6|}}}
 +
|<!--then:-->
 +
{{!}}- style="border: 0; padding: 0 0.6em 0.2em 0.6em; vertical-align: top;"
 +
{{!}} style="padding:0 0 0 0.6em;" {{!}}&nbsp;-&nbsp;
 +
{{!}} style="padding-left:0px;" {{!}} {{{established_event6}}}
 +
{{!}}{{{established_date6|}}}&nbsp;
 +
}}
 +
 
 +
<!------------------------------Area--------------------------------->
 +
|- {{Infobox_Country/mergedtoprow}}
 +
| colspan="3" |'''Area'''
 +
|-  style="border: 0; padding: 0 0.6em 0.2em 0.6em; vertical-align: top;"
 +
| style="padding:0 0 0 0.6em;" |&nbsp;-&nbsp;
 +
| style="padding-left:0px;" | Total
 +
| {{{area|}}} km²&nbsp;<br/>{{{areami²|}}}&nbsp;sq&nbsp;mi&nbsp;<!--
 +
 
 +
 
 +
--><!-------------------Percentage water-------------------->
 +
{{#if:{{{percent_water|}}}
 +
|<!--then:-->
 +
{{!}}- style="border: 0; padding: 0 0.6em 0.2em 0.6em; vertical-align: top;"
 +
{{!}} style="padding:0 0 0 0.6em;" {{!}} &nbsp;-&nbsp;
 +
{{!}} style="padding-left:0px;" {{!}}Water&nbsp;(%)
 +
{{!}}{{{percent_water|}}}
 +
}}
 +
 
 +
<!-------------------------------Population----------------------->
 +
|- {{Infobox_Country/mergedtoprow}}
 +
| colspan="3" | '''Population'''
 +
<!---------------Estimate--------------->
 +
{{#if:{{{population_estimate|}}}
 +
|<!--then:-->
 +
{{!}}- style="border: 0; padding: 0 0.6em 0.2em 0.6em; vertical-align: top;"
 +
{{!}} style="padding:0 0 0 0.6em;" {{!}}&nbsp;-&nbsp;
 +
{{!}} style="padding-left:0px;" {{!}} {{{population_estimate_year|}}}&nbsp;estimate
 +
{{!}}{{{population_estimate|}}}&nbsp;
 +
}}
 +
<!----------------Census---------------->
 +
{{#if:{{{population_census|}}}
 +
|<!--then:-->
 +
{{!}}- style="border: 0; padding: 0 0.6em 0.2em 0.6em; vertical-align: top;" 
 +
{{!}} style="padding:0 0 0 0.6em;" {{!}}&nbsp;-&nbsp;
 +
{{!}} style="padding-left:0px;" {{!}}{{{population_census_year|}}}&nbsp;census
 +
{{!}}{{{population_census|}}}&nbsp;
 +
}}
 +
 
 +
{{#if:{{{footnotes|}}}
 +
|<!--then:-->
 +
{{!}}-
 +
{{!}} colspan="3"><small>{{{footnotes}}}</small>
 +
}}
 +
 
 +
{{#if:{{{footnote1|}}}
 +
|<!--then:-->
 +
{{!}}- style="font-size:80%; vertical-align: top;"
 +
{{!}} align="right" {{!}}{{lower|4px|<sup>1</sup>}}
 +
{{!}} colspan="2" style="padding-left:0px;" {{!}}{{{footnote1}}}
 +
}}
 +
 
 +
|}
 +
<!--end padding:--></div><!--
 +
--></includeonly><noinclude>
 +
This template is largely a rework from https://en.wikipedia.org/wiki/Template:Infobox_country
 +
 
 +
<nowiki>{{Infobox Country}}</nowiki>
 +
 
 +
=Example=
 +
{{Infobox Country}}
 +
[[Category:Templates]]</noinclude>

Latest revision as of 22:05, 27 September 2025