සැකිල්ල:GHS phrases/doc

විකිපීඩියා වෙතින්

The templates {{GHS phrases}} (doc/talk) (/tests), {{H-phrases}} and {{P-phrases}} all format and present GHS hazard and precaution statements as defined by the UN.සැකිල්ල:GHS2021

The template requires one or more phrase codes as input:

  • {{GHS phrases|H220|H230}}H220, H230
  • {{H-phrases|H220|H230}}H220, H230
  • {{P-phrases| P220 | P230}}P220, P230
  • {{H-phrases|H302 + 312}}H302+H312 -- (Predefined combination, recognised)

Pages with errors or warnings show a Preview message. Articles are then listed in ප්‍රවර්ගය:GHS errors (4), ප්‍රවර්ගය:GHS warnings (0).

Usage[සංස්කරණය]

While one can use {{GHS phrases}} stand-alone in text, more common use is in {{Chembox}}, section Chembox Hazards:
DDT GHS phrases
Hazards
GHS labelling:
[→Category:GHS errors]
H301, H351, H372, H410
P201, P202, P260, P264, P270, P273, P281, P301+P310, P308+P313, P314, P321, P330, P391, P405, P501
Except where otherwise noted, data are given for materials in their standard state (at 25 °C [77 °F], 100 kPa).

සැකිල්ල:Chembox Footer/tracking container only

{{Chembox
| Section7 = {{Chembox Hazards
| HPhrases = {{H-phrases|H301|H351|H372|H410}}
| PPhrases = {{P-phrases|P201|P202|P260|P264|P270|P273|P281|P301+P310|P308+P313|P314|P321|P330|P391|P405|P501}}
}}
}}

Synonyms: {{HPhrases}}[සංස්කරණය]

For ease of working in {{Chembox}}, the templates have synonyms (redirects) same as the Chembox parameter name:

|Section3 = {{Chembox Hazards
|HPhrases={{HPhrases|H300}}
|PPhrases={{PPhrases|P300}}
 }}


Parameters[සංස්කරණය]

  • The number of phrase code one can enter is practically unlimited. The codes are ordered alphanumeric.
Best practice: add prefix H or P to the number: |H220, not |220.
One template call can only show one prefix set. That is, H- and P-phrases cannot be mixed.
  • |setid= (H or P) can be set to prevent ambiguity in generic {{GHS phrases}}.

For backward compatability, the code prefix "H" or "P" is not required. So {{H-phrases|220}} equals {{H-phrases|H220}}H220. However. Since {{GHS phrases}} covers both H and P, adding the prefix is better.

Code checks added[සංස්කරණය]

Omit Rules[සංස්කරණය]

|omit=true (default)

සැකිල්ල:GHS phrases/list omit rules

  • {{GHS phrases|H314|H318}}H314

Remove Doubles[සංස්කරණය]

Repeated phrase codes are removed (hidden):

  • {{GHS phrases|H400|H401|H401|H401}}H400, H401

Other functions[සංස්කරණය]

List options[සංස්කරණය]

  • Using |list=, {{GHS phrases}} can be presented in various list formats:
|list=abbr, inline, bulleted, unbulleted, horizontal, ordered, horizontal_ordered
|listtype=abbr (default)
P201, P302+P334, P502
|listtype=inline
P201: "Obtain special instructions before use.", P302+P334: "IF ON SKIN: Immerse in cool water or wrap in wet bandages.", P502: "Refer to manufacturer or supplier for information on recovery or recycling."
|listtype=bulleted
  • P201: Obtain special instructions before use.
  • P302+P334: IF ON SKIN: Immerse in cool water or wrap in wet bandages.
  • P502: Refer to manufacturer or supplier for information on recovery or recycling.
|listtype=unbulleted
  • P201: Obtain special instructions before use.
  • P302+P334: IF ON SKIN: Immerse in cool water or wrap in wet bandages.
  • P502: Refer to manufacturer or supplier for information on recovery or recycling.
|listtype=horizontal
  • P201: Obtain special instructions before use.
  • P302+P334: IF ON SKIN: Immerse in cool water or wrap in wet bandages.
  • P502: Refer to manufacturer or supplier for information on recovery or recycling.
|listtype=ordered
  1. P201: Obtain special instructions before use.
  2. P302+P334: IF ON SKIN: Immerse in cool water or wrap in wet bandages.
  3. P502: Refer to manufacturer or supplier for information on recovery or recycling.
|listtype=horizontal_ordered
  1. P201: Obtain special instructions before use.
  2. P302+P334: IF ON SKIN: Immerse in cool water or wrap in wet bandages.
  3. P502: Refer to manufacturer or supplier for information on recovery or recycling.
  • Except for abbr, inline, these list formats are defined in Module:List

Errors and warnings[සංස්කරණය]

Phrase codes that are unknown get an inline marker like [?], give a warning in preview and are categorised in Cat:GHS errors when in article space.

For example (One can see the warning when previewing this page or section):

  • {{H-phrases|H220|H999}}H220, H999[?]

