Jump to content

Template:Vertical header/doc

From Wikipedia, the free encyclopedia
Regular column
Vertical value column
Thin gold column
Unsortable column
0
1
1 2
3
5
8 13
Regular column
Vertical value column
Thin gold column
Unsortable column

This is a template that helps create vertically oriented column headers in tables. It even works for sortable columns.

Although this template was made with table headers in mind, it can work with regular cells as well.

If the header cells have other attributes, for example, colspan or rowspan, there must be no vertical bar | between the attributes and the template call.

If your browser does not support CSS property writing-mode: vertical-rl that makes this template possible, it gracefully degrades to the default display of the table columns.

The |1= text can contain wikilinks ([[]]). You can escape the equals sign either by using {{=}} or by explicitly mentioning the |1= parameter. Styles may contain double quotes.

If you want to move or delete a column in the visual editor you will first need to change the vertical header to a regular header first. When done you can change it back.

Examples

[edit]
  • ! {{vert header|Your text here}} – basic example
  • ! {{vert header|nb=1|Your text here}} – produces a no-bold, sortable header
  • ! {{vert header|class=unsortable|va=top|Your text here}} – produces an unsortable, top-aligned table header
  • ! colspan="2" {{vert header|cellstyle=background-color:gold|Your text here}} – produces a header spanning two columns, with a gold background; use no vertical bar after colspan

You can also use the ! {{verth|Your text here}} shorthand.

An example below (from Help:Sortable tables) with headers that span rows or columns (using rowspan and colspan). Note that there is no vertical bar | between rowspan=2 and {{vert header...}}

name
data columns
another column
data
more data
cats 273 53 1
dogs 65 8,492 2
mice 1,649 548 3
{| class="wikitable sortable"
|-
! rowspan=2 {{vert header|name}}
! colspan=2 {{vert header|class=unsortable|data columns}}
! rowspan=2 {{vert header|another column}}
|-
! {{vert header|data}}
! {{vert header|more data}}
|-
| cats
| 273
| 53
| 1
|-
| dogs
| 65
| 8,492
| 2
|-
| mice
| 1,649
| 548
| 3
|}

Vertical headers combined with sticky table header

[edit]

The example table below is adapted from a version of this article: List of countries with annual rates and counts for killings by law enforcement officers.

It illustrates how many columns can successfully be added to a table, and still be readable, even in a cell phone. It is important to make the sticky header less tall within cell phones. See {{sticky table start}}. This can be done by using the {{abbr}} template (shortening "Intelligence" to Intel in the vertical header). Also, one can eliminate a sticky header row ("Breakdown") by moving info to the caption. Narrow your browser window to see that the left column is also sticky.

