Talɣa:Infobox city : Tameẓla gar ileqman

Si Wikipedia, tasanayt tilellit.
Contenu supprimé Contenu ajouté
Sami At Ferḥat (mmeslay | attekki)
Aucun résumé des modifications
Sami At Ferḥat (mmeslay | attekki)
Ibeddel asebtar s '{{Infobox political geography|item={{{item|}}}|category=city}}'
Ticṛeṭ : Contenu remplacé
 
Ajerriḍ 1: Ajerriḍ 1:
{{Infobox political geography|item={{{item|}}}|category=city}}
<includeonly>{{Infobox
|above = <span style="float:left;">[[image:Globe icon.svg|20px]]</span> {{{name|{{PAGENAMEBASE}}}}}
|abovestyle = background-color: #99c;
|headerstyle = background-color: #99c;
<!-- HERE YOU CAN INSERT A FLAG TEMPLATE OR NOT, DEPENDING ON YOUR COMMUNITY GUIDELINES -->
|subheader =
{{#if:{{#Property:P17|from={{{item|}}}}}|{{flagcountry|{{#invoke:Wikidata|claim|property=P17|list=false|lang=en|formatting=label}}}}}}
|image = {{#invoke:Wikidata|claim|property=P18|formatting=[[File:$1|280px]]|value={{{image|}}}|list=false}}
|caption = {{#invoke:Wikidata|claim|property=P18|qualifier=P2096|formatting=table|value={{{caption|}}}|rowformat=$1}}
|image2 = {{#if:{{{flag|}}}{{{coatofarms|}}}{{#Property:P41|from={{{item|}}}}}{{#Property:P94|from={{{item|}}}}}|
<table style="width: 100%; border: none; font-size: 90%;">
<tr style="vertical-align:top;">
{{#if:{{{flag|}}}{{#Property:P41|from={{{item|}}}}}|<td>[[File:{{#invoke:Wikidata|claim|property=P41|formatting=raw|list=false|value={{{flag|}}} }}|120x90px]]</td>}}
{{#if:{{{coatofarms|}}}{{#Property:P94|from={{{item|}}}}}|<td>[[File:{{#invoke:Wikidata|claim|property=P94|formatting=raw|list=false|value={{{coatofarms|}}}}}|75x75px]]</td>}}
</tr>
</table>
}}
|header1 = {{Infobox city/localize|Administration}}

<!--- WE CAN INSERT BY HAND THE COUNTRY, STATE, PROVINCE AND SUBPROVINCE WITH THEIR NAMES, IF WE WANT OR WE WANT TO GIVE BACKWARDS COMPATIBILITY TO OTHER TEMPLATE--->
|label2 = {{{kind of country|{{Infobox city/localize|Country}} }}}
|data2 = {{#if:{{{country|}}}{{{province|}}}|{{#if:{{{country|}}}|{{flag|{{{country}}}}}|{{flag|{{#Property:P17|from={{{item|}}}}} }} {{#Property:P17|from={{{item|}}}}} }} }}
|label3 = {{Infobox city/localize|State}}
|data3 = {{#if:{{{state|}}}|{{{state}}}}}
|label4 = {{{kind of province|{{Infobox city/localize|Province}} }}}
|data4 = {{#if:{{{province|}}}|{{{province}}}}}
|label5 = {{{kind of province2|{{Infobox city/localize|Region}} }}}
|data5 = {{#if:{{{province2|}}}|{{{province2}}}}}

<!--- BUT THIS CODE CAN INCLUDE EVERYTHING AUTOMATICALLY. THE TEMPLATE YOU NEED IF YOU USE FLAGS IN TEMPLATES IS :eu:Txantiloi:Bandera/WD. --->
|data6 = {{#if:{{{state|}}}{{{province|}}}{{{province2|}}}||{{#invoke:Wikidata|getParentValues|sorting=-1|separator=</tr>|rowformat=<tr><td>'''$0'''</td><td>$1</td>|include_self=true}}</tr>}}

|label8= {{Infobox city/localize|Head of government}}
|data8= {{#invoke:Wikidata|claim|property=P6|formatting=internallink|list=false|value={{{Head of government|}}}}}
|label9 = {{Infobox city/localize|Official name}}
|data9 = {{#invoke:Wikidata|claim|property=P1448|value={{{Official name|}}}|separator=<br />|conjunction=<br />}}
|label10 = {{Infobox city/localize|Original labels}}
|data10 = {{#invoke:Wikidata|claim|property=P1705|separator=<br />|conjunction=<br />|value={{{original labels|}}}}}
|label11 = {{Infobox city/localize|Nickname}}
|data11 = {{#if:{{{nickname|}}}|{{{nickname}}}}}
|label12 = {{Infobox city/localize|Postal code}}
|data12 = {{#if:{{#property:P281|from={{{item|}}}}}|<code>{{#invoke:Wikidata|claim|property=P281|formatting=label}}</code>}}

<!--- GEOGRAPHY BLOCK. YOU CAN USE :eu:Template:cal_coor and its subtemplates for easy automatic insertion of coordinates EVERYWHERE --->
|header20 = {{Infobox city/localize|Geography}}
|label21 = {{#if:{{#property:P625|from={{{item|}}}}}|{{Infobox city/localize|Coordinates}} }}
|data21 = {{#if:{{#property:P625|from={{{item|}}}}}|{{cal coor|display=inline,title|format=dms}}}}

<!--- THIS CODE INSERTS AN AUTOMATIC LOCATION MAP. YOU WILL NEED LOCATION MAP TEMPLATES. IF YOU USE KARTOGRAPHER EXTENSION, YOU CAN MAKE IT IN OTHER WAYS --->
|data22 = {{#if:{{#property:P625|from={{{item|}}}}}|
{{#if:{{{place|}}}|{{Location map|{{{place}}}|label={{{label|{{PAGENAMEBASE}}}}}|float=center|width=280px}}
|
{{Location map|{{#invoke:Wikidata|claim|property=P17|list=false|lang=en|formatting=label}}|label={{{label|{{PAGENAMEBASE}}}}}|float=center|width=280px}}}}
}}
|data23 = {{#invoke:Wikidata|claim|property=P242|formatting=[[File:$1|280px]]}}

<!--- FOR CALCULATING AREA AND DENSITY WE USE THE CONVERT TEMPLATE AND MODULE. YOU CAN FIND THEM IN MOST WIKIPEDIAS. IT CHANGES AREAS TO SQUARE KILOMETRES INDEPENDENTLY FROM THE ORIGINAL UNIT -->

|label24 = {{Infobox city/localize|Area}}
|data24 = {{#if:{{#Property:P2046|from={{{item|}}}}}|{{#invoke:Wikidata|claim|item={{{item|}}}|property=P2046|list=false|formatting=unitcode}} }}
|label25 = {{Infobox city/localize|Altitude}}
|data25 = {{#invoke:Wikidata|claim|property=P2044|formatting=unitcode|value={{{altitude|}}}}}
|label26 = {{Infobox city/localize|Borders with}}
|data26 = {{#invoke:Wikidata|claim|property=P47|formatting=internallink}}

<!--- DEMOGRAPHY --->
|header30 = {{#if:{{#Property:P1082|from={{{item|}}}}}|{{Infobox city/localize|Demography}}}}
|label31 = {{Infobox city/localize|Population}}
|data31 = {{#if:{{{population|{{#property:P1082|from={{{item|}}}}}}}}<!--
---------->|{{#invoke:Wikidata|claim|property=P1082|list=false|value={{formatnum:{{{population|}}}}}}} {{Infobox city/localize|inhabitants}}<!--
----------->{{#if:{{#invoke:Wikidata|claim|property=P1082|qualifier=P585|list=false|value={{{year|}}}}}<!--
------------>|&nbsp;<small>({{#invoke:Wikidata|claim|property=P1082|qualifier=P585|list=false|value={{{year|}}}}})</small><!--
--------->}}}}

|label33 = {{Infobox city/localize|Density}}
|data33 = {{#if:{{{density|}}}
|{{{density}}} {{Infobox city/localize|inhabitants/km²}}
|{{#if:{{#Property:P2046|from={{{item|}}}}}
|{{#if:{{#Property:P1082|from={{{item|}}}}}
|{{formatnum:
{{#expr:
{{formatnum:{{#invoke:Wikidata|claim|property=P1082|formatting=label|list=false}}|R}}
/
{{convert/variable|{{formatnum:{{#invoke:Wikidata | claim | property=P2046 |list=false| item={{{item|}}} |formatting=unitcode | value= }}|R}}|km²|disp=number|comma=off}}
round2}}
}} {{Infobox city/localize|inhabitants/km²}}
}}}}}}

|label35 = {{Infobox city/localize|Households}}
|data35 = {{#invoke:Wikidata|claim|property=P1538|list=false}}

<!--- OTHER INFORMATION-->
|header40 = {{#if:{{#property:P473|from={{{item|}}}}}{{#Property:P473|from={{{item|}}}}}{{#Property:P190|from={{{item|}}}}}{{#Property:P421|from={{{item|}}}}}{{#Property:P571|from={{{item|}}}}}|{{Infobox city/localize|Other information}}}}

|label45 = {{Infobox city/localize|Foundation}}
|data45 = {{#invoke:Wikidata|claim|property=P571|formatting=label|value={{{foundation|}}}}}
|label46 = {{Infobox city/localize|Telephone code}}
|data46 = {{#invoke:Wikidata|claim|property=P473|formatting=<code>$1</code>}}
|label47 = {{Infobox city/localize|Time Zone}}
|data47 = {{#invoke:Wikidata|claim|property=P421|formatting=internallink}}
|label48 = {{Infobox city/localize|Sister cities}}
|data48 = {{#invoke:Wikidata|claim|property=P190|formatting=internallink}}

|data60 = {{#invoke:Wikidata|claim|property=P856|formatting=weblink|value={{{web|}}}}}
|below = {{#if:{{{notes|}}}|{{{notes}}}}}
}}</includeonly><noinclude>
Template localization: [[Template:Infobox city/localize]]
</noinclude>

Azmez n lqem taneggarut d 22 Yennayer 2021 à 06:24

Infobox city

Ansa