Difference between revisions of "Template:DDSC"
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
![]() | This template employs intricate features of template syntax.
You are encouraged to familiarise yourself with its setup and parser functions before editing the template. If your edit causes unexpected problems, please undo it quickly, as this template may appear on a large number of pages. You can conduct experiments, and should test all major changes, in either this template's sandbox, the general template sandbox, or your user space before changing anything here. |
Contents
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)
The above documentation is transcluded from Template:DDSC/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |