Template:LCSR

From blackwiki
Revision as of 21:14, 19 January 2019 by imported>Bungle (display documentation only)
Jump to navigation Jump to search


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

Usage

{{LCSR|Country (ISO)|Country rank|Both sexes rank|Male rank|Male number|Female rank|Female number|Parameters (optional)}}

This template is used for managing table items on the article List of countries by suicide rate. It will automatically calculate the average and ratio from specified figures. In addition, it will detect if there is an associated article relating to suicide for that country and display a link if there is.

Parameters

  • |fn=NAME, optional, defines a reference to a footnote
  • |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

Example

 {|class="wikitable sortable" style="text-align:right"
  |-
  ! Both sexes<br>rank !! Country !! Continent !! Both sexes !! Male<br>rank !! Male !! Female<br>rank !! Female !! Male:Female<br>ratio
  {{LCSR|China|103|8.0|143|7.9|24|8.3|style=italic}}
  {{LCSR|Romania|103|8.0|85|13.9|141|2.4}}
  {{LCSR|Singapore|105|7.9|114|11.1|76|4.9|fn=legislation-b}}
  {{LCSR|Montenegro|105|7.9|102|12.6|108|3.6}}
  {{LCSR|Bulgaria|105|7.9|95|13.1|118|3.2}}
 |}
 {{notelist|refs=
{{efn|name=legislation-b|Suicide attempts are illegal in this country, and punishable by imprisonment or other penalties.   This might be the reason for the low suicide rate in these countries. See also [[Suicide legislation]].}}
}}

will create..

Both sexes
rank
Country Continent Both sexes Male
rank
Male Female
rank
Female Male:Female
ratio
23x15px China 8 103 8.0 143 7.9 1.01
23x15px Romania 11 103 8.0 85 13.9 0.58
23x15px Singapore[lower-alpha 1] 9.5 105 7.9 114 11.1 0.71
23x15px Montenegro 10.3 105 7.9 102 12.6 0.63
23x15px Bulgaria 10.5 105 7.9 95 13.1 0.6

Notes

  1. Suicide attempts are illegal in this country, and punishable by imprisonment or other penalties. This might be the reason for the low suicide rate in these countries. See also Suicide legislation.

Notes MUST have the original citation located directly within the respective notes section, within the notelist template.