Difference between revisions of "Template:GHI"

From blackwiki
Jump to navigation Jump to search
imported>Bungle
(use average change template)
imported>Bungle
(use countryarticle template to reduce article exist checks)
 
Line 10: Line 10:
 
  | 1=0
 
  | 1=0
 
}}" {{!}} {{{2}}}
 
}}" {{!}} {{{2}}}
|align=left {{!}} {{#ifeq:{{{flag|raw}}}|no|{{noflag|[[{{{1}}}]]}}|{{flagcountry|{{{1}}}}} }} {{#ifexist:Hunger in the {{{1}}}|{{sup|([[Hunger in the {{{1}}}|more info]])}}|{{#ifexist:Hunger in {{{1}}}|{{sup|([[Hunger in {{{1}}}|more info]])}}}}}} {{#ifexist:Famine in the {{{1}}}|{{sup|([[Famine in the {{{1}}}|famine]])}}|{{#ifexist:Famine in {{{1}}}|{{sup|([[Famine in {{{1}}}|famine]])}}}}}}
+
|align=left {{!}} {{#ifeq:{{{flag|raw}}}|no|{{noflag|[[{{{1}}}]]}}|{{flagcountry|{{{1}}}}} }} {{#ifexist:Hunger in {{Countryarticle|{{{1}}}}}|{{sup|([[Hunger in {{Countryarticle|{{{1}}}}}|more info]])}}}} {{#ifexist:Famine in {{Countryarticle|{{{1}}}}}|{{sup|([[Famine in {{Countryarticle|{{{1}}}}}|famine]])}}}}
 
|{{Continent|{{{1}}}|Onecontinent}}
 
|{{Continent|{{{1}}}|Onecontinent}}
 
|{{{3}}}
 
|{{{3}}}

Latest revision as of 22:16, 30 October 2019


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

Usage

{{GHI|Country (ISO)|Country rank|1st Period|2nd Period|3rd Period|4th Period|Parameters (optional)}}

This template is used for managing table items on the article Global Hunger Index. It will automatically calculate the averages from specified figures. In addition, it will detect if there is an associated article relating to hunger for that country and display a link if there is, as well as providing continent information and visual aids.

Parameters

  • |flag=no, optional, disables the flag icon (retains flag space)
  • |style=bold OR italic, optional, defines whether the row should be styled in italic or bold