List of countries with annual rates and counts for killings by law enforcement officers. With breakdown by police, etc..
Location Region Killings
Police
Military
Intel
agencies
Other
Population Rate per 10 million Year listed Notes
Source
 Venezuela Americas 5,286 28,887,118 1829.9 2019 [1][2]
 El Salvador Americas 1087 6,380,000 1703.8 2017 [3][4]
 Syria Asia 1,497 18,270,000 819 2019 In the context of the Syrian civil war [5]
 Philippines Asia 6,069+ 109,048,269 556.5 2016-2021 These are just the "Drug personalities who died in anti-drug operations" alone. Actual number is much higher. [6]
 Nicaragua Americas 325+ 6,218,000 522.7 2018 Up to 535 [7]
 Jamaica Americas 137 133 4 0 0 2,898,000 472.7 2018 [8]
 Trinidad and Tobago Americas 46 46 0 0 0 1,354,000 339.7 2014 [9]
 Brazil Americas 5,804 210,147,125 276.2 2019 [10]
 Bahamas Americas 11 11 0 0 0 399,285 275.7 2018 [11]
 Saint Vincent and the Grenadines Americas 2 2 0 0 0 110,211 181.8 2018 [12]
 Afghanistan Asia 606 49 267 234 56 35,530,000 170.5 2018 [13]
 Guyana Americas 12+ 12 0 0 0 787,076 152.5 2018 [14][15] [16][17] [18]
 Dominican Republic Americas 142 134 5 0 3 10,770,000 131.8 2017 [19]
 South Africa Africa 436 56,720,000 76.9 2017/8 [20]
 Central African Republic Africa 30+ 30+ 4,659,000 64.4 2015/6 18 documented executions with credible information about 12 other cases [21]
 Lesotho Africa 19 2,233,000 63.8 2017/8 Data from 16 months, rate divided accordingly. [22]
 Burkina Faso Africa 116 19,190,000 60.4 2018/9 From September 2018 to February 2019 [23]
 Saint Lucia Americas 1 1 0 0 0 178,844 56.2 2019 [24]
 Democratic Republic of the Congo Africa 389 81,340,000 47.8 2018 [25]
 Iraq Asia 176+ 39,309,783 45.1 2019 [26][27]
 Nigeria Africa 841 190,900,000 44.0 2018 [28]
 Kenya Africa 222 50,950,879 43.5 2018 [29]
 Honduras Americas 37 9,158,345 40.4 2019 [30]
 Iran Asia 304+ 83,372,584 36.6 2019 Low estimate, real figure is likely to be higher [31]
 Burundi Africa 39 10 1 2 26 10,860,000 35.9 2018 Data from 8 months, rate multiplied accordingly. [32]
 Uruguay Americas 67 3,469,551 35.1 2014-2019 Data for 66 months, rate adjusted accordingly. [33]
 Angola Africa 100+ 28,810,000 34.7 2016 Data from capital city only. [34]
 Colombia Americas 169 97 72 0 0 49,070,000 34.1 2017 [35]
 United States Americas 1,096 1,096 331,449,281 33.1 2022 Data compiled by The Washington Post. See also: List of killings by law enforcement officers in the United States [36]
 Mali Africa 60+ 18,540,000 32.3 2018 [37]
 Sudan Africa 138+ 43,110,000 32.1 2019 [38]
 Rwanda Africa 37+ 11,920,000 31.0 2016/7 [39]
 Mexico Americas 371 145 170 0 56 124,041,731 30.0 2017 [35]
 Bangladesh Asia 466 164,700,000 28.3 2018 [40]
 Pakistan Asia 495 197,000,000 25.2 2017 [41]
 Eswatini Africa 3+ 1,357,161 22.1 2019 [42]
 Argentina Americas 95 44,270,000 21.6 2019 [43]
 Egypt Africa 212 97,550,000 21.2 2018 Counted using graph [44]
 Malta Europe 1 0 1 0 0 493,559 20.0 2019 [45]
 Canada Americas 69 37,060,000 18.6 2022 See also: List of killings by law enforcement officers in Canada [46]
 Luxembourg Europe 1 1 0 0 0 590,321 16.9 2018 [47]
 India Asia 1,731 125 1606 1,380,000,000 12.54 2019 "Other" lists killings while in judicial custody. Official numbers are considerably lower. Official 2018 statistics show only 46 deaths in police custody and 24 deaths of people in police/judicial remand and an additional 21 civilian killed during police operations for a total of 91 nationally. See Table 16A and 16B.4 of Official Govt. of India publication: Crime in India 2018 [48][49]
 Australia Oceania 16 0 0 0 0 24,600,000 6.5 2019-2020 [50]
 France Europe 37 37 67,392,000 5.5 2021 [51]
 Belgium Europe 5 5 11,589,623 4.3 2021 [52][53][54][55][56][57][58][59][60][61]
 Indonesia Asia 77+ 264,000,000 2.9 2018 As of August 17, 2018 [62]
 Netherlands Europe 24 24 0 0 0 17,440,000 13.7 2022 See database of deaths at the hands of the police: [63]
 New Zealand Oceania 1 1 0 0 0 4,794,000 2.1 2018 One additional death ruled inconclusive [64]
 Norway Europe 1 1 0 0 0 5,258,000 1.9 2016 [65]
 Finland Europe 1 1 0 0 0 5,503,000 1.8 2018 [66]
   Nepal Asia 5+ 5 0 0 0 29,300,000 1.7 2019 [67]
 Germany Europe 11 11 0 0 0 82,887,000 1.3 2018 See also: List of killings by law enforcement officers in Germany [68]
 Hong Kong Asia 1 1 0 0 0 7,392,000 1.3 2019 See also: List of killings by law enforcement officers in China [69]
 Portugal Europe 1 1 0 0 0 10,290,000 1.0 2018 [70]
 Sweden Europe 1 1 0 0 0 10,327,589 1.0 2019 [71]
 Taiwan Asia 2 2 0 0 0 23,580,000 0.8 2018 [72]
 United Kingdom Europe 3 3 0 0 0 66,040,229 0.5 2019 Fatal shootings. See also: List of killings by law enforcement officers in the United Kingdom [73]
 Poland Europe 2 2 0 0 0 38,433,600 0.5 2020 See also: List of killings by law enforcement officers in Poland [74][75]
 Japan Asia 2 2 0 0 0 127,185,332 0.2 2018 [76][77]
 Denmark Europe 0 0 0 0 0 5,873,420 0 2022 [78]
 Iceland Europe 0 0 0 0 0 350,000 0 2016 2013 was the only year in which police killed anybody [79]
  Switzerland Europe 0 - - - - 8,420,000 0 2018 [80]
 Croatia Europe 0 - - - - 3,997,461 0 2022 - [81]

