Template:Infobox Location: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>{{infobox
<includeonly>{{infobox
|aboveclass = mergedtoprow name
|above = {{#if:{{{name|}}}|{{{name|}}}|{{PAGENAME}}}}
|above = {{#if:{{{name|}}}|{{{name|}}}|{{PAGENAME}}}}
|subheaderrowclass1 = mergedrow title {{{type|}}}
|subheader1 = {{#if:{{{type|}}}|{{{type|}}}}}
|subheader1 = {{#if:{{{type|}}}|{{{type|}}}}}
|subheaderrowclass2 = mergedbottomrow {{{type|}}}
|subheader2 = of {{#if:{{{location|}}}|{{{location|}}}}}
|subheader2 = of {{#if:{{{location|}}}|{{{location|}}}}}
|imagerowclass1 = mergedtoprow
|image1 = {{#if:{{{image|}}}|[[File:{{{image|}}}:250px]]}}
|image1 = {{#if:{{{image|}}}|[[File:{{{image|}}}:250px]]}}
|caption1 = {{#if:{{{image-caption|}}}|{{{image-caption|}}}}}
|caption1 = {{#if:{{{image-caption|}}}|{{{image-caption|}}}}}
|imagerowclass2 = mergedtoprow mergedbottomrow
|image2 = {{#if:{{{image-tab|}}}|{{{image-tab|}}}}}
|image2 = {{#if:{{{image-tab|}}}|{{{image-tab|}}}}}
|label1 = Nearest City
|rowclass1 = mergedtoprow {{#if:{{{population|}}}||mergedbottomrow}}
|data1 = {{#if:{{{nearestcity|}}}|{{{nearestcity|}}}}}
|label1 = Area
|label2 = Largest City
|data1 = {{#if:{{{area|}}}|{{{area|}}}}}
|data2 = {{#if:{{{largestcity|}}}|{{{largestcity|}}}}}
|rowclass2 = {#if:{{{area|}}}||mergedtoprow}} mergedbottomrow
|label3 = Area
|label2 = Population
|data4 = {{#if:{{{area|}}}|{{{area|}}}}}
|data2 = {{#if:{{{population|}}}|{{{population|}}}}}
|label4 = Population
|rowclass3 = mergedtoprow {{#if:{{{largestcities|}}}||mergedbottomrow}}
|data4 = {{#if:{{{population|}}}|{{{population|}}}}}
|label3 = Countries
|label5 = Countries
|data3 = {{#if:{{{countries|}}}|{{{countries|}}}}}
|data5 = {{#if:{{{countries|}}}|{{{countries|}}}}}
|rowclass4 = {{#if:{{{countries|}}}||mergedtoprow}} mergedbottomrow
|label6 = Largest Cities
|label4 = Largest Cities
|data6 = {{#if:{{{largestcities|}}}|{{{largestcities|}}}}}
|data4 = {{#if:{{{largestcities|}}}|{{{largestcities|}}}}}
|label7 = Owner
|rowclass5 = mergedtoprow mergedbottomrow
|data7 = {{#if:{{{owner|}}}|{{{owner|}}}}}
|label5 = Owner
|label8 = Capital
|data5 = {{#if:{{{owner|}}}|{{{owner|}}}}}
|data8 = {{#if:{{{capital|}}}|{{{capital|}}}}}
 
|label9 = Government
|rowclass6 = mergedtoprow {{#ifeq:{{#expr:{{#if:{{{government|}}}|1|0}}or{{#if:{{{ruler|}}}|1|0}}|1||mergedbottomrow}}
|data9 = {{#if:{{{government|}}}|{{{government|}}}}}
|label6 = Capital
|label10 = {{#if:{{{rulertype|}}}|{{{rulertype|}}}}}
|data6 = {{#if:{{{capital|}}}|{{{capital|}}}}}
|data10 = {{#if:{{{ruler|}}}|{{{ruler|}}}}}
|rowclass7 = {{#if:{{{capital|}}}||mergedtoprow}} mergedrow {{#if:{{{ruler|}}}||mergedbottomrow}}
|label7 = Government
|data7 = {{#if:{{{government|}}}|{{{government|}}}}}
|rowclass8 = {{#ifeq:{{#expr:{{#if:{{{capital|}}}|1|0}}or{{#if:{{{government|}}}|1|0}}|1||mergedtoprow}} mergedbottomrow
|label8 = {{#if:{{{rulertype|}}}|{{{rulertype|}}}}}
|data8 = {{#if:{{{ruler|}}}|{{{ruler|}}}}}
 
|label9 = Nearest City
|data9 = {{#if:{{{nearestcity|}}}|{{{nearestcity|}}}}}
|label10 = Largest City
|data10 = {{#if:{{{largestcity|}}}|{{{largestcity|}}}}}
|label11 = Major Languages
|label11 = Major Languages
|data11 = {{#if:{{{languages|}}}|{{{languages|}}}}}
|data11 = {{#if:{{{languages|}}}|{{{languages|}}}}}
Line 32: Line 47:
|label13 = Major Religions
|label13 = Major Religions
|data13 = {{#if:{{{religions|}}}|{{{religions|}}}}}
|data13 = {{#if:{{{religions|}}}|{{{religions|}}}}}
|label14 = Setting
|label14 = Setting
|data14 = {{#if:{{{setting|}}}|{{{setting|}}}}}
|data14 = {{#if:{{{setting|}}}|{{{setting|}}}}}