Templates[සංස්කරණය]

H-phrases[සංස්කරණය]

{{H-phrases|H200|H241}}H200, H241
{{H-phrases|H302+H312}}H302+H312

සැකිල්ල:GHS phrases/list all

P-phrases[සංස්කරණය]

{{P-phrases|P101|P263}}P101, P263
{{P-phrases|P306+P360}}P306+P360

සැකිල්ල:GHS phrases/list all

GHS phrases[සංස්කරණය]

  • {{GHS phrases|H220}}H220
  • {{GHS phrases|P220}}P220

GHS inline[සංස්කරණය]

  • {{GHS inline}} lists the phrases inline, to be used in regular sentences.
{{GHS inline|H220|H401}}සැකිල්ල:GHS inline
{{GHS inline|P220|P501}}සැකිල්ල:GHS inline
See also § List options.


Errors and warnings[සංස්කරණය]

Unknown phrase code
  • {{GHS phrases|H220|H999}}H220, H999[?]
Set id missing
Set id is entered as |setid=<H, P>, (default in {{H-phrases}}, {{P-phrases}}), or when |setid= is absent, is sought in the code list entered: H from {{GHS phrases|310|H341}}H310, H341
  • {{GHS phrases|321|310|H341}}H310, H321[?], H341
Could not find a set id
  • {{GHS phrases|302+312}}-- (missing prefix H/P may leave undecided results (ambiguity))


Overview[සංස්කරණය]

Some settings are available to present an overview of the phrases. They are article-ready.

Number of phrases[සංස්කරණය]

Complete list (table)[සංස්කරණය]

|setid=H, P. Required.
|title= Optional. Default is: see § Number of phrases.
|state=collapsed Optional. Default is: uncollapsed.

Tracking[සංස්කරණය]

Help/documentation page: Template:GHS phrases
ප්‍රවර්ගය:GHS errors (4)
ප්‍රවර්ගය:GHS warnings (0)

Template data[සංස්කරණය]

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. Click here to see a monthly parameter usage report for this template based on this TemplateData.

TemplateData for GHS phrases

Template Data

Formats and presents predefined GHS hazard statements.

Template parameters

ParameterDescriptionTypeStatus
11

Phrase code

Example
H220, P431
Stringsuggested
22

no description

Unknownoptional
33

no description

Unknownoptional
44

no description

Unknownoptional
55

no description

Unknownoptional
66

no description

Unknownoptional
77

no description

Unknownoptional
88

no description

Unknownoptional
99

no description

Unknownoptional
1010

no description

Unknownoptional
set IDsetid

Defined plain numbers to be "H" or "P"; better add prefix to number: "H220"

Suggested values
H, P
Stringoptional
Omit Rulesomit

Apply Omit Rules like "omit (remove) P203 when P103 is present"

Default
true
Example
yes
Booleanoptional
List typelisttype

List format of the result

Suggested values
abbr, inline, bulleted, unbulleted, horizontal, ordered, horizontal ordered
Default
abbr
Example
listtype=bulleted
Stringoptional

See also[සංස්කරණය]

Development[සංස්කරණය]

Errors and warnings (newdoc)[සංස්කරණය]

Errors
All errors show a preview-message in Preview.
Categorisation is in ප්‍රවර්ගය:GHS errors (4), articles only (mainspace).
  • |setid=H, P, <blank> missing
  • |setid=XYZ not recognised
When entered: in {{GHS phrases}}, a setid check is enforced. Is present by default in {{H-phrases}} etc.
When setid is missing, any first setid in the codes-list is used. So |310 |3220 |H333H.
This also occurs when setid=H and a P-phrase is entered.
In certain listings, like {{GHS phrases/list all}}, a blank setid returns the full list (all H- and P-phrases). No error.
Catsort: H, P,
  • Phase codes that are not in the list (like |H999) generate an error → error
  • Parameter unknown |foo=: catsort under U
Warnings
All warnings show a preview-message in Preview.
Categorisation in ප්‍රවර්ගය:GHS warnings (0), articles only (mainspace).
  • When § Omit Rules is applied, a warning is made mentioning the two involved phrase codes. Catsort=O
  • When § Redundancy is present, a warning is made mentioning the involved phrase code. Catsort=D

dev links[සංස්කරණය]

Subtempaltes
Source: සැකිල්ල:GHS2021
Chembox
Definition of phrases

Developments[සංස්කරණය]

ප්‍රවර්ගය:Chembox templates (46)
ප්‍රවර්ගය:Chembox tracking categories (8)
| GHSPictograms = 
| GHSSignalWord = 
| HPhrases      = {{HPhrases|}}
| PPhrases      = {{PPhrases|}}
| GHS_ref       = 

සැකිල්ල:GHS pictograms overview

References


"https://si.wikipedia.org/w/index.php?title=සැකිල්ල:GHS_phrases/doc&oldid=565867" වෙතින් සම්ප්‍රවේශනය කෙරිණි