TemplateData

[edit]
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Vertical header in articles based on its TemplateData.

TemplateData for Vertical header

No description.

Template parameters

ParameterDescriptionTypeStatus
Text1

no description

Contentoptional
No boldnb

Set to use a normal font weight

Suggested values
y
Unknownoptional
Vertical alignmentva

no description

Suggested values
bottom top middle
Default
bottom
Stringoptional
Manual widthmw

Override the automatic generation based on the number of br line breaks

Example
5em
Unknownoptional
Cell additional classesclass

Additional classes for the cell, for example, |class=unsortable would stop the column from being sortable

Example
unsortable
Stringoptional
Div additional stylesstyle

Additional styles for the div containing the rotated text.

Stringoptional
Cell additional stylescellstyle

Additional styles for the entire cell. May contain double quotes. Use this not the cell's style="" attribute. Use background-color: not background: for sortable columns.

Example
background-color:red
Stringoptional

See also

[edit]


  1. ^ "Informe Anual de Violencia 2019". Observatorio Venezolano de Violencia.
  2. ^ Detailed findings of the independent international fact-finding mission on the Bolivarian Republic of Venezuela (PDF) (Report). Human Rights Council. 15 September 2020. p. 200. Retrieved 22 June 2021.
  3. ^ INFORME DE DERECHOS HUMANOS (PDF). Instituto de Derechos Humanos de la UCA (Idhuca). 2018. p. 8. Retrieved 2019-07-09.
  4. ^ Anna-Catherine Brigda (2019-07-06). "El Salvador's Tough Policing Isn't What It Looks Like – Foreign Policy". Foreign Policy. Retrieved 2019-07-09.
  5. ^ "3,364 Civilians Documented Killed in Syria in 2019". Syrian Network for Human Rights.
  6. ^ "Cop who shot mother and son in Tarlac to face murder charges". CNN Philippines. Archived from the original on 26 January 2021. Retrieved 16 March 2021.
  7. ^ "Nicaragua: one year after protests erupt, Ortega clings to power". 2018.
  8. ^ "2018: The Year in Review" (PDF). 2019. p. INDECOM. Retrieved 2019-07-13.
  9. ^ "T&T police killings in 2014". January 4, 2015.
  10. ^ "Número de pessoas mortas pela polícia cresce no Brasil em 2019; assassinatos de policiais caem pela metade". G1 Globo. April 16, 2020. Retrieved August 11, 2020.
  11. ^ "Police shot 20 persons killing 11 in 2018! What will the Human Rights Reports around the world have to say about that!?". BahamasPress. January 7, 2019. Archived from the original on January 9, 2019. Retrieved August 19, 2019.
  12. ^ "Police shooting victim bleeds to death amidst unruly behavior at hospital". August 16, 2018.
  13. ^ "Afghanistan. Annual report 2018" (PDF). February 2019. p. 34.
  14. ^ "5 bandits killed during shootout with Police". July 25, 2018.
  15. ^ "Police kill armed bandit following robbery". October 28, 2018.
  16. ^ "Police kill bandit after ECD robbery". November 2, 2018.
  17. ^ "3 bandits shot while attempting to rob bank customer". March 16, 2018.
  18. ^ "Father says he warned son about criminal lifestyle". March 4, 2018.
  19. ^ "Boletín Estadístico Enero - Diciembre 2017" (PDF). Observatorio de Seguridad Ciudadana de la República Dominicana. January 7, 2019. p. 2.
  20. ^ "Annual Report 2017/8" (PDF).
  21. ^ "Human Rights Watch accuses CAR police unit of unlawful killings". HRW. June 27, 2016.
  22. ^ "Horrendous police brutality in Lesotho: from July 2017 to October 2018". Liotloana News Agency. October 28, 2018.
  23. ^ "Atrocities by Armed Islamists and Security Forces in Burkina Faso's Sahel Region". hrw.org. March 22, 2019.
  24. ^ "BREAKING NEWS: Wanted man killed by Saint Lucia police". StLuciaNewsOnline. July 28, 2019. Archived from the original on 2019-07-28. Retrieved 2019-07-13.
  25. ^ "Democratic Republic of the Congo. 2018 human rights report" (PDF). state.gov. p. 2.
  26. ^ "Iraqi security forces killed 149 protesters, most by shots to head, chest: government inquiry". MakaAngola. October 22, 2019.
  27. ^ "27 Iraqi protesters killed over 24 hours in anti-government demonstrations". November 28, 2019.
  28. ^ "Nigeria Security Tracker". cfr.org. October 1, 2019.
  29. ^ "Deadly force. People killed by police in Kenya". www.nation.co.ke. 2018.
  30. ^ "Boletín especial sobre homicidios en Honduras, 2019". Observatorio Nacional de la Violencia. IUDPAS-UNAH. February 2020. Retrieved 4 June 2020.
  31. ^ "'Vicious crackdown': Iran protest death toll at 304, Amnesty says". December 16, 2019. Archived from the original on December 19, 2019. Retrieved December 24, 2019.
  32. ^ "Burundi, 3 years and 4 months of crisis: perpetrators and their strategies" (PDF). Ligue Iteka. October 28, 2018. p. 7.
  33. ^ "En el primer semestre de 2019, 22 personas fueron abatidas por la Policía". subrayado.uy. July 12, 2019.
  34. ^ "Angola's rampant extrajudicial killings". MakaAngola. September 13, 2016.
  35. ^ a b "Monitor del uso de la Fuerza Letal en América Latina: un estudio comparativo de Brasil, Colombia, El Salvador, México y Venezuela". August 2019.
  36. ^ "Police shootings database 2015-2023". Washington Post. Retrieved March 31, 2023.
  37. ^ "Mali. Events of 2018". hrw.org. May 30, 2018.
  38. ^ "Sudanese protesters demand justice following mass killings". The Guardian. July 13, 2019.
  39. ^ "Extrajudicial Executions in Western Rwanda". HRW. July 13, 2017.
  40. ^ "Death by Law Enforcement Agencies : January-December 2018". 2019.
  41. ^ More Pakistanis Died in ‘Encounters’ than in Suicide Attacks in 2017 – CRSS Report
  42. ^ "2 escaped inmates shot dead by police". 2019.
  43. ^ "Letalidad policial estadísticas". 2019.
  44. ^ "Egypt kills hundreds of suspected militants in disputed gun battles". Reuters. Archived from the original on 2023-05-03.
  45. ^ "Two soldiers arrested for killing Ħal Far migrant 'because he was black'". May 18, 2019.
  46. ^ "Researchers fill data gap on police-involved killings". CBC.ca. Feb 23, 2023.
  47. ^ "Dutch man shot, killed by police in Luxembourg". April 20, 2018.
  48. ^ "Outrage grows over deaths in Indian police custody". BBC News. 2020-06-27. Retrieved 2020-06-28.
  49. ^ "PRESS RELEASE: India records daily five deaths in custody, Uttar Pradesh tops deaths in police custody during 2019 | United NGO Campaign Against Torture". www.uncat.org. Retrieved 2020-06-28.
  50. ^ "Deaths in custody in Australia 2019-20". p. iii.
  51. ^ Cite error: The named reference ouest-france.fr was invoked but never defined (see the help page).
  52. ^ "Annual Reports Committee P". Comité P. Sedentary Committee P.
  53. ^ "Affaire Mawda: le policier auteur du coup de feu inculpé pour homicide involontaire". RTBF Info. Retrieved 21 June 2020.
  54. ^ "Dood van uit huis gezette Lamine (27) is gevolg van verschillende factoren". Het Laatste Nieuws.
  55. ^ Rankin, Jennifer (2020-08-20). "Belgian police officer made 'Nazi' salute in cell of man who died". The Guardian. ISSN 0261-3077. Retrieved 2020-09-08.
  56. ^ "Heart failure blamed for Ibrahima Barries death". vrt NWS.
  57. ^ "Familiedrama in Olmen: politieagent en vrouw dood, tienermeisje overleden in ziekenhuis". Het Laatste Nieuws (in Dutch).
  58. ^ Lars Bové. "Geen betrouwbare cijfers over politiegeweld". De Tijd (in Dutch).
  59. ^ Nancy Vandebroek. "Politie schiet dolgedraaide vader van twee dochters dood in Stal". hbvl.be. Het Belang Van Limburg.
  60. ^ Phillipe Pergens. "Roger neergeschoten door politie". hbvl.be. Het Belang Van Limburg.
  61. ^ "man-doodgeschoten-bij-huiszoeking-in-merksem". Het Laatste Nieuws (in Dutch).
  62. ^ "Indonesian police kill dozens in Asian Games 'clean-up'". The Guardian.
  63. ^ Controle Alt Delete
  64. ^ "NZ Police Tactical Options Research Report. 2018" (PDF). p. 10.
  65. ^ "Norwegian police involved in just fourth fatal shooting in 14 years". The Local. November 28, 2016.
  66. ^ "Yhdeksän ihmistä menehtynyt poliisin luotiin 2000-luvulla - IL koosti tapaukset". www.iltalehti.fi. Retrieved October 24, 2023.
  67. ^ "Human Rights Situation of Nepal in 2019: Review by THRDA". December 31, 2019.
  68. ^ "Polizisten in Deutschland erschossen bei Einsätzen elf Menschen". Spiegel. June 24, 2019.
  69. ^ "Hong Kong man shot dead by police after knife attack at Kai Bo Food Supermarket in Yau Ma Tei". South China Morning Post. March 16, 2019.
  70. ^ Clara Velasco (March 2019). "Relatório Anual de Segurança Interna 2018" (in Portuguese). portugal.gov.pt. p. 86.
  71. ^ Polismyndighetens användning av särskilda hjälpmedel för våldsanvändning - Statistik för åren 1990-2019
  72. ^ "Police shootings in Taiwan". TaiwanEnglishNews.
  73. ^ "Deaths during or following police contact: Statistics for England and Wales 2018/19" (PDF). www.policeconduct.gov.uk. Retrieved October 24, 2023.
  74. ^ "Podhale. 28-latek zastrzelony przez policję miał wkrótce zostać ojcem". 29 June 2020.
  75. ^ "31-latka śmiertelnie postrzelona przez policjanta. Wcześniej zaatakowała funkcjonariuszy nożami". 19 June 2020.
  76. ^ "Police officer in koban stabbed to death in Sendai; attacker shot dead". September 19, 2018.
  77. ^ "19-yr-old police officer shoots colleague dead in western Japan". April 12, 2018.
  78. ^ "Årsberetninger". Uafhængige Politiklagemyndighed. Retrieved 11 January 2023.
  79. ^ "Iceland grieves after police shoot and kill a man for the first time in its history". Retrieved 2019-07-10.
  80. ^ "Statistik Schusswaffen- und DSG-Einsätze 2018". Archived from the original on 2019-07-10. Retrieved 2019-07-10.
  81. ^ Croatian Police, Croatian Police (2022). "Croatian Police data for 2022" (PDF).