Template:LCSR/doc
Jump to navigation
Jump to search
![]() | This is a documentation subpage for Template:LCSR. It contains usage information, categories and other content that is not part of the original template page. |
![]() | 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
{{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 |
---|---|---|---|---|---|---|---|---|
103 | ![]() |
Asia | 8.0 | 143 | 7.9 | 24 | 8.3 | 0.95 |
103 | ![]() |
Europe | 8.0 | 85 | 13.9 | 141 | 2.4 | 5.79 |
105 | ![]() |
Asia | 7.9 | 114 | 11.1 | 76 | 4.9 | 2.27 |
105 | ![]() |
Europe | 7.9 | 102 | 12.6 | 108 | 3.6 | 3.5 |
105 | ![]() |
Europe | 7.9 | 95 | 13.1 | 118 | 3.2 | 4.09 |
Notes
- ↑ 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.