Template:Risk/doc

This template is designed to be used in a table to make a cell with text in that cell, with an appropriately colored background. It can be used in comparison tables with descriptions of risk, hazard, criticality, threat or severity level.

There are many risk assessment systems using a varying number of risk categories. See risk matrix for typical criteria. Begin with values from low to high and only adopt other levels if it makes sense. Levels beyond high may be considered hyperbole (WP:WBA). The level of risk is usually not absolute, it is usually relative to the matrix in which it appears, producing a useful gradation.

Avoid using this template for transient situations. The colors are chosen to intuitively reflect situations generally considered negative and undesirable. Do not use this template to describe desirable situations.

The text in the cell is taken from the first parameter; {{Risk|Average}} would output "Average" otherwise it displays the default text. Most templates allow authors to override the default text in this way.

Important: If you want to use other attributes for the table cells, e.g. colspan or rowspan, they need to be put before the template call and there must be no vertical bar | in between them:

Eliminated Impossible Very low Low Medium High Very high Critical Fatal
Unknown Under investigation ?
...
|{{Risk |level=eliminated}}
|{{Risk |level=eliminated |align=ml |Impossible}}
|{{Risk |level=verylow}}
|{{Risk |level=low}}
|{{Risk |level=medium}}
|{{Risk |level=high}}
|{{Risk |level=veryhigh}}
|{{Risk |level=critical}}
|{{Risk |level=absolute |Fatal}}
|-
|{{Risk |level=unknown}}
|{{Risk |Under investigation}}
|{{Risk}}
|colspan=6 {{Risk |}}
...

Code

TemplateData

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

TemplateData for Risk

A template for styling individual table cells with standard contents and colors.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
text1

text shown instead of autogenerated text

Default
?
Contentoptional
levellevel

predefined risk level, either 'eliminated', 'verylow', 'low', 'medium', 'high', 'veryhigh', 'critical' or 'absolute'; avoid hyperbole (WP:WBA), use levels beyond 'high' only if necessary, assess the risk in the context of the table, see Risk matrix

Default
Linesuggested
sort valuesortvalue

code for ordering instead of autogenerated code in the format 'knowledge-level', where 'knowledge' is an alphabetic code with values 'U' (unknown) or 'K' (known) and 'level' is a numeric code for the various risk levels, from 0 for 'eliminated' to 8 for 'absolute'

Default
U0
Lineoptional
alignmentalign

text alignment inside the cell, either 'tl' (top left), 'tc' (top center), 'tr' (top right), 'ml' (middle left), 'mc' (middle center), 'mr' (middle right), 'bl' (bottom left), 'bc' (bottom center) or 'br' (bottom right)

Default
mc
Lineoptional
stylestyle

semicolon separated list of CSS rules applied to the table cell

Default
Lineoptional

See also

Notes


Content Disclaimer

Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.

  1. The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
  2. There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
  3. It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
  4. Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.