Difference between revisions of "Template:Infobox famine"

From blackwiki
Jump to navigation Jump to search
imported>Magioladitis
m (clean up using AWB (9489))
imported>Izkala
(Infobox conversion)
Line 1: Line 1:
{| class="infobox geography vcard" style="width:{{{infobox_width|27em}}}"
+
{{Infobox
|colspan="2" class="mergedtoprow" align="center" style="line-height:1.2em; font-size:1.35em;"| '''{{#if:{{{famine_name|}}}|<span class="fn org">{{{famine_name}}}</span>|<span class="fn org">{{PAGENAME}}</span>}}'''{{#if:{{{famine_name_in_local<includeonly>|</includeonly>}}}|<br />'''{{{famine_name_in_local}}}'''}}
+
| bodyclass = vcard
{{#if: {{{image_1<includeonly>|</includeonly>}}}{{{image_2<includeonly>|</includeonly>}}} |
 
{{!}}- class="mergedrow"
 
{{!}} colspan="2" class="maptable" align="center" style="padding:0.3em 0.6em 0.3em 0.6em;"{{!}}
 
    {{{!}} style="text-align: center; margin: 0 auto; background: none;"
 
    {{!}}style="vertical-align:middle; text-align:center;"{{!}} [[File:{{{image_1}}}|{{{image_width_1|{{#if: {{{image_2<includeonly>|</includeonly>}}}|126|252}}}}}px|{{{image_title_1|}}}]]
 
    {{#if: {{{image_2<includeonly>|</includeonly>}}} | {{!}}style="vertical-align:middle; text-align:center;"{{!}} [[File:{{{image_2}}}|{{{image_width_2|126}}}px|{{{image_title_2|}}}]] }}
 
    {{!}}- style="font-size: 95%;"
 
    {{#if: {{{image_1<includeonly>|</includeonly>}}} | {{!}} {{{image_title_1<includeonly>|</includeonly>}}} }}
 
    {{#if: {{{image_2<includeonly>|</includeonly>}}} | {{!}} {{{image_title_2<includeonly>|</includeonly>}}} }}
 
    {{!}}}
 
}}
 
<!----- Country----->
 
|-
 
! Country
 
| <span class="label">{{{country}}}</span>
 
|-
 
<!----- Location----->
 
|-
 
! Location
 
| <span class="label">{{{location}}}</span>
 
|-
 
{{#if:{{{coordinates<includeonly>|</includeonly>}}} |
 
! [[Geographic coordinate system|Coordinates]]
 
{{!}} {{{coordinates}}} }}
 
  
<!----- Period----->
+
| above    = {{Br separated entries
|-
+
| 1        = <span class="fn org">{{#if:{{{name|}}}{{{famine_name|}}}|{{{name|{{{famine_name}}}}}}|{{PAGENAMEBASE}}}}</span>
{{#if:{{{period<includeonly>|</includeonly>}}} |
+
| 2        = {{{native_name|{{{famine_name_in_local|}}}}}}}}
! Period
 
{{!}} {{{period}}} }}
 
  
<!----- Excess mortality (deaths due to famine) ----->
+
| image    = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|{{{image_1|}}}}}}|upright={{{image_upright|1}}}|alt={{{alt|}}}}}
|-
+
| caption  = {{{caption|{{{image_title_1|}}}}}}
{{#if:{{{excess_mortality<includeonly>|</includeonly>}}} |
 
! Excess mortality
 
{{!}} {{{excess_mortality}}} }}
 
  
<!----- Deaths from disease (deaths due to diseases caused by the famine) ----->
+
| label1    = Country
|-
+
| data1    = {{{country}}}
{{#if:{{{from_disease<includeonly>|</includeonly>}}} |
+
| class1    = label
! Deaths from disease
 
{{!}} {{{from_disease}}} }}
 
  
<!----- Total deaths (deaths due to diseases caused by the famine) ----->
+
| label2    = Location
|-
+
| data2    = {{{location}}}
{{#if:{{{total_deaths<includeonly>|</includeonly>}}} |
+
| class2    = label
! Total deaths
 
{{!}} {{{total_deaths}}} }}
 
  
<!----- Percentage death rate ----->
+
| label3    = [[Geographic coordinate system|Coordinates]]
|-
+
| data3    = {{{coordinates|}}}
{{#if:{{{death_rate<includeonly>|</includeonly>}}} |
 
! Death rate
 
{{!}} {{{death_rate}}} }}
 
  
<!----- Observations (examples: policy failure, war, drought, potato blight, back-to-back poor harvests, etc) ----->
+
| label4    = Period
|-
+
| data4    = {{{period|}}}
{{#if:{{{observations<includeonly>|</includeonly>}}} |
 
! Observations
 
{{!}} {{{observations}}} }}
 
  
<!----- Applicable theory(examples: food availability decline (FAD - conventional), failure of exchange entitlements (FEE - Amartya Sen), Anti-famine contract (De Waal), Malthus, etc ----->
+
| label5    = Excess mortality
|-
+
| data5    = {{{excess_mortality|}}}
{{#if:{{{theory<includeonly>|</includeonly>}}} |
 
! [[Theories of famines|Theory]]
 
{{!}} {{{theory}}} }}
 
  
<!----- Relief ----->
+
| label6    = Deaths from disease
|-
+
| data6    = {{{from_disease|}}}
{{#if:{{{relief<includeonly>|</includeonly>}}} |
 
! Relief
 
{{!}} {{{relief}}} }}
 
  
<!----- Net food imports(examples: 50 million tons of grain, -10 million tons of wheat)----->
+
| label7    = Total deaths
|-
+
| data7    = {{{total_deaths|}}}
{{#if:{{{net_food_imports<includeonly>|</includeonly>}}} |
 
! Net food imports
 
{{!}} {{{net_food_imports}}} }}
 
  
<!----- Demographics (decline?)----->
+
| label8    = Death rate
|-
+
| data8    = {{{death_rate|}}}
{{#if:{{{demographics<includeonly>|</includeonly>}}} |
 
! Impact on demographics
 
{{!}} {{{demographics}}} }}
 
  
<!----- Consequences(examples: independence movement, overthrow of government, change of policy, etc.)----->
+
| label9    = Observations
|-
+
| data9    = {{{observations|}}}
{{#if:{{{consequences<includeonly>|</includeonly>}}} |
 
! Consequences
 
{{!}} {{{consequences}}} }}
 
  
<!----- Memorial----->
+
| label10  = [[Theories of famines|Theory]]
|-
+
| data10    = {{{theory|}}}
{{#if:{{{memorial<includeonly>|</includeonly>}}} |
 
! Website
 
{{!}} {{{memorial}}} }}
 
  
<!----- Preceded by ----->
+
| label11  = Relief
|-
+
| data11    = {{{relief|}}}
{{#if:{{{preceded<includeonly>|</includeonly>}}} |
 
! Preceded by
 
{{!}} {{{preceded}}} }}
 
|-
 
  
<!----- Succeeded by ----->
+
| label12  = Net food imports
{{#if:{{{succeeded<includeonly>|</includeonly>}}} |
+
| data12    = {{{net_food_imports|}}}
! Succeeded by
 
{{!}} {{{succeeded}}} }}
 
|-
 
  
<!----- footnotes ----->
+
| label13  = Impact on demographics
{{#if: {{{footnotes<includeonly>|</includeonly>}}} |
+
| data13    = {{{demographics|}}}
{{!}} colspan="2" {{!}} <small>{{{footnotes}}}</small> }}
+
 
|}<noinclude>
+
| label14  = Consequences
{{documentation}}
+
| data14    = {{{consequences|}}}
 +
 
 +
| label15  = Website
 +
| data15    = {{{memorial|}}}
 +
 
 +
| label16  = Preceded by
 +
| data16    = {{{preceded|}}}
 +
 
 +
| label17  = Succeeded by
 +
| data17    = {{{succeeded|}}}
 +
}}<noinclude>
 +
{{Documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 15:03, 25 June 2015

Template:PAGENAMEBASE
Country{{{country}}}
Location{{{location}}}

[[Category:Infobox templates|Template:Remove first word]]

Template documentation[view] [edit] [history] [purge]

Usage

Template:Parameter names example

{{Infobox famine
| name             = <!-- Name as in article title -->
| native_name      = <!-- Name of the famine in local language -->
| image            = <!-- Image filename  -->
| alt              = <!-- Image [[WP:ALT]] -->
| caption          = <!-- Image caption -->
| country          = <!-- India, China, North Korea, etc. -->
| location         = <!-- state or region within the country, for example, [[Bengal]] -->
| coordinates      = <!-- (use {{coord}}) -->
| period           = <!-- Example: 1846-1851 -->
| excess_mortality = <!-- Deaths directly due to famine starvation -->
| from_disease     = <!-- Indirect famine deaths from subsequent diseases -->
| total_deaths     = <!-- Total deaths -->
| death_rate       = <!-- Death rate -->
| refugees         = <!-- Refugees -->
| observations     = <!-- Examples: policy failure, war, drought, potato blight, back-to-back poor harvests, genocide, etc -->
| theory           = <!-- Examples: food availability decline (FAD - conventional), failure of exchange entitlements (FEE - Amartya Sen), Anti-famine contract (De Waal), Malthus, etc -->
| relief           = <!-- Examples: 1 million tons of grain, no relief, etc -->
| food_situation   = <!-- Net food imports, examples: 10 million tons of wheat, can be negative for repressive regimes/genocide cases -->
| demographics     = <!-- Example: population declined by 10% due to mortality or 5% of the people emigrated, etc -->
| consequences     = <!-- Political consequences, example: Indian independence movement intensified due to a lack of relief or allegations of genocide were made, etc -->
| memorial         = <!-- link to the memorial website -->
| preceded         = <!-- Preceded by - example: Orissa famine of 1866 -->
| succeeded        = <!-- Succeeded by - example: The Great Indian famine of 1876 -->
}}

Coordinates

Template:UF-coord

Microformat

Template:UF-hcard-geo

ar:قالب:صندوق معلومات مجاعة ja:Template:Infobox famine ka:თარგი:ინფოდაფა შიმშილობა tr:Şablon:Kıtlık bilgi kutusu