Difference between revisions of "Template:DDSC"

From blackwiki
Jump to navigation Jump to search
imported>Bungle
(template to manage table items on Divorce demography)
 
imported>Bungle
m (fix formatting)
 
Line 1: Line 1:
<includeonly>
+
<includeonly>|-
|-
 
 
|align=left {{!}} {{#ifeq:{{{flag|raw}}}|no|{{noflag|[[{{{1}}}]]}}|{{flagcountry|{{{1}}}}} }} {{#ifexist:Divorce in {{Countryarticle|{{{1}}}}}|{{sup|([[Divorce in {{Countryarticle|{{{1}}}}}|more info]])}}}}
 
|align=left {{!}} {{#ifeq:{{{flag|raw}}}|no|{{noflag|[[{{{1}}}]]}}|{{flagcountry|{{{1}}}}} }} {{#ifexist:Divorce in {{Countryarticle|{{{1}}}}}|{{sup|([[Divorce in {{Countryarticle|{{{1}}}}}|more info]])}}}}
 
|{{Continent|{{{1}}}|Onecontinent}}
 
|{{Continent|{{{1}}}|Onecontinent}}
Line 7: Line 6:
 
|{{#iferror:{{#expr: {{{2}}}/{{{3}}} round 2}}}}
 
|{{#iferror:{{#expr: {{{2}}}/{{{3}}} round 2}}}}
 
|{{#iferror:{{#expr: {{{3}}}/{{{2}}} * 100 round 2}}}}
 
|{{#iferror:{{#expr: {{{3}}}/{{{2}}} * 100 round 2}}}}
|{{{4}}}
+
|{{{4}}}</includeonly>
</includeonly>
 
 
<noinclude>
 
<noinclude>
 
{{Documentation}}
 
{{Documentation}}
 
</noinclude>
 
</noinclude>

Latest revision as of 20:32, 2 November 2019


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

Usage

{{DDSC|Country (ISO)|Marriage rate|Divorce rate|Year/reference|Parameters (optional)}}

This template is used for managing table items on the article Divorce demography. It will automatically calculate the ratios from specified figures. In addition, it will detect if there is an associated article relating to divorce 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)