සැකිල්ල:H-phrases
මෙම සැකිල්ල ලුවා භාවිතා කරයි: |
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.[1]
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 (0), ප්රවර්ගය:GHS warnings (0).
Usage
[සංස්කරණය]- While one can use {{GHS phrases}} stand-alone in text, more common use is in {{Chembox}}, section
Chembox Hazards
:
Hazards | |
---|---|
GHS labelling: | |
H301, H351, H372, H410 | |
P201, P202, P260, P264, P270, P273, P281, P301+P310, P308+P313, P314, P321, P330, P391, P405, P501 |
{{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
[සංස්කරණය]- {{GHS phrases/inline}} -- inline, with full phrase text
- {{GHS phrases/list_all}} -- table, by
|setid=H, P
- {{GHS phrases/number of phrases}} -- by
|setid=H, P
- {{GHS phrases/list omit rules}} -- table, documentation
|list=
-- See § List options
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
- 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_ordered
- 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.
- 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
P-phrases
[සංස්කරණය]{{P-phrases|P101|P263}}
→ P101, P263{{P-phrases|P306+P360}}
→ P306+P360
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
- Set id is entered as
{{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
[සංස්කරණය]{{GHS phrases/number of phrases|setid=P}}
→ සැකිල්ල:GHS phrases/number of phrases{{GHS phrases/number of phrases|setid=H}}
→ සැකිල්ල:GHS phrases/number of phrases
Complete list (table)
[සංස්කරණය]- {{GHS phrases/list_all}} returns a wikitable that lists all available phrase codes per prefix.
|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 (0)
- ප්රවර්ගය:GHS warnings (0)
Template data
[සංස්කරණය]TemplateData for H-phrases
Template Data
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Formats and presents predefined GHS hazard statements.
|
See also
[සංස්කරණය]Development
[සංස්කරණය]Errors and warnings (newdoc)
[සංස්කරණය]- Errors
- All errors show a preview-message in Preview.
- Categorisation is in ප්රවර්ගය:GHS errors (0), 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 |H333
→H
. - 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,
- When entered: in {{GHS phrases}}, a
- 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
- {{GHS phrases/list all}}
- {{GHS phrases/inline}}
- {{GHS phrases/number of phrases}}
- {{GHS phrases/list omit rules}} -- documentation
- {{GHS2021}} -- {{Cite web}}
- Source: "Globally Harmonized System of Classification and Labelling of Chemicals" (pdf). 2021. Annex 3: Codification of Statements and Pictograms (pp 268–385).
- Chembox
- Definition of phrases
Developments
[සංස්කරණය]- {{Chembox}} (doc/talk), {{Chembox Hazards}}, /full parameter list
- {{EUH-phrases}};
| GHSPictograms = | GHSSignalWord = | HPhrases = {{HPhrases|}} | PPhrases = {{PPhrases|}} | GHS_ref =
Pictogram | Code | Symbol description | Image link | |
---|---|---|---|---|
සැකිල්ල:GHS01 | GHS01 | {{GHS exploding bomb}} | Image:GHS-pictogram-explos.svg | Explosive |
GHS02 | {{GHS flame}} | Image:GHS-pictogram-flamme.svg | ||
සැකිල්ල:GHS03 | GHS03 | {{GHS flame over circle}} | Image:GHS-pictogram-rondflam.svg | |
GHS04 | {{GHS gas cylinder}} | Image:GHS-pictogram-bottle.svg | ||
GHS05 | {{GHS corrosion}} | Image:GHS-pictogram-acid.svg | Corrosive | |
GHS06 | {{GHS skull and crossbones}} | Image:GHS-pictogram-skull.svg | Accute Toxic | |
GHS07 | {{GHS exclamation mark}} | Image:GHS-pictogram-exclam.svg | Irritant | |
සැකිල්ල:GHS08 | GHS08 | {{GHS health hazard}} | Image:GHS-pictogram-silhouette.svg | Health Hazard |
සැකිල්ල:GHS09 | GHS09 | {{GHS environment}} | Image:GHS-pictogram-pollu.svg | Environment |
See also
- {{H-phrases}}
- {{P-phrases}}
- Cat:GHS templates
References
- ^ a b "Globally Harmonized System of Classification and Labelling of Chemicals" (pdf). 2021. Annex 3: Codification of Statements and Pictograms (pp 268–385).