Difference between revisions of "Template:GHS phrases format"

From blackwiki
Jump to navigation Jump to search
imported>Primefac
m (Protected "Template:GHS phrases format": semi-protecting highly-visible templates in response to recent template-space vandalism ([Edit=Require autoconfirmed or confirmed access] (indefinite) [Move=Require autoconfirmed or confirmed acc...)
imported>DePiep
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
<abbr class="abbr" title="{{{1}}}">{{{4|}}}{{{3}}}{{{2}}}</abbr><noinclude>
+
{{#iferror:{{{1|}}}
{{documentation}}
+
|<!--{{{4|}}}?-->{{{3}}}{{{2}}}{{#invoke:Preview warning|main|[[Template:GHS phrases format|GHS code]] unknown: {{{3}}}{{{2}}}}}{{main other|[[Category:GHS errors|{{{3|}}}{{{2}}}]]|[[:Category:GHS errors]]}}
</noinclude>
+
|{{#if:{{{1|}}}|<abbr class="abbr" title="{{{1}}}">{{{4|}}}{{{3}}}{{{2}}}</abbr>}}}}<!--
 +
 
 +
--><noinclude>{{documentation}}</noinclude>

Latest revision as of 14:19, 27 February 2020

50px Template documentation[view] [edit] [history] [purge]

Usage

Templates {{H-phrases|...}} return GHS-codes for predefined texts.

Examples:

{{H-phrases|200|241}}H200, H241
{{P-phrases|101|263}}Template:P-phrases
Predefined combinations are also possible:
{{P-phrases|306+360}}Template:P-phrases

Texts

For {{H-phrases}}, see {{H-phrases/text}}
For {{P-phrases}}, see {{P-phrases/text}}
Source: [1] Annex III


Tracking errors

Tracking category: Category:GHS errors (0)
Articles with a GHS error will show a warning when in Preview.