Template talk:Chembox/Archive 10
Poor current citation precedent: I will state again, strongly...what I did in an earlier, now archived discussion: The linking of the infobox as a whole to a list of citations is poor scholarly writing, and entirely un-encyclopedic. The fact that this list is poorly formatted, and a largely URL-only list—the Infobox references—further emphasizes this conclusion, but the key issue is with the lack of clear correspondence between facts and sources. There will be—as long this manner of citation remains in place—no way for a reader or editor to easily verify content, or to follow up WP reading with deeper research into the sources of WP content. The current manner in citing most infobox source material needs to fundamentally change, to a system where each and every infobox entry (field, datum, fact) is directly tied to its single source (in the case of a number), or small set of sources (in the case of more general facts). Alternatively, each infobox field could be listed at the page the reader is taken to by the Infobox references link, and alongside each field listed could be the single source form which the field is filled. If more than one sources are used to fill the field, the statement, "No single source; see article citations." would appear, and a citation at the article would then fully establish the fact's source. If a reader cannot go straight from a datum/field to a source, we revert to "just trust us" writing, which—however much a current consensus may be raised against this truth—is contrary to WP:VERIFY and WP:ORIGINAL RESEARCH. (If we send interested experts off, repeatedly, on mare's nest / rabbit trail searches that, for practical reasons cannot, in any reasonable length of an editor's time, yield the verified information, then the cited fact is reasonably termed unverifiable, must be seen as the original knowledge/work of an editor, and therefore is a policy violation.) Le Prof Leprof 7272 (talk) 20:46, 11 August 2015 (UTC)
Abitrary break #1You should have a look at Wikidata. Wikidata has sources for each statements, which should allow to generate proper linking to the source of informations if taken on Wikidata for the Infobox fields. TomT0m (talk) 10:34, 12 August 2015 (UTC)
The conflict there is the difference in what we codify in our verifiability policy and a deeper lying problem, people taking values from the internet and not telling where they got it. Some of the data is historical, predating the more firm parts of policies that would preclude how to include it. Let me be clear, it would be better if everything is properly sourced. But doing so takes a huge community effort, and not this discussion. The community has to do that by itself, setting up task forces for it is rather futile generally. Discussing that it needs to be done is similarly futile - we know it needs to be done and that is policy based, but actually doing it is a second thing. You could address the editors who are adding these numbers but who do not add proper attribution, but that is often resulting in bitey situations (editors rather walk away than doing the extra effort of adding the references ..). Wikipedia contains a lot of information that needs proper attribution, not only the data in the chemboxes. I mentioned somewhere a number for how many articles contain unreferenced statements (which includes chembox data) which is huge. The real number of unreferenced statements is even larger (many articles contain multiple statements; many statements are untagged), and that needs a lot of research. The community is working on that, but that process is going to take several years, if it ever is going to be completed. It is not that we are not trying to change what is written in our Wikipedia:General disclaimer - but it will still be true for a long time to come. Until then, it is better that we have (albeit with effort) verifiable information that is not attributed (and if you take the effort to actually verify, please include that reference for the future - I will try to do that as well), than no data at all. --Dirk Beetstra T C 03:53, 13 September 2015 (UTC) Off topic meta cherry picking subject
German drug lawI'm not sure if there's a "english speaking countries only" policy for the chembox template, but I thought asking won't hurt: What about making "legal_GER = Anlage I" (and Anlage II and III) link to Drugs controlled by the German Betäubungsmittelgesetz? Aethyta (talk) 20:29, 1 July 2015 (UTC)
The English Wikipedia has a funny problem here: it is used by many countries where English is not the primary language, just because the size of en.wikipedia (not necessarily true for de.wikipedia (they will cover most by themselves), but a small-language wikipedia might miss the article on obscure-drug X, whereas the English Wikipedia has. If that person is looking for info, they might turn to the English Wikipedia, and see what it says. Now, should en.wikipedia have the legal data for a drug in that country (it is certainly encyclopedic what country Y does with drug X)? --Dirk Beetstra T C 03:31, 3 September 2015 (UTC)
There is Drug prohibition law#List by jurisdiction of principal drug prohibition laws which has a list of countries for which we have drug law articles. It has around twenty countries and roughly half of those actually list the statuses of different substances. Sizeofint (talk) 18:56, 12 October 2015 (UTC)
ChemBox / Drugbox on Mobile viewDear all, I've not been involved much with the 'back end' of wikipedia. I also posted this over at Infobox_drug The problem I've found (as others may have too), is that on mobile view there is sometimes up to 6 screen full to scroll through (chembox / drugbox) before getting to the intro of the page. I would have thought that the intro should be first? Otherwise, if intro is not first for some reason, I wondered if there is a way to have the Chembox / drugbox collapse on mobile view? I searched the archives and found it's not collapsible but found no reason explaining why? I'm not even sure this is the right place to post this? Thanks, Spannell (talk) 12:35, 4 October 2015 (UTC)
Proposal: remove Jmol from ChemboxArticles that have Jmol in {{Chembox}}: [2] (8948; Jmol uses SMILES input always). Technically, Jmol reads a Now {{Chembox}} has data row Jmol that like this, eg for Kojic acid:
My point is that this external link does not add info. If we want to show an image, we should add it by commons. A minor point: Jmol is in section "Identifiers", but of course belongs in the top, "Images". However, today's {{Chembox}} section-structure does not allow SMILES input to be used in another section. (To show the Jmol link in the top images section, we'd have to repeat the SMILES input there). Once {{Chembox}} is in Lua, we could do that, but again why should we?
Jmol application in WP?
I have not done anything with Jmol for a long time, but the last thing I did was to help modify a stack of web pages to use Jsmol rather than Jmol. Jsmol uses Javascript rather than Java. At the time this was being strongly recommended as being much safer on web servers than Jmol. As anyone suggested using Jsmol rather than Jmol here on wikipedia? --Bduke (Discussion) 16:40, 3 November 2015 (UTC)
Chembox identifiersCurrently, the "Identifiers" subheading in the Chembox reads "IdentifiersCASnone=0". Can anyone find the issue and fix it? Thanks. ChemNerd (talk) 13:39, 21 December 2015 (UTC)
New GHS warning signs
The template currently lists old EU signs under the title "EU classification". I recommend e.g. adding the word old to it. (No need to remove it because the old chemical containers with the old signs stay with us for decades to come, so both are needed.) Thank you. Palosirkka (talk) 07:16, 18 October 2015 (UTC)
Chembox edits (30 October 2015)I have prepared multiple edits in the {{Chembox}} template set, in /sandbox pages. They are 'minor', as in: "won't change the reader's page negatively".
Check me, and the testcase like Template:Chembox/testcases (#1--#11; m=mobile). -DePiep (talk) 20:59, 30 October 2015 (UTC)
LD50: too much detailRecently we have added data row options like LD50 in the Hazards section. Example right (Note: it shows the sub-block 'lethal amounts' in 'Hazards').
I note that the LD50 data is way too big. It does not tell us anything. Of course the facts will be OK and sourced. But it is not encyclopedic. I'd expect a meaningful number (the useful outcome of these tests). I suggest we find a good comprising statement from these rat & rabbit details. I expect these details to be condensed into a single encylopedic statement. Tech stuff:: {{Chembox}} pages that have this data: [6] (ca. 800 P). Ping Emily Temple-Wood (NIOSH). -DePiep (talk) 20:34, 2 November 2015 (UTC)
The idea of collapsing content in the infobox came up at {{Drugbox}} a few months back (see Template talk:Infobox drug/Archive 13#Making the template more useful for people). Depiep argued then that the mobile view does not properly collapse. Has this been fixed yet? Sizeofint (talk) 17:00, 13 November 2015 (UTC)
Changes in Chembox (16 November 2015)Proposals. Will be prepared in sandboxes, testcases
InChI: let's use |
Chembox demo input
|
---|
| InChI1 = 1S/C5H9NO2/c7-5(8)4-2-1-3-6-4/h4,6H,1-3H2,(H,7,8) | InChIKey1 = ONIBWKKTOPOVIA-UHFFFAOYSA-N | InChI1_Comment = (''R'') | InChI2 = 1/C5H9NO2/c7-5(8)4-2-1-3-6-4/h4,6H,1-3H2,(H,7,8) | InChIKey2 = AZIBWKKTOPOXYZ-OHFFFAOABC-A | InChI2_Comment = (''S'') |
Identifiers | |
---|---|
| |
Identifiers | |
---|---|
| |
Side notes:
- The same change will be applied to
|SMILES_Comment=
: prefix not suffix. - The typographic indenting thing is apart: that is just a an improvement, not the topic here.
- In the future, we can have those variants entered only once (not for every identifier).
- In InChI and SMILES, I don't think free comment text (other than specifying the sub-substance) is useful or needed.
- More demos in this tespage.
- Some 8000 {{chembox}} articles have an InChI, but I expect only some hundred s to be affected.
-DePiep (talk) 19:20, 14 November 2015 (UTC)
- Preparing to go live. Testcases invalid now. -DePiep (talk) 15:22, 16 November 2015 (UTC)
- Done -DePiep (talk) 19:46, 16 November 2015 (UTC)
Drugbank and ATC positioning
Identifiers | |
---|---|
DrugBank | |
Pharmacology | |
A11DA01 (WHO) | |
Today, Drugbank and ATC code can be entered in two sections: Identifiers and Pharmacology. I propose to allow for one place only, mainly for consistency (regular showing). That would be Drugbank in Identifiers (419 P), and ATC code in Pharmacology (435 P). btw, ATC is not an identifier but a class. -DePiep (talk) 12:03, 20 November 2015 (UTC)
- Deprecated in section. Category:Chemical articles with unknown parameter in Chembox. No changes for the Reader so far. Some 600 P at first counting. -DePiep (talk) 00:53, 30 November 2015 (UTC)
- In the process, I order all sections in a single order (as numbered in template documentation). Eg, {{Chembox Thermochemistry}} is in
|Section5=
by standard. This makes {{Chembox}} presentation more stable over pages. Actually, this is what almost all infoboxes do. -DePiep (talk) 15:25, 30 November 2015 (UTC)- Done. Cleaned up. -DePiep (talk) 22:05, 30 November 2015 (UTC)
No CAS RN assigned
Discussion at Wikipedia_talk:WikiProject_Chemicals#CAS_RN_of_1P-LSD. -DePiep (talk) 14:02, 16 November 2015 (UTC)
- Done. Options now in {{Chembox}}:
|CASNo = none
,|ChemSpiderID = none
,|ATCprefix = none
. - -DePiep (talk) 01:14, 5 December 2015 (UTC)
Let's add "E number"
Propose to add data row E number. See anoxomer. -DePiep (talk) 23:06, 28 November 2015 (UTC)
- Seems reasonable. Sizeofint (talk) 19:01, 30 November 2015 (UTC)
- Done.
|E_number=
and|E_number_Comment=
. Do not confuse with|EC_Number=
. -DePiep (talk) 01:05, 5 December 2015 (UTC)- And remember its often used as a synonym too (i.e. OtherNames). Christian75 (talk) 10:03, 5 December 2015 (UTC)
- Done.
- 304 {{Chembox}} articles:
Chembox articles mentioned in page E number | |||||
---|---|---|---|---|---|
Title | Page ID | Namespace | Size (bytes) | Last change | Namespace name |
2-Phenylphenol | 4295240 | 0 | 5727 | 20151205131058 | (Article) |
3-MCPD | 19808050 | 0 | 12088 | 20151205131058 | (Article) |
4-Hydroxynonenal | 1235987 | 0 | 15224 | 20151205131058 | (Article) |
Acesulfame potassium | 323114 | 0 | 14767 | 20151212001601 | (Article) |
Acetate | 194637 | 0 | 9193 | 20151205131058 | (Article) |
Acetic acid | 19916594 | 0 | 55356 | 20151205131058 | (Article) |
Acetone peroxide | 578412 | 0 | 21890 | 20151205131058 | (Article) |
Acetylated distarch adipate | 18072232 | 0 | 1300 | 20151205005928 | (Article) |
Acrylamide | 56239 | 0 | 24575 | 20151205131058 | (Article) |
Adipic acid | 1226674 | 0 | 10641 | 20151205131058 | (Article) |
Aldicarb | 2021147 | 0 | 6966 | 20151205131058 | (Article) |
Alginic acid | 2251570 | 0 | 8542 | 20151205131058 | (Article) |
Alitame | 1380687 | 0 | 3763 | 20151205131058 | (Article) |
Alkannin | 29462264 | 0 | 6694 | 20151205131058 | (Article) |
Allura Red AC | 3246442 | 0 | 9299 | 20151205131058 | (Article) |
Alpha-Tocopherol | 5281357 | 0 | 4984 | 20151205131058 | (Article) |
Aluminium silicate | 4541160 | 0 | 3628 | 20151205005928 | (Article) |
Amaranth (dye) | 3249567 | 0 | 8855 | 20151205131058 | (Article) |
Ammonium | 69079 | 0 | 9356 | 20151205131058 | (Article) |
Ammonium acetate | 3167641 | 0 | 6868 | 20151205131058 | (Article) |
Ammonium adipate | 14263768 | 0 | 1541 | 20151205005928 | (Article) |
Ammonium bicarbonate | 402188 | 0 | 10806 | 20151205131058 | (Article) |
Ammonium carbonate | 1156934 | 0 | 5185 | 20151205131058 | (Article) |
Ammonium chloride | 293336 | 0 | 14006 | 20151211235859 | (Article) |
Ammonium ferric citrate | 5381102 | 0 | 3905 | 20151207084408 | (Article) |
Ammonium fumarate | 14263779 | 0 | 1573 | 20151205005928 | (Article) |
Ammonium hydroxide | 594615 | 0 | 10558 | 20151210162442 | (Article) |
Ammonium lactate | 14263744 | 0 | 3255 | 20151205131058 | (Article) |
Ammonium malate | 14263749 | 0 | 1447 | 20151205005928 | (Article) |
Ammonium phosphate | 2088157 | 0 | 3171 | 20151205131058 | (Article) |
Anoxomer | 20056598 | 0 | 1656 | 20151205131058 | (Article) |
Ascorbic acid | 2268 | 0 | 32171 | 20151205131058 | (Article) |
Ascorbyl palmitate | 3687278 | 0 | 3678 | 20151205131058 | (Article) |
Ascorbyl stearate | 3687287 | 0 | 2750 | 20151205131058 | (Article) |
Aspartame | 2752 | 0 | 55641 | 20151212020348 | (Article) |
Aspartame-acesulfame salt | 13834635 | 0 | 3772 | 20151205131058 | (Article) |
Astaxanthin | 1007331 | 0 | 28571 | 20151205131058 | (Article) |
Avoparcin | 37064534 | 0 | 6999 | 20151205131058 | (Article) |
Azodicarbonamide | 2904705 | 0 | 8415 | 20151208002632 | (Article) |
Benzoic acid | 4106 | 0 | 27061 | 20151205131058 | (Article) |
Benzoyl peroxide | 850859 | 0 | 12978 | 20151205131058 | (Article) |
Benzyl alcohol | 874812 | 0 | 9468 | 20151205131058 | (Article) |
Betanin | 3292742 | 0 | 4755 | 20151205131058 | (Article) |
Biphenyl | 1730303 | 0 | 8985 | 20151205131058 | (Article) |
Bisphenol A | 1001430 | 0 | 183345 | 20151210183204 | (Article) |
Bixin | 13439321 | 0 | 3066 | 20151205005928 | (Article) |
Boric acid | 65546 | 0 | 31414 | 20151205131058 | (Article) |
Brilliant Black BN | 3251234 | 0 | 2823 | 20151205005928 | (Article) |
Brilliant Blue FCF | 1922808 | 0 | 8978 | 20151209142210 | (Article) |
Brown HT | 5316444 | 0 | 2463 | 20151205005928 | (Article) |
Butane | 25432202 | 0 | 13000 | 20151209190148 | (Article) |
Butylated hydroxyanisole | 84809 | 0 | 5745 | 20151205131058 | (Article) |
Butylated hydroxytoluene | 84808 | 0 | 14846 | 20151207165716 | (Article) |
Calcium acetate | 2988583 | 0 | 6525 | 20151205131058 | (Article) |
Calcium alginate | 15287953 | 0 | 4474 | 20151206205050 | (Article) |
Calcium ascorbate | 4251612 | 0 | 2872 | 20151205131058 | (Article) |
Calcium benzoate | 3773148 | 0 | 2537 | 20151205131058 | (Article) |
Calcium bromate | 24045080 | 0 | 2841 | 20151205005928 | (Article) |
Calcium carbonate | 44731 | 0 | 50237 | 20151208021057 | (Article) |
Calcium chloride | 349627 | 0 | 22505 | 20151211200149 | (Article) |
Calcium citrate | 683071 | 0 | 7218 | 20151205131058 | (Article) |
Calcium diglutamate | 5305779 | 0 | 2786 | 20151205131058 | (Article) |
Calcium formate | 10107063 | 0 | 2576 | 20151205131058 | (Article) |
Calcium fumarate | 5305762 | 0 | 1174 | 20151205005928 | (Article) |
Calcium gluconate | 6146106 | 0 | 9965 | 20151205131058 | (Article) |
Calcium glycerylphosphate | 13519436 | 0 | 1413 | 20151205005928 | (Article) |
Calcium guanylate | 17907530 | 0 | 1501 | 20151205005928 | (Article) |
Calcium hydroxide | 386748 | 0 | 14491 | 20151205131058 | (Article) |
Calcium inosinate | 11816456 | 0 | 1725 | 20151205005928 | (Article) |
Calcium iodate | 14345569 | 0 | 3593 | 20151205131058 | (Article) |
Calcium lactate | 2598849 | 0 | 4623 | 20151205131058 | (Article) |
Calcium malate | 14263763 | 0 | 1441 | 20151205005928 | (Article) |
Calcium oxide | 147536 | 0 | 11429 | 20151206122140 | (Article) |
Calcium peroxide | 763076 | 0 | 4078 | 20151205131058 | (Article) |
Calcium silicate | 479575 | 0 | 9446 | 20151205131058 | (Article) |
Calcium sorbate | 3773651 | 0 | 1148 | 20151205005928 | (Article) |
Calcium stearate | 10933369 | 0 | 4145 | 20151205005928 | (Article) |
Calcium stearoyl-2-lactylate | 33095405 | 0 | 12161 | 20151205131058 | (Article) |
Calcium tartrate | 7056318 | 0 | 2601 | 20151205005928 | (Article) |
Canthaxanthin | 1183053 | 0 | 15013 | 20151205131058 | (Article) |
Carbon dioxide | 5906 | 0 | 91560 | 20151211120655 | (Article) |
Carbonate | 5912 | 0 | 11466 | 20151206121833 | (Article) |
Carboxymethyl cellulose | 2800534 | 0 | 10291 | 20151205131058 | (Article) |
Carminic acid | 1625447 | 0 | 3498 | 20151205131058 | (Article) |
Cellulose | 6911 | 0 | 34597 | 20151205131058 | (Article) |
Chloride | 66269 | 0 | 9861 | 20151205131058 | (Article) |
Chlorine dioxide | 458673 | 0 | 25366 | 20151205131058 | (Article) |
Chloropentafluoroethane | 15118432 | 0 | 2712 | 20151205131058 | (Article) |
Chlorophyllin | 6932580 | 0 | 7135 | 20151205131058 | (Article) |
Chlorpyrifos | 816088 | 0 | 70863 | 20151205131058 | (Article) |
Cholic acid | 2984470 | 0 | 6061 | 20151205131058 | (Article) |
Choline | 158799 | 0 | 74827 | 20151210005659 | (Article) |
Citranaxanthin | 16220399 | 0 | 1784 | 20151205005928 | (Article) |
Citric acid | 54536 | 0 | 25416 | 20151211140112 | (Article) |
Citrus Red 2 | 3249172 | 0 | 3169 | 20151206144110 | (Article) |
Cryptoxanthin | 8720014 | 0 | 5611 | 20151205131058 | (Article) |
Curcumin | 321668 | 0 | 15270 | 20151205131058 | (Article) |
Curdlan | 12502353 | 0 | 3828 | 20151205131058 | (Article) |
Cyanide | 5910 | 0 | 31076 | 20151211171431 | (Article) |
Cystine | 103071 | 0 | 5977 | 20151205131058 | (Article) |
DDT | 8494 | 0 | 90982 | 20151211170857 | (Article) |
Dehydroacetic acid | 14263615 | 0 | 2741 | 20151205005928 | (Article) |
Delta-Tocopherol | 9904113 | 0 | 2116 | 20151205005928 | (Article) |
Dextrin | 539939 | 0 | 6400 | 20151205005928 | (Article) |
Diammonium phosphate | 1722958 | 0 | 6476 | 20151205131058 | (Article) |
Dicalcium citrate | 8119553 | 0 | 1798 | 20151212050904 | (Article) |
Dicalcium phosphate | 3277656 | 0 | 9079 | 20151205131058 | (Article) |
Dichlorodifluoromethane | 1735240 | 0 | 8227 | 20151205131058 | (Article) |
Dimagnesium phosphate | 16142733 | 0 | 1616 | 20151205005928 | (Article) |
Dimethyl dicarbonate | 4190859 | 0 | 5683 | 20151207231500 | (Article) |
Dipotassium guanylate | 17907720 | 0 | 1579 | 20151209140133 | (Article) |
Dipotassium phosphate | 5390895 | 0 | 3873 | 20151205131058 | (Article) |
Disodium citrate | 8119545 | 0 | 2016 | 20151212033024 | (Article) |
Disodium guanylate | 901205 | 0 | 3203 | 20151207121831 | (Article) |
Disodium inosinate | 215055 | 0 | 5460 | 20151206185110 | (Article) |
Disodium phosphate | 9646527 | 0 | 5448 | 20151205005928 | (Article) |
Dodecyl gallate | 16277625 | 0 | 1766 | 20151205005928 | (Article) |
Erythorbic acid | 1664546 | 0 | 5371 | 20151205131058 | (Article) |
Erythritol | 668700 | 0 | 12394 | 20151205131058 | (Article) |
Erythrosine | 2119576 | 0 | 6624 | 20151205131058 | (Article) |
Ethanol | 10048 | 0 | 110081 | 20151211132759 | (Article) |
Ethoxyquin | 3511848 | 0 | 4688 | 20151205131058 | (Article) |
Ethyl acetate | 1303134 | 0 | 13378 | 20151205131058 | (Article) |
Ethyl cellulose | 19804030 | 0 | 1306 | 20151205005928 | (Article) |
Ethyl gallate | 20110553 | 0 | 3149 | 20151205131058 | (Article) |
Ethyl methyl cellulose | 44542513 | 0 | 1650 | 20151205005928 | (Article) |
Ethylenediaminetetraacetic acid | 182451 | 0 | 33576 | 20151205131058 | (Article) |
Ethylparaben | 1730743 | 0 | 2558 | 20151205005928 | (Article) |
Fast Green FCF | 3246627 | 0 | 4110 | 20151205131058 | (Article) |
Fast Yellow AB | 544013 | 0 | 1546 | 20151205005928 | (Article) |
Flavoxanthin | 16217389 | 0 | 2344 | 20151205131058 | (Article) |
Formaldehyde | 63847 | 0 | 64309 | 20151205131058 | (Article) |
Formic acid | 66284 | 0 | 28069 | 20151211135952 | (Article) |
Fumaric acid | 839112 | 0 | 8882 | 20151208111910 | (Article) |
Gallic acid | 291767 | 0 | 20728 | 20151205131058 | (Article) |
Gamma-Tocopherol | 9904110 | 0 | 1800 | 20151205005928 | (Article) |
Gluconic acid | 1214737 | 0 | 6669 | 20151205131058 | (Article) |
Glucono delta-lactone | 1000005 | 0 | 5046 | 20151205131058 | (Article) |
Glutamic acid | 63541 | 0 | 19963 | 20151212034832 | (Article) |
Glycerol | 172732 | 0 | 28446 | 20151205131058 | (Article) |
Glycine | 11835 | 0 | 24509 | 20151212035619 | (Article) |
Green S | 3250931 | 0 | 4021 | 20151205131058 | (Article) |
Guar gum | 43001 | 0 | 19463 | 20151205131058 | (Article) |
Hydrochloric acid | 19916686 | 0 | 34416 | 20151210073301 | (Article) |
Hydroxide | 13711 | 0 | 39808 | 20151206123519 | (Article) |
Hydroxyethyl cellulose | 19919148 | 0 | 1661 | 20151205005928 | (Article) |
Hydroxypropyl cellulose | 2360987 | 0 | 5645 | 20151205131058 | (Article) |
Hypromellose | 5775877 | 0 | 11898 | 20151205131058 | (Article) |
Indigo carmine | 5854119 | 0 | 5519 | 20151205131058 | (Article) |
Inosinic acid | 1862934 | 0 | 7755 | 20151205131058 | (Article) |
Isobutane | 173305 | 0 | 10800 | 20151205131058 | (Article) |
Isomalt | 2876061 | 0 | 5208 | 20151205131058 | (Article) |
Lactic acid | 172474 | 0 | 26647 | 20151206101858 | (Article) |
Lactitol | 1396355 | 0 | 4969 | 20151205131058 | (Article) |
Lithol Rubine BK | 3251788 | 0 | 2700 | 20151205005928 | (Article) |
Lutein | 2232092 | 0 | 20149 | 20151205131058 | (Article) |
Lycopene | 18735 | 0 | 21138 | 20151212011132 | (Article) |
Magnesium bicarbonate | 37666455 | 0 | 2395 | 20151205131058 | (Article) |
Magnesium carbonate | 383220 | 0 | 11948 | 20151205131058 | (Article) |
Magnesium chloride | 562007 | 0 | 28641 | 20151205131058 | (Article) |
Magnesium citrate | 9339120 | 0 | 8575 | 20151209234233 | (Article) |
Magnesium diglutamate | 5305786 | 0 | 1799 | 20151205005928 | (Article) |
Magnesium gluconate | 12919700 | 0 | 2798 | 20151205131058 | (Article) |
Magnesium hydroxide | 193305 | 0 | 16050 | 20151212122907 | (Article) |
Magnesium oxide | 162269 | 0 | 17150 | 20151207195052 | (Article) |
Magnesium stearate | 3137085 | 0 | 7056 | 20151205131058 | (Article) |
Magnesium trisilicate | 10014557 | 0 | 3319 | 20151205131058 | (Article) |
Malathion | 745387 | 0 | 18243 | 20151205131058 | (Article) |
Malic acid | 243074 | 0 | 10449 | 20151206122723 | (Article) |
Maltitol | 2243761 | 0 | 6191 | 20151205131058 | (Article) |
Mannitol | 1015846 | 0 | 22872 | 20151208163521 | (Article) |
Melamine | 553468 | 0 | 51270 | 20151205131058 | (Article) |
Methamidophos | 3586545 | 0 | 4442 | 20151208225652 | (Article) |
Methyl cellulose | 3572030 | 0 | 12620 | 20151206170743 | (Article) |
Methylparaben | 2939751 | 0 | 6521 | 20151205131058 | (Article) |
Monoammonium glutamate | 5305784 | 0 | 1379 | 20151205005928 | (Article) |
Monocalcium citrate | 8119550 | 0 | 1399 | 20151212050944 | (Article) |
Monocalcium phosphate | 2699386 | 0 | 5832 | 20151205005928 | (Article) |
Monomagnesium phosphate | 16142729 | 0 | 1369 | 20151205005928 | (Article) |
Monopotassium glutamate | 5305778 | 0 | 1542 | 20151205005928 | (Article) |
Monopotassium phosphate | 1720307 | 0 | 7220 | 20151205131058 | (Article) |
Monosodium citrate | 8119544 | 0 | 2149 | 20151206102239 | (Article) |
Monosodium glutamate | 62289 | 0 | 33541 | 20151209142009 | (Article) |
Monosodium phosphate | 11273128 | 0 | 3583 | 20151205005928 | (Article) |
Monosodium tartrate | 23875274 | 0 | 1627 | 20151205005928 | (Article) |
Montanic acid | 30258850 | 0 | 1763 | 20151205005928 | (Article) |
Natamycin | 1115956 | 0 | 8328 | 20151205131058 | (Article) |
Neotame | 686253 | 0 | 7261 | 20151205131058 | (Article) |
Nisin | 476242 | 0 | 8206 | 20151205005928 | (Article) |
Nitrate | 21497 | 0 | 19133 | 20151212000409 | (Article) |
Nitrosyl chloride | 6190362 | 0 | 7560 | 20151205131058 | (Article) |
Nitrous oxide | 37441 | 0 | 85207 | 20151206154044 | (Article) |
Octafluorocyclobutane | 2882491 | 0 | 3356 | 20151205131058 | (Article) |
Octyl gallate | 16277624 | 0 | 2586 | 20151205005928 | (Article) |
Orange GGN | 544063 | 0 | 2286 | 20151205005928 | (Article) |
Paprika oleoresin | 13440061 | 0 | 3731 | 20151205131058 | (Article) |
Patent Blue V | 2998764 | 0 | 5115 | 20151205131058 | (Article) |
Phenol | 24085 | 0 | 35482 | 20151207190143 | (Article) |
Phosphate | 23690 | 0 | 21336 | 20151212041425 | (Article) |
Phosphated distarch phosphate | 3273552 | 0 | 1412 | 20151205005928 | (Article) |
Phytic acid | 1479978 | 0 | 19777 | 20151205131058 | (Article) |
Polydimethylsiloxane | 1151127 | 0 | 24698 | 20151205131058 | (Article) |
Polyethylene | 77385 | 0 | 32538 | 20151208060010 | (Article) |
Polyethylene glycol | 147203 | 0 | 27336 | 20151205131058 | (Article) |
Polyglycerol polyricinoleate | 5648111 | 0 | 6938 | 20151205131058 | (Article) |
Polysorbate 20 | 3752212 | 0 | 5931 | 20151205131058 | (Article) |
Polysorbate 80 | 3587790 | 0 | 11057 | 20151205131058 | (Article) |
Polyvinyl alcohol | 1187691 | 0 | 8899 | 20151205005928 | (Article) |
Polyvinylpolypyrrolidone | 2940193 | 0 | 2788 | 20151205005928 | (Article) |
Polyvinylpyrrolidone | 48786 | 0 | 12804 | 20151205131058 | (Article) |
Ponceau 4R | 2428392 | 0 | 8432 | 20151205131058 | (Article) |
Ponceau 6R | 3250045 | 0 | 1523 | 20151205005928 | (Article) |
Potassium acetate | 5063242 | 0 | 7326 | 20151205131058 | (Article) |
Potassium adipate | 5286988 | 0 | 1104 | 20151205005928 | (Article) |
Potassium ascorbate | 4251643 | 0 | 1979 | 20151205131058 | (Article) |
Potassium benzoate | 703788 | 0 | 6559 | 20151211174939 | (Article) |
Potassium bicarbonate | 238116 | 0 | 6928 | 20151205131058 | (Article) |
Potassium bromate | 2597290 | 0 | 6717 | 20151205131058 | (Article) |
Potassium carbonate | 238122 | 0 | 6202 | 20151206142744 | (Article) |
Potassium chloride | 159292 | 0 | 17598 | 20151206122110 | (Article) |
Potassium citrate | 2044863 | 0 | 5375 | 20151206100055 | (Article) |
Potassium ferrocyanide | 42079 | 0 | 7917 | 20151205131058 | (Article) |
Potassium fumarate | 5305765 | 0 | 1552 | 20151205005928 | (Article) |
Potassium hydroxide | 235343 | 0 | 17939 | 20151205131058 | (Article) |
Potassium iodate | 5063340 | 0 | 7573 | 20151205131058 | (Article) |
Potassium lactate | 14263742 | 0 | 2238 | 20151205005928 | (Article) |
Potassium malate | 14263754 | 0 | 1742 | 20151205005928 | (Article) |
Potassium nitrate | 64212 | 0 | 29962 | 20151212024501 | (Article) |
Potassium nitrite | 2106024 | 0 | 10265 | 20151205131058 | (Article) |
Potassium silicate | 2642633 | 0 | 3621 | 20151205131058 | (Article) |
Potassium sorbate | 2904331 | 0 | 11825 | 20151205131058 | (Article) |
Propane | 23643 | 0 | 33088 | 20151209155444 | (Article) |
Propionate | 2033739 | 0 | 2303 | 20151205131058 | (Article) |
Propionic acid | 316076 | 0 | 16269 | 20151211235907 | (Article) |
Propyl gallate | 3818310 | 0 | 3558 | 20151205131058 | (Article) |
Propylene glycol | 228900 | 0 | 25891 | 20151205131058 | (Article) |
Propylene glycol alginate | 13411926 | 0 | 1768 | 20151205005928 | (Article) |
Propylparaben | 2994849 | 0 | 2993 | 20151205131058 | (Article) |
Pullulan | 1216397 | 0 | 2619 | 20151205131058 | (Article) |
Quinoline Yellow WS | 219340 | 0 | 8268 | 20151205131058 | (Article) |
Red 2G | 3250408 | 0 | 5757 | 20151205131058 | (Article) |
Rhodoxanthin | 16220413 | 0 | 2948 | 20151205131058 | (Article) |
Riboflavin | 26229 | 0 | 34031 | 20151205131058 | (Article) |
Rubixanthin | 16217417 | 0 | 2571 | 20151205131058 | (Article) |
Saccharin | 323043 | 0 | 21596 | 20151208202057 | (Article) |
Salinomycin | 21103848 | 0 | 8057 | 20151205131058 | (Article) |
Scarlet GN | 3249951 | 0 | 2771 | 20151205131058 | (Article) |
Silicon dioxide | 43710 | 0 | 44717 | 20151205131058 | (Article) |
Sodium acetate | 1488243 | 0 | 10595 | 20151205214748 | (Article) |
Sodium adipate | 5286993 | 0 | 1530 | 20151205005928 | (Article) |
Sodium aluminium phosphate | 31099547 | 0 | 3474 | 20151205131058 | (Article) |
Sodium aluminosilicate | 2381409 | 0 | 4305 | 20151206021611 | (Article) |
Sodium ascorbate | 4251626 | 0 | 4777 | 20151205131058 | (Article) |
Sodium benzoate | 901291 | 0 | 17187 | 20151211090634 | (Article) |
Sodium bicarbonate | 155725 | 0 | 35892 | 20151206121631 | (Article) |
Sodium carbonate | 155726 | 0 | 29798 | 20151208034938 | (Article) |
Sodium cyclamate | 249936 | 0 | 12103 | 20151205131058 | (Article) |
Sodium dehydroacetate | 14263672 | 0 | 1073 | 20151205005928 | (Article) |
Sodium diacetate | 19811121 | 0 | 2398 | 20151205005928 | (Article) |
Sodium erythorbate | 2430754 | 0 | 4906 | 20151205131058 | (Article) |
Sodium ferrocyanide | 13406903 | 0 | 4563 | 20151207175930 | (Article) |
Sodium formate | 5064022 | 0 | 4371 | 20151205131058 | (Article) |
Sodium fumarate | 5305766 | 0 | 1755 | 20151205005928 | (Article) |
Sodium gluconate | 14263798 | 0 | 2127 | 20151205005928 | (Article) |
Sodium hydroxide | 57877 | 0 | 31763 | 20151205131058 | (Article) |
Sodium lactate | 14263740 | 0 | 7442 | 20151205131058 | (Article) |
Sodium malate | 14263752 | 0 | 1496 | 20151205005928 | (Article) |
Sodium nitrate | 200310 | 0 | 16303 | 20151205131058 | (Article) |
Sodium nitrite | 407615 | 0 | 27612 | 20151205131058 | (Article) |
Sodium orthophenyl phenol | 1730751 | 0 | 1911 | 20151205005928 | (Article) |
Sodium propionate | 2249324 | 0 | 3178 | 20151205131058 | (Article) |
Sodium sesquicarbonate | 12912325 | 0 | 3368 | 20151205005928 | (Article) |
Sodium silicate | 286245 | 0 | 31424 | 20151211072448 | (Article) |
Sodium sorbate | 2904324 | 0 | 1664 | 20151205005928 | (Article) |
Sodium tartrate | 4235196 | 0 | 3562 | 20151205131058 | (Article) |
Sodium triphosphate | 901091 | 0 | 9889 | 20151205131058 | (Article) |
Sorbic acid | 1204482 | 0 | 5905 | 20151205131058 | (Article) |
Sorbitan monolaurate | 39940098 | 0 | 1748 | 20151208234906 | (Article) |
Sorbitan monostearate | 5170103 | 0 | 3377 | 20151205131058 | (Article) |
Sorbitan tristearate | 12249227 | 0 | 2017 | 20151205005928 | (Article) |
Sorbitol | 56360 | 0 | 18090 | 20151207065132 | (Article) |
Succinic acid | 97039 | 0 | 11183 | 20151208191424 | (Article) |
Sucralose | 48463 | 0 | 26183 | 20151205131058 | (Article) |
Sucrose acetate isobutyrate | 11798101 | 0 | 2250 | 20151205005928 | (Article) |
Sudan I | 1522225 | 0 | 5628 | 20151205131058 | (Article) |
Sunset Yellow FCF | 544050 | 0 | 10549 | 20151205131058 | (Article) |
Tartaric acid | 76992 | 0 | 18469 | 20151206123244 | (Article) |
Tartrate | 2908856 | 0 | 4218 | 20151205131058 | (Article) |
Tartrazine | 458008 | 0 | 21921 | 20151205131058 | (Article) |
Tert-Butylhydroquinone | 5316962 | 0 | 7072 | 20151205131058 | (Article) |
Tin(II) chloride | 2020855 | 0 | 13229 | 20151205131058 | (Article) |
Titanium dioxide | 219713 | 0 | 46833 | 20151205131058 | (Article) |
Triacetin | 2988483 | 0 | 7104 | 20151205131058 | (Article) |
Tricalcium phosphate | 2655103 | 0 | 18114 | 20151205131058 | (Article) |
Triethyl citrate | 17076391 | 0 | 2763 | 20151205131058 | (Article) |
Tripotassium phosphate | 15382920 | 0 | 2640 | 20151205131058 | (Article) |
Trisodium citrate | 683065 | 0 | 5810 | 20151206103521 | (Article) |
Trisodium phosphate | 309620 | 0 | 12803 | 20151205131058 | (Article) |
Violaxanthin | 16217406 | 0 | 2706 | 20151205131058 | (Article) |
Xanthan gum | 596963 | 0 | 13373 | 20151209063806 | (Article) |
Xylitol | 220432 | 0 | 26868 | 20151205131058 | (Article) |
Yellow 2G | 544025 | 0 | 3008 | 20151205005928 | (Article) |
Zeaxanthin | 2752172 | 0 | 13631 | 20151212083843 | (Article) |
Zinc acetate | 2261920 | 0 | 9025 | 20151208233657 | (Article) |
Maintenance categories regrouping
I have created:
- Category:CAS Registry Number maintenance categories
- Category:ChemSpider maintenance categories
- Category:ATC code maintenance categories
They only contain subcategories, not articles.
This is to create more overview for these topics, especially in Category:Infobox drug maintenance categories and Category:Chembox maintenance categories. Now it is organized by topic (such as CAS RN), not by maintaining template like {{Drugbox}}), not by issue ('missing', 'not assigned'). Probably more identifiers to follow. -DePiep (talk) 16:20, 13 December 2015 (UTC)
Chembox changes (15 December 2015)
Preparing:
- Moved InChI and SMILES are to be positioned at teh end of their Identifiers box. This is because they are non-human readible (machine only by intention), so they should not disturb the regular identifiers listing.
- For
|InChI=
and|SMILES=
(+ all their indexes & supports), the font-size and line-height are reduced. All in all they take less vertical space (minus 20% in situations). - Both changes are especially better in mobile view, which does not collapse their boxes (no show/hide). So for the reader this takes less vertical space.
- PubChem external link will be updated into https and directly to the right target page (by request). -DePiep (talk) 18:52, 15 December 2015 (UTC)
Chembox changes, chemical formula (17 December 2015)
Preparing: improved presentation of the chemical formula (section Properties). See also Testcases9.
- Add
|Formula_Charge=
to add charge. Will show after any number, not exactly above: O42+ - Into empirical form (IUPAC Red Book 2005, section 4.2)
- Order of elements is full Hill notation: when any C present -> CH in front, then other symbols by abc. When no C present: all elements by abc. (bug fix) (Red Book)
- Not changed:
- - Applied rule 'no space before a ref'. ie, no space between formula and ref note: O4[1]
- - Molar mass calculation
- - Showing input for
|Formula=
(will show unedited ie as a fixed text string)
-DePiep (talk) 13:36, 17 December 2015 (UTC)
- Done Same subtemplate used in {{Drugbox}}, see Drugbox talk. -DePiep (talk) 14:59, 17 December 2015 (UTC)
- I have no problem with the way its introduced in the chembox template (The Hill notation for formulas). But do not change the inorganic compounds articles to use the new system. There isnt consensus to use the Hill system for inorganic compounds. Christian75 (talk) 08:02, 18 December 2015 (UTC)
- Hill notation explicitly covers inorganics (as in "when no C is present ..."). And 'no consensus' (in RL I understand) does not say there is any other preferred standard in this. ie does not answer the need. btw, Hill was applied before too, but crippled (some C & H logic misfired). -DePiep (talk) 09:38, 18 December 2015 (UTC)
- The Red Book says (something like): "When no other rules are present, use Hill". Also: "it helps standardised searching and comparing". -DePiep (talk) 09:38, 18 December 2015 (UTC)
- No; there is no consensus on Wikipedia to use Hill notation for inorganic compounds in the infoboxes. Christian75 (talk) 10:08, 18 December 2015 (UTC)
- You mean to say that the no-consensus is at wp only, not in RL science? -DePiep (talk) 10:37, 18 December 2015 (UTC)
- Do you have any sources which say the chemical formula should be written with the Hill notation? (In real life (I guess) or at Wikipedia) Christian75 (talk) 10:47, 18 December 2015 (UTC)
- BTW. Does your proposal (at the top) say that you wanted to change the chemical formulas into empirical formulas? If so, it isnt very clear, and I oppose that. Christian75 (talk) 10:50, 18 December 2015 (UTC)
- I don't get where you are heading. What is unclear in my OP? What is the answer to my latest question? -DePiep (talk) 13:57, 18 December 2015 (UTC)
- Im saying that its fine you made the change, but the infoboxes in the articles for inorganic compounds (and some organic ionic compounds) shouldnt be changed too (like you did with a lot of drugs yesterday - which was fine - because it was for some big chunky organic compounds). An example: I think it would be a bad idea to replace |Formula = NaNO<sub>2</sub> with |Na = 1 |N = 1|O=2 for sodium nitrite because the formula would be NNAO
2 instead of NaNO
2 in the infobox. And at least it should be discussed first. And why do you want a reference? A reference for what? Christian75 (talk) 14:46, 18 December 2015 (UTC)
- Im saying that its fine you made the change, but the infoboxes in the articles for inorganic compounds (and some organic ionic compounds) shouldnt be changed too (like you did with a lot of drugs yesterday - which was fine - because it was for some big chunky organic compounds). An example: I think it would be a bad idea to replace |Formula = NaNO<sub>2</sub> with |Na = 1 |N = 1|O=2 for sodium nitrite because the formula would be NNAO
- I don't get where you are heading. What is unclear in my OP? What is the answer to my latest question? -DePiep (talk) 13:57, 18 December 2015 (UTC)
- You mean to say that the no-consensus is at wp only, not in RL science? -DePiep (talk) 10:37, 18 December 2015 (UTC)
- No; there is no consensus on Wikipedia to use Hill notation for inorganic compounds in the infoboxes. Christian75 (talk) 10:08, 18 December 2015 (UTC)
- The only changes are: 1. fix bug in composed chemical formula, and 2. add option charge= to chembox. The rest is unchanged.
- In writing empirical chemical formulae (those easiest ones), I still see no other standard than Hill aka IUPAC Red Book 2005 section 4.2 (RS). If people want to deviate from Hill (as your example does), we need source or ref for that. So far, no issue for me -- I only know Hill. Red Book 2005
- -DePiep (talk) 19:35, 18 December 2015 (UTC)
- Your reference doesnt use the Hill system. Section 4.2.1 (Empirical formulas) (which says the alphabetical way should only be used if structural structure is unknown) and says see section 4.4 (ordering principles) which state in 4.4.2.2 (alphanumerical order):
- Quote from IUPAC, NOMENCLATURE OF INORGANIC CHEMISTRY "red book", page 58, html link:
- "[...]The group NH4 is often treated as a single symbol and so listed after Na, for example.
- To exemplify, the order of citation of some nitrogen- and sodium-containing entities is:
- N3−, NH−2, NH3, NO−2, NO−3, N2O3−2, N−3, Na, NaCl, NH4Cl
- Such ordering may be applied to entire formulae in indexes and registries etc., but may also be used for ordering parts of a given formula, sometimes in connection with the ordering principle of Section IR-4.4.2.1, as decribed below for various specific classes of compounds and ions"
- end of quote. But remember this is for inorganic chemistry only. So I do not think I have objection agains the red book. Christian75 (talk) 22:14, 18 December 2015 (UTC)
- What IR-4.2.1 describes is the same as Hill notation. Why do you say it is not?
- You keep mentioning your own thoughts re in/organic. By what rule do you claim what exception for inorganics? (er, you only mention REd Book after I linked it. Does this mean you did not look for it before, after I mentioned it half a dozen times?) -DePiep (talk) 22:25, 18 December 2015 (UTC)
- Rule 4.2 doesnt describe just the Hill system. It describes more than one way to do it. Rule 4.2.1 could (maybe) be used if the ordering criterion is "structural information" and not the alphabeth. But yes; Im against using empirical formulas for "simple" inorganic compounds in the infobox, and especially the alphabetic way, e.g. N
3Na instead of NaN
3. A lot of students etc. copy paste from the infobox and they would get "wrong" formulas. Consensus has been not to use the Hill notation, see [7] Christian75 (talk) 22:49, 18 December 2015 (UTC) - (And yes, I didnt look it up - I know the Hill system, and I know the red book. And I think we should use the Red book too - but not empirical formulas. But since you mentioned that book again and again I looked it up and realized that the paragraph (4.2.1 not 4.2) mentioned more than one way to write emipical formulas based on the alphabeth or structural infomation). Christian75 (talk) 22:55, 18 December 2015 (UTC)
- "Your reference [Red Book] doesnt use the Hill system" you wrote above. Yes it does. It is the very first subsection after the "4.2" title. And the word "empirical" is right in the second sentence of my OP here. You have not pointed to a diff between the IUPAC description and Hill description. You are just trying to save yourself. A weird way of reasoning, and also abusing my patience.
- Ok it also use the Hill notation in the absence of any other ordering criterion. Hill notation: If it contains C: then C, H and alphabetically. If no C's, just alphabetically. Agree?
- Section 4.2.1 in the Red book: "For the order of citation of symbols in formulae, see Section IR-4.4, but, in the absence of any other ordering criterion (for example, if little structural information is available), the alphabetical order of atomic symbols should be used in an empirical formula, except that in carbon-containing compounds, C and H are usually cited first and second, respectively."
- Not the same. (Look especially at in the absence of Christian75 (talk) 00:42, 19 December 2015 (UTC)
- Meanwhile I have found your answer. As is unchanged, empirical formula can be used if no other rule is available. Well, when the structural chem formula is known, we can use that one. This is what you were pointing at. Of course we don't downgrade to the empirical form, and no one is proposing that. Has nothing to do with in/organic, also valid for Sodium bicarbonate. So I might have made some errors wrt this (turning structure into empirical). A small price for such a great improvement in correct chemical formula writing in 10k articles. -DePiep (talk) 00:15, 19 December 2015 (UTC)
- Thanks. As I said "I have no problem with the way its introduced in the chembox template (The Hill notation for formulas). But do not change the inorganic compounds articles to use the new system.". I said it because you changed all the organic compounds (which I think is very nice) to use the |C=|H= notation. And I wanted to let you know before started a hard nights work changing the inorganic too. Christian75 (talk) 00:51, 19 December 2015 (UTC)
- All clear then. What's left (message to myself): do not edit Chmembox/Drugbox articles downgrading a structural formula into empirical. Can do. -DePiep (talk) 09:00, 19 December 2015 (UTC)
- Thanks. As I said "I have no problem with the way its introduced in the chembox template (The Hill notation for formulas). But do not change the inorganic compounds articles to use the new system.". I said it because you changed all the organic compounds (which I think is very nice) to use the |C=|H= notation. And I wanted to let you know before started a hard nights work changing the inorganic too. Christian75 (talk) 00:51, 19 December 2015 (UTC)
- "Your reference [Red Book] doesnt use the Hill system" you wrote above. Yes it does. It is the very first subsection after the "4.2" title. And the word "empirical" is right in the second sentence of my OP here. You have not pointed to a diff between the IUPAC description and Hill description. You are just trying to save yourself. A weird way of reasoning, and also abusing my patience.
- Rule 4.2 doesnt describe just the Hill system. It describes more than one way to do it. Rule 4.2.1 could (maybe) be used if the ordering criterion is "structural information" and not the alphabeth. But yes; Im against using empirical formulas for "simple" inorganic compounds in the infobox, and especially the alphabetic way, e.g. N
- Your reference doesnt use the Hill system. Section 4.2.1 (Empirical formulas) (which says the alphabetical way should only be used if structural structure is unknown) and says see section 4.4 (ordering principles) which state in 4.4.2.2 (alphanumerical order):
Chembox changes (21 December 2015)
- Added: Category:Chemical articles with multiple CAS Registry Numbers
- Removed from {{Chembox}}: Category:Chemical pages without DrugBank identifier (useful for Drugbox only)
- Renamed: Category:Chemical pages without CAS Registry Number → Category:Chemical articles without CAS Registry Number
- Done -DePiep (talk) 01:35, 21 December 2015 (UTC)
SpecRotation: chiral rotation vs. specific rotation
Is it normal to call specific rotation ([α]D) for chiral rotation? Is it a good idea to make it more general (temperature and not only the sodium line)? (Template:Chembox SpecRotation) Christian75 (talk) 18:49, 22 December 2015 (UTC)
- Please elaborate. Editors would be helped if they do not need to enter formatted units, so giving a few standard-options would be welcome. -DePiep (talk) 07:54, 27 December 2015 (UTC)
add Triple point
Dirac66 asked (on my talkpage) to have added Triple point to {{Chembox}}.
It should be like T = −56.6 °C and p = 5.1 atm for CO2. Could be |TriplePtC=
, |TriplePtP=
then (into 3 temperatures; p=atm always?). Any comments? Placement in section Properties? -DePiep (talk) 17:28, 27 January 2016 (UTC)
Racemic mixture parameter
About Racemic mixtures (aka Racemate). I see a lot of {{Chembox}} and {{Drugbox}} articles are about such a mixture (example links below). The indication usually is scattered in data entries (like: |CASNo2_Comment=S
), and probably more often in the article text only.
- Examples in chembox: Cysteine Alanine Glutamic acid Tartaric acid Lipoic acid
- Examples in drugbox: Amphetamine Clenbuterol and this cat, from I (currently ~40)
- Examples in article-text only: (pls request)
I consider/suggest we add a parameter |Racemic=
to the two infoboxes to allow this description in a stable way, manner & place. First idea:
- Improved proposal demo (22 Dec 2015)
-- (free text input)|Racemic=1:1 racemate ''RS''
|Chirality=racemate
→
Comments? (general, parameter name, lefthand label text, position, ...). -DePiep (talk) 09:25, 19 December 2015 (UTC)
- I question if this is really necessary as it duplicates information that should already be specified in the chemical name [e.g., (R), (S), or (RS)]. Complicating matters is that the scope of many of these chemical articles is about both stereoisomers as well as the racemic mixture (for example, alanine) and the chembox contains information about all three. If such a parameter is included, it should probably be named
|enantiomeric_excess=
or|enantiomeric_ratio=
as this one parameter could be used to specify that the substance is either racemic, optically enriched, or optically pure. Boghog (talk) 11:19, 19 December 2015 (UTC) - A rare example of an article about a optically enriched mixture is Adderall. Boghog (talk) 11:25, 19 December 2015 (UTC)
- I'll have to study this... ;-) -DePiep (talk) 12:56, 19 December 2015 (UTC)
- FYI :-) - Stereochemistry is a really really diffucult subject (for chemist too). Enantiomers (mirror images) have the same chemical and physical* properties unless they are in a chiral environment ("enantiopure enviornment"). R and S in the IUPAC name tells if the carbon atom is "right" or "left". If you have one compound e.g. D-glucose ((2R,3S,4R,5R)-2,3,4,5,6-pentahydroxyhexanal) and change all R and S, then you have the enantiomer: ((2S,3R,4S,5S)-2,3,4,5,6-pentahydroxyhexanal) (L-glusose). If you change some of them, you have a completely different compound (a diasteromer). (E.g. (2S,3S,4R,5R)-2,3,4,5,6-pentahydroxyhexanal is D-mannose). Thaladomide is a classic example of how dangers different enantiomers can be. (n.b.: If you change all R and S and get the same molecule, then you doesnt have a enantiomer but a meso compound. *The enantiomers rotate plane polarised light in opposite directions. Christian75 (talk) 14:33, 19 December 2015 (UTC)
- User:Boghog, I think its more commons then rare. I thought all new drugs were chiral, but I found this which states 50% of all new drugs (in 2006) are chiral compounds (but normally only one of the enantiomers are notable). I found this short "funny" list enantiopure drug. Chiral proteins and saccharides often have their own artilce too, like glucose and L-glucose. I just checked a random amino acid, serine, and that article should be split (the text is a mixture of L and D-serine). Christian75 (talk) 14:33, 19 December 2015 (UTC)
- Just to be clear, both racemic and enantiopure drugs are very common. What is unusual are enantioenriched ("pure, mostly" ;-) drugs. EJ Ariëns (PMID 6092093) was a strong proponent in developing enantiopure drugs and he called the inactive enantiomer "isomeric ballast" that carried with it unnessary increased risk of side effects. Nevertheless, some drugs racemize quickly in solution, so even if only one enantiomer has biological activity, there is no point in manufacturing the optically pure drug because it will racemize once the patient takes it. Finally all proteins, except a very few man made ones (see for example racemic crystallography), are optically pure. Boghog (talk) 15:22, 19 December 2015 (UTC)
- I'll have to study this... ;-) -DePiep (talk) 12:56, 19 December 2015 (UTC)
- OK, learned more than needed for this infobox question. Let me refine/rephrase the proposal.
- I understand the topic is chirality and enantiomeric_excess (won't focus on correct wording for now). Racemic is a common 50/50 occurrance, 100%/0% exists too and rare are other ee percentages.
- Chemicals with these property indeed have the indicating prefixes (R, S, RS D, L, +/-). That should do, as Boghog says. But, that is only enough for those who know what this is about. An (RS)-... name only says "chiral" for those who already know. I think that is not enough. I myself have been working with chemicals here a few years, but I never got that point. So I think it is good to add that info explicitly. To illustrate its importance: the opening paragraph of the given example Adderall is about this topic.
- We can aim for standardised ee input (one or two percentages, racemic link) or free text.
- Main question: can you all agree that adding this datarow is useful? Exact texts etc. TBD later. -DePiep (talk) 23:38, 21 December 2015 (UTC)
- I am still ambivalent about this because the stereochemistry should already be defined in the chemical name (and in the SMILES string for that matter). I suppose it would not hurt to add a
|chiral=
parameters with allowed values: achiral, meso, racemic, enantioenriched, and enantiopure. One also might consider a|optical_activity=
parameter with two allow values: dextrorotatory (+) and levorotatory (−). Boghog (talk) 13:54, 22 December 2015 (UTC) - I see that there already is a
|SpecRotation=
(specific rotation) parameter, so that there is no need for a seperate|optical_activity=
parameter. Boghog (talk) 14:08, 22 December 2015 (UTC)
- Today some 25 articles have a SpecRotqation [8] ({Chembox} only). Unless addressed here, I have no intention to change that data point. -DePiep (talk) 07:52, 27 December 2015 (UTC)
- I am still ambivalent about this because the stereochemistry should already be defined in the chemical name (and in the SMILES string for that matter). I suppose it would not hurt to add a
- re Boghog:
- - I take the "would do no harm" reply to go sandboxing with this ;-)
- - Again, I think 'it is already in the name' is both correct and not enough. For example, the name can not specify the percentage. And mainly, of course the name does not mention 'racemic' nor link it. So even for the half-layman (like me), this does not give a clue. There are also the non-related name prefixes like trans-, so that adds to the invisiblility. A childish comparision point is (childish, I admit), that the chem formula and molar weight are already "present" in the structural image, so could be omitted too. Finally, editors quite often have tried to add this info to the infobox title (see Bromadoline, and ~40 todaty in cat, from I), which suggests is is important enough to add to the infobox. After all, there are two chemicals present.
- - Related
|SpecRotation=
doesn't need edits (afaik). It has label Chiral rotation ([α]D) - - Label to be Chirality
- - Input options provided here by Boghog best be recognised & wikilinked by the templates.
- -DePiep (talk) 07:52, 27 December 2015 (UTC)
- In {{Infobox drug}}: added
|chirality=
. Near|specific_rotation=
. -DePiep (talk) 17:11, 29 January 2016 (UTC)
- What should that contain; yes or no or? Christian75 (talk) 17:15, 29 January 2016 (UTC)
- Can contain any input that relates to the topic of chirality. -DePiep (talk) 17:31, 29 January 2016 (UTC)
- What should that contain; yes or no or? Christian75 (talk) 17:15, 29 January 2016 (UTC)
Vertical image placement
To consider: vertical alignment in L,R images to center? See Chromate and dichromate. -DePiep (talk) 12:31, 10 January 2016 (UTC)
- No objections. However; if the images are different sizes would
|ImageName=
give text at two different heights? --Project Osprey (talk) 10:41, 6 February 2016 (UTC)- Already happens, see testcases7 ;-). Is a bug, must be fixed anyway. -DePiep (talk) 11:20, 6 February 2016 (UTC)
Add codons?
Add codons? -DePiep (talk) 22:40, 28 January 2016 (UTC)
- There won't be over 50 uses, but Arginine sais it's quite big when it is used. (and add new section 'Biochemistry'?) -DePiep (talk) 11:25, 6 February 2016 (UTC)
Establishing standard element ordering for chemical formulas
Hi, I recently got a suggestion from an anonymous editor, (here), to change the chemical formula of Silicon Carbide from CSi to SiC. Some quick checks show that both these are in use, and further, there's no consistency in how ordering is handled in infoboxes.(see my talkpage) I propose we use Hill system ordering in all chemical templates, and conventional ordering in prose/reactions. If there's a style guide already in place, it should get a brief note on the chembox template parameters list I think. Forbes72 (talk) 23:08, 19 February 2016 (UTC)
- For {{Chembox}} and {{Infobox drug}}, there is this:
- By formula: When entered by parameter
|Formula=
/|chemical_formula=
, the formula is shown as entered. This could be entered using {{Chem}}, like|Formula={{Chem|H|2|O}}
- By elements: When entered by element like
|C=1|H=2|O=3|P=4|etc=
, Hill notation is applied. - When both are entered, the formula is shown not the Hill notation.
- Background: Notations forms (including Hill) are described by IUPAC: IUPAC Red Book 2005, section 4.2 (pp.66/377 pdf). A discussion was in /Archive 10).
- Note that Hill notation is a simple form only, called the empirical formula. However, a chemical formula can be more complicated having more information: 'molecular formula and structural formula. The extra information can be groups, brackets (square, curly), ion separation, repetition of groups by n, etc. The template can only automate Hill, for structural/molecular formulae the editor should work that her/himselves at input. Quite often, {{Chem}} is used. So far for template assistance.
- It is common to add the extra info when relevant, and so editors are entering the more meaningful formulae. As IUPAC writes: "The choice of formula depends on the chemical context". In this question, I read all this as: do not impose Hill notation if a better formula is available. Once a formula is made, it better should be used all over the page (so better not changing in the infobox, as you propose). -DePiep (talk) 13:51, 21 February 2016 (UTC)
- It may be more complicated. IUPAC Red Book writes that "structural formulae" can be 1-D form (single line, as is the topic here), but also 2D graphs are "structural formulae". OK. Next, there is section Structural_formula#Condensed_formulas for these. -DePiep (talk) 08:23, 22 February 2016 (UTC)
- Thanks for pointing to the prior discussion. So let me get this straight: the ordering is determined by on a case-by-case basis, according to what is the most informative format. Hill notation is not imposed as a standard, but serves as a fallback when other options aren't obvious. According to this, it seems best for me to standarize AxCy ordering on inorganic carbides. Is this correct? Forbes72 (talk) 00:48, 26 February 2016 (UTC)
- Forbes72 All correct yes. And a good style form to use the same notation type over the whole article and over the whole set of carbide articles. (I assume writing AxCy and ZxCy is meaningful in the context of those inorganics; that is not my field of knowledge). -DePiep (talk) 10:57, 27 February 2016 (UTC)
- Thanks for pointing to the prior discussion. So let me get this straight: the ordering is determined by on a case-by-case basis, according to what is the most informative format. Hill notation is not imposed as a standard, but serves as a fallback when other options aren't obvious. According to this, it seems best for me to standarize AxCy ordering on inorganic carbides. Is this correct? Forbes72 (talk) 00:48, 26 February 2016 (UTC)
- An empirical formula isnt what you describe. The emprical formula is IUPAC Gold book, also Red book p. 54: "Formed by juxtaposition of the atomic symbols with their appropriate subscripts to give the simplest possible formula expressing the composition of a compound." i.e. the simplest whole-number ratio of atoms in a compound. E.g. the empirical formula of benzene: Chemical formula C
6H
6, but empirical formula is CH. Christian75 (talk) 16:25, 3 March 2016 (UTC)
- It may be more complicated. IUPAC Red Book writes that "structural formulae" can be 1-D form (single line, as is the topic here), but also 2D graphs are "structural formulae". OK. Next, there is section Structural_formula#Condensed_formulas for these. -DePiep (talk) 08:23, 22 February 2016 (UTC)
For the chembox (and I believe for the drugbox), the preferred way to enter the molecular formula is by using the parameters 'C', 'H', 'N', 'Li', etc. That results in the Hill notation formula in the chembox (as well as other features). If editors or the situation require that another notation is used (nonstoichiometric compounds, separation of parts or whatever) then that can be overridden by using the Formula/Chemical Formula .. In other words, the only reason to use these fields is because there is a reason to circumvent the Hill notation. --Dirk Beetstra T C 12:53, 27 February 2016 (UTC)
- Is what I tried to say, with one subtle difference: you say use Hill input unless otherwise required, while I say: adding exta info in the formula can be preferred (as editors choice). Should we clear our difference out, and into a guideline/MOS/doc thing? (Details: and yes, {{Drugbox}} handles this the same; also, input by element numbering calculates & shows the molar mass straightforward - unless overwritten by
|molecular mass=
). -DePiep (talk) 14:06, 27 February 2016 (UTC)- I think it's worth building a consensus for a style guideline. Specifically, in what contexts Hill is "preferred" or just a "fallback option". These may be very similar in practice. I slightly prefer not enforcing Hill strictly, but either way would work, as long as the end result is consistent and clear. Forbes72 (talk) 17:48, 27 February 2016 (UTC)
- My !vote would be that in the chem/drugbox Hill should be used where reasonable, for the rest of the text maybe the more common or more clear forms. I know that that may conflict (since we say 'silicon carbide' it is more clear to consider that that is SiC and not CSi), but for almost everything using Hill at least in one standardized part of the page (and the infobox is the best place then) results in Google being able to find when s.o. is looking for the chemical by Hill (C2H6OS finds Wikipedia, Google suggests the same when looking for C2H6SO; forcing Google to look for C2H6SO only does not find Wikipedia - for the rest of the text, Me2SO or similar is likely more clear to the reader). So in that way, I would consider to enforce Hill in the infobox except for strange/extraordinary situations, and for the rest leave it to editor discretion. --Dirk Beetstra T C 12:47, 28 February 2016 (UTC)
- Like the main line of this: we can do Hill in the infobox, and structures inline. However, I don't like the argument that we should downgrade to Hill because of search engines. Maybe we should hide such intended search-hits in the template (findable by google bots, but not visible). Isn't there a solution in this: we need a strong statement from RL inorganic chemistry: "In inorganic chemistry, we do not use Hill". In this, inorganic = without the pair C,H.
- (Details: 10k Chemboxes + 6k Drugbox = 16k, 5k of these have formula entered; see maintenance cats. I need to research: I mentioned Red Book, but there also is Blue Book, about in/organic. And: InChI has the simplified formula. Is that Hill always? ). -DePiep (talk) 19:32, 28 February 2016 (UTC)
- My !vote would be that in the chem/drugbox Hill should be used where reasonable, for the rest of the text maybe the more common or more clear forms. I know that that may conflict (since we say 'silicon carbide' it is more clear to consider that that is SiC and not CSi), but for almost everything using Hill at least in one standardized part of the page (and the infobox is the best place then) results in Google being able to find when s.o. is looking for the chemical by Hill (C2H6OS finds Wikipedia, Google suggests the same when looking for C2H6SO; forcing Google to look for C2H6SO only does not find Wikipedia - for the rest of the text, Me2SO or similar is likely more clear to the reader). So in that way, I would consider to enforce Hill in the infobox except for strange/extraordinary situations, and for the rest leave it to editor discretion. --Dirk Beetstra T C 12:47, 28 February 2016 (UTC)
- I think it's worth building a consensus for a style guideline. Specifically, in what contexts Hill is "preferred" or just a "fallback option". These may be very similar in practice. I slightly prefer not enforcing Hill strictly, but either way would work, as long as the end result is consistent and clear. Forbes72 (talk) 17:48, 27 February 2016 (UTC)
- If changed to the Hill notation, I would prefer we change the "chemical formula" (in the infobox) to e.g. Hill formula. For most people (or chemist at least) ClNa, CH2O3, CHN and yes, CSi looks strange. In matter of fact I have to think before I can see its NaCl, H2CO3, HCN and SiC. Most of the organic compounds already use the Hill notation, but not small organic compounds like methanol, formic acid etc. My guess is that people students copy/paste from the infobox (I do), and "wrong" formulas are not good - the teacher will blame Wikipieda.... Christian75 (talk) 20:55, 28 February 2016 (UTC)
- I thought that the C, H, N, .. input already did Hill for .. years. And I don't think that that is a 'downgrade' - it is a choice of system. And to me, the chembox is for systematic display of data, not real prose. And I do think that since that system is one of the ways that chemicals get standardized, it is a likely way that people can find chemicals (but invisible tags are a solution as well, displaying something else). The RL statement 'in inorganic chemistry, we do not use Hill' is probably true (Sigma Aldrich talks about SiC, CB4, Si3N4, ...). Hmmm ... but if we want to make the formula from the C, H, N system, then we need some order, and even complete alphabetic or by element number we get 'CSi', 'B4C', 'N4Si3')... or we have to abandon the whole C, H, N system, using a complex (LUA) module to extract the Hill formula, molecular weight etc. (so we can use Me2SO for DMSO, which is likely what most people recognise as DMSO).
- That teacher should be fired, first of all the student is not wrong and secondly, the teacher should teach the student to think for themselves and not blindly copy from the internet/wikipedia. --Dirk Beetstra T C 03:25, 29 February 2016 (UTC)
- re per-symbol-input "thought ... did Hill for .. years" - so did I ;-). But recently I reprogrammed that piece of template, and it appeared that there was a hiccup (to do with ordering of H, IIRC). It now applies the Red Book rules, as linked, for empirical formula, ordered by Hill rule (ask me to tell more).
- re "downgrade". As mentioned (token from the Red Book again), there is empirical, molecular, and structural formula inline notation (i.e. not graphical/2D). Molecular and structural add extra information (for example, writing a OH group separated). Removing that extra info is downgrading (in the example lumping all O's and H's together).
- I am a bit reluctant to write the chemicals in such a way "people can find" them. First and foremost, we write them correct. Search help may be added, but only in that order (don't want to end up spelling like "C24H38O4"). Sure the infobox is not 'prose' (when I wrote 'inline', I meant to say: 'in the article text, sentences'). But it should be correct still.
- "... or we have to abandon the whole C, H, N system" -- not that soon. First we better describe the mechanisms (rules) that are used in RL chemistry, possibly with the in/organic distinction. And when a molecular or structural formula is known, there is no need to fall back on empirical (be it by Hill or full alphabetical). Would take some research-time I currently do not have. I think the question we are looking to answer is: what is the rule in inorganics? -DePiep (talk) 08:27, 1 March 2016 (UTC)
- I think that one of the points I am trying to make, is that there is also value in having the CxHyOz-based system (i.e., a plain count of each element in the system). In the prose that makes reading less clear, but in the infobox there is no harm - the more written out forms are/should be in the prose anyway (I would strongly object against using C2H6OS in the prose - you don't know if it is mercaptoethanol or DMSO .. C2H6OS is however nice for people who want to, say, calculate isotope distributions etc. as they do not have to add up the Cs and Hs to get to the result). I also think that something systematic needs to be encoded (whether visible or hidden) that allows finding chemicals by the formula - we are writing here for the reader, but if the reader can't find what they are looking for it is not of much use.
- I however guess that I don't really care in which order they are, but applying different systems depending on origin is going to be difficult there, you can't say 'it is inorganic, so the C comes after all metallic elements' or something similar (and there are always borderline inorganics/organics). What order does our dear IUPAC suggest for formulas which are stripped of all structural information (as that is what we are thinking of here). I would suggest that we take one system and use that in the infobox for this, and whether that is Hill, alphabetic, or in order of the periodic table is all fine with me - but not 'this is inorganic so this method', 'this is organic so this method', 'this is organic but of interest for pharma so this method' .. --Dirk Beetstra T C 11:27, 3 March 2016 (UTC)
- Right. Adding details, to consider: maybe in the infobox write both basic empirical formula and more complicated formula when available. (and search-only text tbd). The infoboxes can be automated for that (i.e., extract Hill from structural formula, in that direction). In article text, it is upon the editors to use the best one in context. Then there is the guideline for the editors to write/improve (as was the OP question here), to bring consistency in article text. -DePiep (talk) 12:21, 3 March 2016 (UTC)
- If changed to the Hill notation, I would prefer we change the "chemical formula" (in the infobox) to e.g. Hill formula. For most people (or chemist at least) ClNa, CH2O3, CHN and yes, CSi looks strange. In matter of fact I have to think before I can see its NaCl, H2CO3, HCN and SiC. Most of the organic compounds already use the Hill notation, but not small organic compounds like methanol, formic acid etc. My guess is that people students copy/paste from the infobox (I do), and "wrong" formulas are not good - the teacher will blame Wikipieda.... Christian75 (talk) 20:55, 28 February 2016 (UTC)
- I dont think that IUPAC inorganic (red book) are writing about formulas without structural information (except for empirical formulas - but I guess we arent interested in that), maybe because the cation and anion nearly always are known?.
(DePieps inorganic nomenclature link from the top of this thread [9]) says there is two ways to "sequence of citation of symbols in formulae" (section 4.4): by electronegativity or alphanumerical order. Both are tricky because there is a lot of exceptions, but they have an example (section 4.4.2.2: "N3−, NH2, NH3, NO−2, NO2−2, NO−3, N2O2−2, N−3, Na, NaCl, NH4Cl".They are mention the Hills system, but only for empirical formulas.It looks like they are ordering the cation and anion alphabetical? (they say that NH4 is an exception).There are lot of exceptions, e.g. in section 4.4.3.2 they write: "For carbaboranes, there has previously been some uncertainty over the order of B and C. The order 'B before C' recommended here conforms to both electronegativity and alphabetical order (i.e. it is an exception to the Hill order in section IR-4-2-1). In addition, carbon atoms that replace skeletal boron atoms are cited immediately after boron, regardless of what other elements are present (see also section IR-6.2.4.4)".Christian75 (talk) 14:19, 3 March 2016 (UTC)- I have striked it out because it was about how to order the compounds in lists, indexes etc. But at least the striked out formulas are the way IUPAC suggest it should be written in lists (for inorganic compounds). Christian75 (talk) 17:00, 3 March 2016 (UTC)
- I dont think that IUPAC inorganic (red book) are writing about formulas without structural information (except for empirical formulas - but I guess we arent interested in that), maybe because the cation and anion nearly always are known?.
- Re Google. Google are extracting information from our chemboxes (and cite Wikipedia). Search for Silicium carbide and Googles infobox says "Formula: CSi". Christian75 (talk) 17:26, 3 March 2016 (UTC)
The CAS RN linking
- Note: after implementation, the examples do not show the previous (bad) situation any more
Identifiers | |
---|---|
CAS Number |
Today, the CAS Registry Number link in {{Chembox}} and {{Infobox drug}} looks like this:
- {{Chembox}}: (for PVC)
Note: {{Infobox drug}} works similar, and so joins this talk+outcome.
- My questions are
- Is it a source or an external link?
- As a source, it should be a <ref> reference and show like: 9002-86-2[1]
- As an external link, it should show like: 9002-86-2
- Then there is this: sometimes the target site link does not know the CAS number:
- Proposal
- First, make it show as an external link: CAS number: 9002-86-2
- Done Now shows external link icon in both templates. Other issues contine below. -DePiep (talk) 22:21, 7 March 2016 (UTC)
- Second, re blank targets - dunno. Any suggestion? Add option
|CASNo_link=none
, would show "60232-85-1" (unlinked)?
- All external links in the chem/drugbox are formatted that way (and that is also how they should print). The links both need to be an external link (in principle a reader/user should be able to directly link out to the site and use the data in the external database (which, granted, for CAS is practically blanc; ping User:Walkerma) as well as a primary source (the link provides the evidence that the number is correct according to the issuer of the number). As I said, the CAS online database is rather limited and is not very helpful - but that is their choice (I expect that people will turn to the more useful databases down the list). With that, I would disagree to link it somewhere else (as CAS number is issued by CAS and not by any other more useful database).
- Regarding the incompleteness of the external database - that is still beyond me, but it is a problem with the external database. For us, the numbers are generally correct, and should link to the 'correct' page, even if that page does not (yet?) exist. Again, the disservice that CAS is providing there will result in readers not caring about following the link to their databases or services. I do not think that blanking is a solution on our end, we should be providing correct CAS numbers. --Dirk Beetstra T C 04:01, 6 March 2016 (UTC)
- To clarify: in the sample situation "CAS link page does not know CAS RN 60232-85-1", we could show but not link that CAS RN (not: hide that CAS RN). -DePiep (talk) 19:17, 6 March 2016 (UTC)
- re Beetstra: In general, I can agree. Especially: the external link provides a useful link and the reference (source); we don't want a separate ref (superscripted). And I can live with the occasional zero-hit CAS link (like PCHP).
- About the link formatting: this: we really, really should show it as an external link, with the el-icon: 9002-86-2 (not 9002-86-2). This is the guideline. The icon says "you are leaving the wiki site". Tellingly, it also shows in mobile view. (Sure other links in Chembox are showing with suppressed icon. But that is not a reason to skip that guideline. Instead, expect more change proposals). -DePiep (talk) 19:45, 6 March 2016 (UTC)
- I think it would be fine to include the "external link" symbol, though as Beetstra says, it's mainly a primary source but slightly useful as a external link. Being able to link directly to a CAS page confirming a CAS number is invaluable, IMHO, since CAS nos. are so widely used as substance identifiers, even in government documents. Regarding the no. of entries, the consensus at our Wikipedia gathering in Boston last August (at the ACS national meeting) was that we should ask to expand the no. of CAS numbers that are available on Common Chemistry. Now that trust is well established, and both WP and CAS have expanded their no. of substances, it's about time to expand from the 7800 we can use currently (of which perhaps 5000 are used on WP). Before we expand, though, I want to make sure that our validation system is working properly first. Walkerma (talk) 02:10, 7 March 2016 (UTC)
- I had a look around, and I think that indeed 'we' are the odd one out here, displaying these links without the 'tag'. I think we should bring that in line (it has been a couple of years ago that we decided to remove them, CCC) with the rest of Wikipedia. In the end, it is not a big deal. But please have that consensus for all of them, we don't need to discuss that separately for every one of them.
- Regarding having the links there also if they go nowhere, I stand with that they need to stay, and need to go to the issuer of the identifier. If the external party decides to add a couple of hundreds of them, we should not need to edit hundreds of pages to remove the 'CASNo_link=none'.
- I will see if I can find some time to look at the functioning of User:CheMoBot - it has not had my focus for months and months now, it seems to glitch (sometimes). --Dirk Beetstra T C 09:08, 7 March 2016 (UTC)
- Done external link icon now showing (isolated issue). Other topics still open. -DePiep (talk) 22:21, 7 March 2016 (UTC)
- @DePiep: That should also be done for all other external links in the infoboxes. Now it is inconsistent. --Dirk Beetstra T C 03:19, 8 March 2016 (UTC)
- Yes, and I already announced so. But this is an improvement anyway, even while other stuff exists. Also, given the discussion this one identifier caused (I'm not surprised), it would not be wise to open twelve simultaneously. -DePiep (talk) 10:59, 9 March 2016 (UTC)
- I think most of the discussion was on the reference/external link question, and the blanks on outside sources, I think that if we would have decided to add the 'outside link icon' on all of them in one go (as I suggest above) that would have gone through fast. --Dirk Beetstra T C 11:07, 9 March 2016 (UTC)
- I explained more than once why I did what I did. And I told you that I knew the other options all along. You did not respond to any of these remarks. Instead, your commanding tone and hindsight-iknowbetter does not help anything. -DePiep (talk) 19:59, 9 March 2016 (UTC)
- I think most of the discussion was on the reference/external link question, and the blanks on outside sources, I think that if we would have decided to add the 'outside link icon' on all of them in one go (as I suggest above) that would have gone through fast. --Dirk Beetstra T C 11:07, 9 March 2016 (UTC)
- Yes, and I already announced so. But this is an improvement anyway, even while other stuff exists. Also, given the discussion this one identifier caused (I'm not surprised), it would not be wise to open twelve simultaneously. -DePiep (talk) 10:59, 9 March 2016 (UTC)
- @DePiep: That should also be done for all other external links in the infoboxes. Now it is inconsistent. --Dirk Beetstra T C 03:19, 8 March 2016 (UTC)
- Done external link icon now showing (isolated issue). Other topics still open. -DePiep (talk) 22:21, 7 March 2016 (UTC)
Expanding to other identifiers
I have prepared to deploy this ferature to most other external links: identifiers, ATC code. See:
- /testcases (general examples), /testcases6#Indentifiers (test all parameters), /testcases8#ATC (ATC Code).
Will be added: external links have css-title (mousehover-text) showing the target website name. {{Drugbox}} already has these changes. -DePiep (talk) 18:37, 5 April 2016 (UTC)
- To simplify matters & doc,
|ATCCode=
is abandoned. ATC is entered by ATCCode_prefix=, ATCCode_suffix=. One article needed a change. -DePiep (talk) 08:40, 6 April 2016 (UTC)- preparing. -DePiep (talk) 08:40, 6 April 2016 (UTC)
- Done -DePiep (talk) 09:50, 6 April 2016 (UTC)
- Really, I just looked for these edits' effects in big methanol and I enjoyed the result. Also note the textual changes re JMol. -DePiep (talk) 21:52, 7 April 2016 (UTC)
Is there any derivative chembox for solvents or detergents with HLB, CMC etc parameter fields. If there isnt can someone please help make it ? --Dr.saptarshi (talk) 06:27, 6 February 2016 (UTC)
- Moved here from subpage. ping Dr.saptarshi -DePiep (talk) 07:33, 6 February 2016 (UTC)
- If there is support for this, we can add those parameters. -DePiep (talk) 07:35, 6 February 2016 (UTC)
- I would be in favor. Possible issues with CMC: it can be defined at either mol/L or g/L, we might want to define which units we're using now to prevent it becoming a mess (wikidata would thank us). Some of the most common surfactants are often produced as a mixture of chain lengths (e.g. Sodium dodecylbenzenesulfonate) in which case the CMC of a pure material may not be the same as the CMC of the 'normal' material - Do we want to allow for that? Maybe by allowing a range to be entered? --Project Osprey (talk) 10:36, 6 February 2016 (UTC)
- I get this impression: these are rarely used parameters, but when used they are really relevant and helpful. I propose to add
|HLB=
,|CMC=
to section {{Chembox properties}}. I can not see a pattern or fixed unit, so for now we should give them free text (input = shown unchanged). OK? -DePiep (talk) 20:23, 6 March 2016 (UTC)
- I get this impression: these are rarely used parameters, but when used they are really relevant and helpful. I propose to add
- I would be in favor. Possible issues with CMC: it can be defined at either mol/L or g/L, we might want to define which units we're using now to prevent it becoming a mess (wikidata would thank us). Some of the most common surfactants are often produced as a mixture of chain lengths (e.g. Sodium dodecylbenzenesulfonate) in which case the CMC of a pure material may not be the same as the CMC of the 'normal' material - Do we want to allow for that? Maybe by allowing a range to be entered? --Project Osprey (talk) 10:36, 6 February 2016 (UTC)
- See /testcases9#CMC_HLB. Any actual examples tot test? Dr.saptarshi, Project Osprey. -DePiep (talk) 23:22, 7 March 2016 (UTC)
Test case using Tween20. Looks ok to me, did you hardcode any units for the fields? --Project Osprey (talk) 09:56, 8 March 2016 (UTC)
Identifiers | |
---|---|
Properties | |
100 mg/ml | |
Surface tension: | |
0.0987 g/L | |
16.7 | |
Except where otherwise noted, data are given for materials in their standard state (at 25 °C [77 °F], 100 kPa).
|
- Not yet. Which unit would that be? I like the mentioning of 'Surface tension', cannot just show unknown codes. (tweaked the presentation). -DePiep (talk) 11:21, 8 March 2016 (UTC)
- So. Shall we add
|CMC=
and|HLB=
this way, or forget about it? ping Project Osprey, Dr.saptarshi -DePiep (talk) 22:25, 28 March 2016 (UTC)
- Sorry! I meant to get back to you but then forgot... For me this way is good. --Project Osprey (talk) 08:15, 29 March 2016 (UTC)
Done |CMC=
and |HLB=
in section Properties. No precoded units, because they can vary. So it's anytext to enter. -DePiep (talk) 18:19, 29 March 2016 (UTC)
- Still not used in Polysorbate 20. -DePiep (talk) 09:34, 9 April 2016 (UTC)
- Working on it now.
- Still not used in Polysorbate 20. -DePiep (talk) 09:34, 9 April 2016 (UTC)
Identifiers | |
---|---|
Properties | |
100 mg/ml | |
Surface tension: | |
8.04×10−5 M at 21°C (0.0987 g/L; ~0.01% w/v) | |
16.7 | |
Except where otherwise noted, data are given for materials in their standard state (at 25 °C [77 °F], 100 kPa).
|
Possible issue: CMC value can be a long text-string causing it to run over more than one line (see example below, were info from page has been moved to chembox without removing excess detail). The result is confusing, as the layout is disrupted. Is there a simple fix? (other than not adding 3 version of the same data) --Project Osprey (talk) 08:59, 11 April 2016 (UTC)
- Will fix, later. -DePiep (talk) 11:19, 11 April 2016 (UTC)
- Done FYI, instances are listed here. -DePiep (talk) 20:56, 11 April 2016 (UTC)
- Many thanks. --Project Osprey (talk) 21:27, 11 April 2016 (UTC)
Pronunciation
We have added this to the drugbox as seen here metoprolol. I propose adding the same to this template. Doc James (talk · contribs · email) 18:24, 7 May 2016 (UTC)
Using the infobox for isomers
I found that the chemical infobox is used not only for a specific compound, but also for families of isomers (e.g. Sodium dodecylbenzenesulfonate). Of course, problems arise when the isomers have different properties. Nonetheless, the PubChem code can refer only to one specific isomer. I guess the infobox should be used specifically for a single isomer (maybe the most important of the family), am I correct? --Esponenziale (talk) 13:54, 20 May 2016 (UTC)
- The solution I've adopted is to use one chemical infobox for the family of isomers, with only the properties and ID codes shared by the family, and separate infoboxes for the single isomers, with their particular properties and ID codes, see current Sodium dodecylbenzenesulfonate --Esponenziale (talk) 13:34, 23 May 2016 (UTC)
I see where you're coming from but we don't do it like that (you end up with too many infoboxes). Instead the chembox code can handle several Pubchem (and other) identifiers. For example, the code below:
| PubChem = 23662403 | PubChem_Comment = Sodium 2-dodecylbenzenesulfonate | PubChem1 = 23667983 | PubChem1_Comment = Sodium 3-dodecylbenzenesulfonate | PubChem2 = 4289524 | PubChem2_Comment = Sodium 4-dodecylbenzenesulfonate
Gives you the following.
Identifiers | |
---|---|
Abbreviations | SDBS |
PubChem CID
|
|
Except where otherwise noted, data are given for materials in their standard state (at 25 °C [77 °F], 100 kPa).
|
--Project Osprey (talk) 15:04, 23 May 2016 (UTC)
- Thank you, perfect. I've just corrected the page following your advice --Esponenziale (talk) 15:27, 23 May 2016 (UTC)
InChI & Main hazards
Hello,
Two questions.
First, is there any site where you can get InChI's? And I don't mean standard InChI's. If you go to ChemSpider or PubChem, they use the standard ones. If you draw a compound in ChemDraw and let it look for its InChI, it gives you the standard one. I don't know about other software out there, but do you really have to use the software from InChI Trust?
And second, what actually goes in the MainHazards field? Is it obligatory? What kind of reference should you use? I was editing pyridinium chlorochromate, and its MainHazards field is filled. But ammonia doesn't have it.
Please use {{Reply to}}. Thanks! Georginho (talk) 10:41, 11 June 2016 (UTC)
- @Georginho:
|MainHazards=
is not obligatory. The opposite: it should only be used when the hazards are major. Listing minor also-hazards makes the infobox unncecessary long (the same for most other parameters). re pyridinium chlorochromate: don't know, but it looks to me that its hazards are not overwhelming. For example, none of these hazards are mentioned in the lede (compare DDT). Also, because the hazards are or should be present in the specific hazard data (eg as pictograms), the current MainHazards input may be redundant. -DePiep (talk) 11:04, 11 June 2016 (UTC)
- @Georginho: personally I think that
|MainHazards=
should be deprecated in favor of|GHSSignalWord=
as the Signal Word appears in modern SDS forms. --Project Osprey (talk) 19:53, 11 June 2016 (UTC)
- @Georginho: personally I think that
- @DePiep: @Project Osprey: Thanks! Yeah, I don't see anything major about PCC compared to other chemicals. I think I'll probably leave carcinogenicity and aquatic toxicity in the box per the SDS.
- I also think that although GHSSignalWord appears in SDS's, its use shouldn't be obligatory either. Putting "Danger" in the box for PCC, for example, doesn't say much.
- Cheers! Georginho (talk) 18:35, 12 June 2016 (UTC)
- Great. Hope you find something about InChI too ;-). re Project Osprey: maybe in a few weeks or months time we should clean this up into modern SDS format then. -DePiep (talk) 18:41, 12 June 2016 (UTC)
Chemical formula: now accepts D= for deuterium
See Template_talk:Infobox_drug#Deuterium_in_the_chemical_formula. Also used in molar mass calculation. -DePiep (talk) 20:57, 4 July 2016 (UTC)
Edit request
This edit request to Template:Chembox has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
The current chembox does not show the footer (the footer starting with "Except where...") iff the article has a data page (e.g. ethanol does not have a footer because of Ethanol (data page) vs. Cobalt(II) chloride has a footer because of Cobalt(II) chloride (data page)). It is fixed by adding a new line before the template call of the footer template. It has been tested by adding chembox/sandbox for ethanol and cobalt(II) chloride in preview. The testcases doesn't show any problems either.
And the current chembox forget to call the {{Chembox Supplement}} template with the parameter {{{data page pagename}}} e.g. the folowing dosn't work: {{Chembox | data page pagename=Ammonia (data page) |Section1={{Chembox Supplement }} }} gives
Supplementary data page | |
---|---|
[[]] | |
Supplementary data page | |
Ammonia (data page) | |
Except where otherwise noted, data are given for materials in their standard state (at 25 °C [77 °F], 100 kPa).
|
The sandbox version fix this:
Supplementary data page | |
---|---|
Ammonia (data page) | |
Except where otherwise noted, data are given for materials in their standard state (at 25 °C [77 °F], 100 kPa).
|
The version [10] should replace template:Chembox Christian75 (talk) 13:31, 20 July 2016 (UTC)
Plural IUPACName?
I always thought the purpose of IUPAC was to pick a single name, but allowing that the template doc allows the plural IUPACNames = as well as IUPACName =, that is fine.
But why does the page Luminol display as a plural when the source says "IUPACName = 5-Amino-2,3-dihydro- [html break] 1,4-phthalazinedione" Is the template trying to be smart and thinking there are two lines, there must be two names and changes to plural? Having the two lines, it is confusing to see the plural used on that box.73.81.157.243 (talk) 07:16, 24 August 2016 (UTC)
- I resolved this on luminol by removing the HTML break. {{Chembox}} treats the HTML break (<br>) as if the IUPACName= value is a list of several names, one per line, rather than a single name that is forced to wrap to multiple lines. Line-breaks were often inserted because chemical names can be so long that they overflow the width of the chembox. Given we have a plural field, the singular field problably should assume only a singular value is allowed. But that doesn't solve use of embedded linebreaks in individual entries in the plural field. Shouldn't we be using semantic list markup instead of a newline-delimited list (see Wikipedia:Manual of Style/Lists#List styles and especially WP:UBLIST)? DMacks (talk) 07:37, 24 August 2016 (UTC)
FDA Approval Date Section for Medications
If possible, I would like to know if a section can be added to this template for future projects. For example, navboxes which may contain drugs to treat certain medical conditions may be sorted by date of approval. It is something I am interested in at this moment (for future projects). Any chance we can have an approval section by a governing agency/authority? Thanks! Twillisjr (talk) 17:08, 14 October 2016 (UTC)
- this would be a Template:Infobox drug thing and more appropriate at WT:PHARM. Jytdog (talk) 18:43, 14 October 2016 (UTC)
Data page not showing at ethanol
The link to the data page should show automatically as long as Ethanol (data page) exists right? I'm not seeing it at the bottom of the infobox anymore. Sizeofint (talk) 04:08, 18 November 2016 (UTC)
- Looking into this. -DePiep (talk) 12:47, 18 November 2016 (UTC)
- Done
- #Edit_request (20 Jul 2016) did not work out well.
- Expect Category:Chemical articles having a data page to refill (~150 articles, iirc).
- Thanks Sizeofint for pointing to this one.
- -DePiep (talk) 16:04, 18 November 2016 (UTC)
Add option Jmol= to overwrite SMILES input
Today, the Jmol external link is fed with the |SMILES=
input string (e.g. DDT). In a few situations this is undesired or plain wrong (Ferrocene IIRC). I propose to add option |Jmol=
to overwrite that SMILES-input for the Jmol link. Also, the option |Jmol=none
will suppress the Jmol data row (will not show at all). The SMILES output will remain untouched. See Testcases/demo.
Documentation:
- 1. By default, the Jmol external link is fed with the
|SMILES=
input. So|Jmol=
does not need input. - 2. When
|Jmol=None or none
, the Jmol data row is suppressed (not shown). - 3. When
|Jmol=<some SMILES string>
, Jmol links will show that string in 3D, no matter what|SMILES=
is. (SMILES output itself is unchanged).
Additional notes:
- Recently this same Jmol setup was introduced in {{Drugbox}}. (Before, {{Drugbox}} did not have the Jmol external link at all). See talk.
- Articles with any Jmol input are categorised in Category:Chemical articles having Jmol set.
- Labeltext is changed into "3D model (Jmol)" to open with the main point (3D), not jargon (Jmol). And so resorted to near top.
|Jmoln=
is indexed: <blank>, 1 to 5 corresponding with the|SMILESn=
indexes. So|Jmol3=
will overwrite|SMILES3=
input.
Comments? DMacks and Boghog: pinged. -DePiep (talk) 13:06, 7 November 2016 (UTC)
- Looks good. One question. Are separate links for
|Jmoln=
created? I don't see an example of that in the sandbox. Boghog (talk) 15:13, 7 November 2016 (UTC)- Yes. I've added demo sections: #Jmoln indexes, #SMILESn Comment handling
(needs some fixing). -DePiep (talk) 16:01, 7 November 2016 (UTC)
- Yes. I've added demo sections: #Jmoln indexes, #SMILESn Comment handling
- Added
|addTESTdata=
to headerbar, won't show in mainspace.
- Looks good. One question. Are separate links for
- Done Asking DMacks to take a look at the ferrocene issue. -DePiep (talk) 09:44, 17 November 2016 (UTC)
- Todo: add the promised tracking category. Fixed the ferrocene SMILES string for Jmol :-). -DePiep (talk) 16:10, 19 November 2016 (UTC)
E number from Wikidata
I have prepared the E number (food additive codes) data row to get the E number from Wikidata. Articles doing so will be tracked in Category:E number from Wikidata. With this, old |E number=
and |E number Comment=
are deprecated; there is no option to enter local data. Go? -DePiep (talk) 22:19, 21 November 2016 (UTC)
Wikidata tracking categories
Through ECHA Card, {{Chembox}} has entered Wikidata world. I propose to add tracking categories for all our wikidata (wd) entries. When done structured, they can be helpful and even support maintenance (corrections). Inspiring example: {{Authority control}} categorisation.
- Simple form: ECHA has automated wd data only (no local parameter input). All Chemboxes with such wd ECHA input are to be listed in
Category:ECHA Infocard ID from wdCategory:ECHA InfoCard ID from Wikidata.
- About the category name pattern:
- 1. Use the wd property name ('ECHA Infocard ID') for the data point.
- 2. Write pattern "[wd name] from
wdwikidata" ('ECHA Infocard ID from Wikidata'). 1. name in front, 2. short (it is a tracking category, not a readers category).
Comments? -DePiep (talk) 21:13, 11 November 2016 (UTC)
- Having a tracking category is probably a good idea. I would, however, propose to write “Wikidata” instead of just “wd”. --Leyo 13:07, 17 November 2016 (UTC)
- Well, expect dozens of categories (CAS, InChI, ...) in one article. Tracking categories they are. I boldly dare to say: these are editor-only cats, not Reader space cat names! Description can be in a cat lede (=on the cat page). Shortened cat names, with dozens of tracking cats, the editor will understand. (maybe write "WD" not "wd"?).
- Example of bad: see here. Not WP:IAR ie not All, but let's improve that rule for tracking cats. -DePiep (talk) 23:51, 17 November 2016 (UTC)
- “WD” is surely better than “wd”. --Leyo 22:03, 18 November 2016 (UTC)
- Thanks. I am even podering like 'cat:ECHA Infocard ID from wikidata'. But definitely not "cat:Articles using Chembox and having ECHA Infocard ID fetched from wikidata". -DePiep (talk) 22:54, 18 November 2016 (UTC)
- Category:ECHA Infocard ID from Wikidata looks good. -DePiep (talk) 23:29, 18 November 2016 (UTC)
- Wikidata has a capital “W”. --Leyo 23:37, 18 November 2016 (UTC)
- Not in this proposal. DePiep -23:41, 18 November 2016 (UTC)
- OK, "W" it is. -DePiep (talk) 12:53, 19 November 2016 (UTC)
- Not in this proposal. DePiep -23:41, 18 November 2016 (UTC)
- Wikidata has a capital “W”. --Leyo 23:37, 18 November 2016 (UTC)
- “WD” is surely better than “wd”. --Leyo 22:03, 18 November 2016 (UTC)
- Proposal now: Category:ECHA InfoCard ID from Wikidata -DePiep (talk) 21:00, 19 November 2016 (UTC)
- About ready to go live. -DePiep (talk) 22:13, 21 November 2016 (UTC)
Jmol live in WP
I have mentioned this suggestion in the Village pump (tech). If you know more, please add there. I am very low in the J/JS area. -DePiep (talk) 23:34, 17 November 2016 (UTC)
- Archived here for future reference. Sizeofint (talk) 09:41, 25 November 2016 (UTC)
Chemical articles without CAS Registry Number
Not sure that this goes here but can someone please undelete Category:Chemical_articles_without_CAS_Registry_Number? --Project Osprey (talk) 23:55, 27 November 2016 (UTC)
- See Category:Chemical_articles_without_CAS_registry_number. The category has been renamed to follow Wikidata writing (note the lowercase r, n). The overview is in Category:CAS registry number tracking categories.
- Also will change: Category:Chembox maintenance categories → Category:Chembox tracking categories
- Also will change: Category:Infobox drug maintenance categories → Category:Infobox drug tracking categories
- Before we can make {{Chembox}} and {{Drugbox}} a fullblown Wikidata machine, I needed to clean up some details. Call me if something is wrong. -DePiep (talk) 00:20, 28 November 2016 (UTC)
- Will do. Many thanks --Project Osprey (talk) 00:52, 28 November 2016 (UTC)
- Expect a Wikidata pilot shortly (using CAS registry number). Dozens of details to be researched (eg, what with {{Drugbox}}?). We want multiple tracking categories for a single data point, especially "Wikidata value =/= local value". Follow this page. -DePiep (talk) 01:13, 28 November 2016 (UTC)
- Will do. Many thanks --Project Osprey (talk) 00:52, 28 November 2016 (UTC)
- "CAS registry number" is spelled "CAS Registry Number". So should the category. Christian75 (talk) 05:30, 28 November 2016 (UTC)
- As explained, Wikidata wrote in lowercase (at the time of decision). -DePiep (talk) 13:29, 28 November 2016 (UTC)
Pronunciation
We have pronunciation in the Template:Infobox_drug. Would be useful to have in this one aswell. Doc James (talk · contribs · email) 14:59, 1 September 2016 (UTC)
- Agree. there was a brief prior discussion on this Wikipedia_talk:Chemical_infobox/Archive_9#Pronounce_parameter? Sizeofint (talk) 17:30, 1 September 2016 (UTC)
- Note that the pron should be unambiguously close to the name it says. There should be no confusion, while there are multiple names and name-types in {{Chembox}}. (Note: in {{Drugbox}}, I have proposed these order changes. When accepted, the pron datarow will be the top text row (under the images), near the infobox title.) -DePiep (talk) 14:45, 11 November 2016 (UTC)
- I would put it under the "names" heading. Doc James (talk · contribs · email) 18:15, 11 November 2016 (UTC)
- Note that the pron should be unambiguously close to the name it says. There should be no confusion, while there are multiple names and name-types in {{Chembox}}. (Note: in {{Drugbox}}, I have proposed these order changes. When accepted, the pron datarow will be the top text row (under the images), near the infobox title.) -DePiep (talk) 14:45, 11 November 2016 (UTC)
- Done
|pronounce=(any text)
will show in section Names. -DePiep (talk) 17:37, 19 November 2016 (UTC)
- Not working at glucose User:DePiep Doc James (talk · contribs · email) 17:44, 29 November 2016 (UTC)
- Fixed. Good point. I said, in the editsummary: /* top */ fix: |pronounce= should be outside of any {{Chembox|SectionN=}} (yes I know. yes I know. But hey, this template now does handle 575+ parameters :-) )). -DePiep (talk) 18:48, 29 November 2016 (UTC)
- Not working at glucose User:DePiep Doc James (talk · contribs · email) 17:44, 29 November 2016 (UTC)
Major proposal: add Wikidata *external link* to the Identifiers
I propose to add data row "Wikidata: [wikidata item external link]" to {{Chembox}} and {{Drugbox}}, section Identifiers. By default, the link should be provided automatically. Example would be: Carbon monoxide→ d:Q2025
In practice, nearly every {Chem/Drug infobox} will show this link. Articles will be tracked (categorized) usefully. Later on, we will use that Wikidata link for properties, like PubChem numbers. -DePiep (talk) 21:55, 1 December 2016 (UTC)
- I would propose not to show
d:
, i.e. Q2025. --Leyo 23:34, 1 December 2016 (UTC)- Good. If this is the only note ... ;-). (Just think of my elation this morning when I woke up thinking not to use WD for say property CAS number, but as an external link itself! Made my day today). -DePiep (talk) 23:58, 1 December 2016 (UTC)
Proposal: add label for indexed identifiers
Indexed identifiers
- (index can be:
- <blank>, 1, 2, 3, 4, 5)
- CASNo
- ChEBI
- ChEMBL
- ChemSpiderID
- DrugBank
- InChI, InChIKey
- IUPHAR_ligand
- KEGG
- PubChem
- SMILES, Jmol
- UNII
In {{Chembox}}, we have some 13 indexed identifiers (see box right). Using these, the {{Chembox}} can handle up to six different compounds (by entering values for CASNo=, CASNo1=, CASNo2= etc., see example linalool below). At the moment, over 500 {{Chembox}}es use more that one CAS number.
Currently, the different numbers are specified by an extra comment=-input for each id.
I propose to add these six parameters to the {{Chembox}}:
|index_label= |index1_label= |index2_label= |index3_label= |index4_label= |index5_label=
This will happen: when used, the same label will be added before each of the values with that index. (so: index2_label will precede CASNo2, and PubChem2, and ...2, values). This simplifies this sub-identification, and it stimulates that the editor can align the indexed values (i.e, make sure that same-index == same-substance. Or: index2_label == CASNo2 == PubChem2 etc.).
Example:
|index1_label=(R)
|index2_label=(S)
|CASNo1_Comment = (R)
|PubChem1_Comment = (R)
|CASNo2_Comment = (S)
|PubChem2_Comment = (S)
Identifiers | |
---|---|
PubChem CID
|
|
Identifiers | |
---|---|
PubChem CID
|
|
Minor notes: using these labels is also more simple, compared to having to add a separate comment for each data row. The comment input options may be less needed. And above all: this aligning the indexed identifiers is a good preparation for the Wikidata changes to come. It allows systematic data loading from Wikidata -- later more. More demos are in /testcases5.
Any comments, or support right away? -DePiep (talk) 21:38, 30 November 2016 (UTC)
- Funny. I am also testing Wikidata things, so the demo looks strange. For now and this: just look at the (R) and (S) texts plese. -DePiep (talk) 21:03, 2 December 2016 (UTC)
ECHA InfoCard ID
What about adding ECHA's InfoCard ID to the chembox? They were introduced in January and are available for 120.000 chemicals. According to ECHA, an InfoCard serves as a high-level summary for a broad public, consisting of information that is most relevant to an audience of consumers, downstream users and professionals active in the chemical industry.
The InfoCard ID of DEHP is 100.003.829
and the full URL is http://echa.europa.eu/substance-information/-/substanceinfo/100.003.829.
- http://echa.europa.eu/brief-profile/-/briefprofile/100.003.829
- http://echa.europa.eu/information-on-chemicals/cl-inventory-database/-/discli/substance/external/100.003.829
- http://echa.europa.eu/information-on-chemicals/ec-inventory/-/dislist/substance/100.003.829
- http://echa.europa.eu/information-on-chemicals/registered-substances/-/disreg/substance/100.003.829
- http://echa.europa.eu/candidate-list-table/-/dislist/substance/external/100.003.829
- http://echa.europa.eu/addressing-chemicals-of-concern/authorisation/recommendation-for-inclusion-in-the-authorisation-list/authorisation-list/-/dislist/substance/external/100.003.829
- http://echa.europa.eu/addressing-chemicals-of-concern/restrictions/substances-restricted-under-reach/-/dislist/substance/external/100.003.829
BTW: On Wikidata, I made a bot request to import the data to chemicals' items using the newly created property. Once, this will be done, the IDs may be obtained from there. --Leyo 00:15, 1 March 2016 (UTC)
- I've put a
notnote at d:Property_talk:P2566 on why the id is not the same as the EC number (/list number). -DePiep (talk) 07:49, 1 March 2016 (UTC)- I replied there. --Leyo 08:51, 1 March 2016 (UTC)
- Concerning your comment “Job for wikidata then, useless route to add this locally.”: Yes, the IDs should be added to the Wikidata items. What I am talking about here is to obtain these IDs from Wikidata in order to show them (incl. the link to the ECHA InfoCard) in the chembox. --Leyo 15:17, 2 March 2016 (UTC)
- We understand. It looks like this datapoint should be retrieved from wd only, no need for local parameter option.
- Back to the prime question: add this external link?: yes, looks like a very useful and helpful link. (In the longer future, this should go into an "External links" box. Example: Gout). -DePiep (talk) 19:28, 5 March 2016 (UTC)
Update
The Wikidata property is now contained in a few thousand items. By adding the following code to the chembox, the ECHA InfoCard ID is being shown in each corresponding article.
{{#if: {{#invoke:Wikidata|claim|P2566}} | {{!}} [[European Chemicals Agency|ECHA]] InfoCard {{!}} [http://echa.europa.eu/de/substance-information/-/substanceinfo/{{#invoke:Wikidata|claim|P2566}} {{#invoke:Wikidata|claim|P2566}}] }}
We may either add it to {{Chembox Identifiers}} or to {{Chembox Hazards}} (InfoCards contain relevant regulatory information). --Leyo 08:36, 3 October 2016 (UTC)
- I would just source this from WD, no need for first making this local while we are already discussing for some information to make the move (and, depending on how 'comparable' WD and local data really is, I am in favour of sourcing over local data). Support adding the code to {{Chembox Identifiers}} and/or {{Chembox Hazards}} (there is different information on different urls). --Dirk Beetstra T C 09:02, 3 October 2016 (UTC)
- I am not sure if I got your first sentence right. The suggestion is to transclude the ID from Wikidata, not to copy it. --Leyo 09:31, 3 October 2016 (UTC)
- That is what I meant as well: transclusion, Leyo. --Dirk Beetstra T C 10:31, 3 October 2016 (UTC)
- Since the InfoCard (example) contains a summary and links to other interesting pages, it is probably enough to link only this one for now. --Leyo 20:35, 3 October 2016 (UTC)
- That is what I meant as well: transclusion, Leyo. --Dirk Beetstra T C 10:31, 3 October 2016 (UTC)
- I am not sure if I got your first sentence right. The suggestion is to transclude the ID from Wikidata, not to copy it. --Leyo 09:31, 3 October 2016 (UTC)
I have boldly implemented it in the Chembox Identifiers, see diff. Please revert if it does break somewhere, it is rather difficult to test this in the testcases. --Dirk Beetstra T C 05:14, 4 October 2016 (UTC)
- Thank you. I haven't spotted any issues so far. --Leyo 08:22, 4 October 2016 (UTC)
Add option for local input?
Today, in the 10.600 {{Chembox}} articles some 6000 are showing this d:ECHA InfoCard ID value. Should we add a local (enwiki) parameter |ECHA InfoCard ID=
to allow local overwriting/adding? These situations may occur: 1. the WD value may be incorrect for the article, or need detailing. This requires a local source to be used (|ECHA InfoCard ID ref=
), and checking these articles is a maintenance task (using a tracking category). 2. The en:article title may not be the exact WD item title, so the WD check fails and returns a blank. Useful? -DePiep (talk) 08:22, 17 November 2016 (UTC)
- If an InfoCard ID is missing at Wikidata, it should get added there. Or could you provide an example where is wouldn't work? --Leyo 13:04, 17 November 2016 (UTC)
- I don't have an example. I thought of the situation where the article title differs from the WD-item. This category lists ~500 with multiple chemicals (by using
|CASNon=
-indexes). Sure these indexed chemicals could have their own ECHA (which could be indexed too or could use the expensive non-natural item fetch, if I'm correct). -DePiep (talk) 13:14, 17 November 2016 (UTC)
- I don't have an example. I thought of the situation where the article title differs from the WD-item. This category lists ~500 with multiple chemicals (by using
Also in {Drugbox} then?
Today, {{Infobox drug}} does not have some parameter |ECHA Infocard=
. Worth adding, by Wikidata automated? -DePiep (talk) 21:26, 19 November 2016 (UTC)
- Well, drugs are not so much in the scope of REACH and CLP the thus of the ECHA. However, I assume that there are still many compounds with drugbox that have an ECHA InfoCard. --Leyo 18:40, 20 November 2016 (UTC)
- You might be able to verify that using the lists of articles with a Wikidata item containing that property (irrespective of the infobox used in the articles). --Leyo 23:26, 23 November 2016 (UTC)
- To learn what? If we (enwiki editors) decide that we should add the ECHA data points to the drugbox, then we´ll do it (from Wikidata or by local input does not matter). It is not the right route to say "Wikidata has it, so let's add it". -DePiep (talk) 10:41, 24 November 2016 (UTC)
- It's about the availability of InfoCards at ECHA. The InfoCard IDs (if existing) were added by a bot to all Wikidata items with a CAS RN. --Leyo 22:40, 24 November 2016 (UTC)
- Ergh, no. If we, editors, decide ENCHA data link should be in {{Infobox drug}}: it will be in there. Either by Wikidata, or by local input. BUT. Today ENCHA is not an accepted input option, so ECHA is not releveant input. -DePiep (talk) 22:49, 24 November 2016 (UTC)
- What's ENCHA? --Leyo 22:58, 24 November 2016 (UTC)
- "ENCHA" is a common, generic name for "any data thing you want it to mean". By context, that should be clear already. If you need extra individual advice by example, just read: "ECHA". -DePiep (talk) 23:10, 24 November 2016 (UTC)
- Well, if in the lists mentioned above there were very few articles with drugbox, it would probably not be worth adding such a parameter to drugbox. This is what is the potential use of these lists. --Leyo 23:17, 24 November 2016 (UTC)
- That's my question in point: how is it "worth" inclusion/exclusion by this reasoning? If few drugs have an ECHA, these must be remarkable exceptions. If many have, it's quite common to have an ECHA. Both ways: good to add. Be sure, this can be said about dozens of data points (today already: E number food additive). A good reason not to add ECHA (either local or from Wikidata) is: "ECHA is not relevant (enough) for a drug" (I do not know this myself, to be clear. It is what I'm asking here). -DePiep (talk) 06:59, 25 November 2016 (UTC)
- Well, if in the lists mentioned above there were very few articles with drugbox, it would probably not be worth adding such a parameter to drugbox. This is what is the potential use of these lists. --Leyo 23:17, 24 November 2016 (UTC)
- "ENCHA" is a common, generic name for "any data thing you want it to mean". By context, that should be clear already. If you need extra individual advice by example, just read: "ECHA". -DePiep (talk) 23:10, 24 November 2016 (UTC)
- What's ENCHA? --Leyo 22:58, 24 November 2016 (UTC)
- Ergh, no. If we, editors, decide ENCHA data link should be in {{Infobox drug}}: it will be in there. Either by Wikidata, or by local input. BUT. Today ENCHA is not an accepted input option, so ECHA is not releveant input. -DePiep (talk) 22:49, 24 November 2016 (UTC)
- It's about the availability of InfoCards at ECHA. The InfoCard IDs (if existing) were added by a bot to all Wikidata items with a CAS RN. --Leyo 22:40, 24 November 2016 (UTC)
- To learn what? If we (enwiki editors) decide that we should add the ECHA data points to the drugbox, then we´ll do it (from Wikidata or by local input does not matter). It is not the right route to say "Wikidata has it, so let's add it". -DePiep (talk) 10:41, 24 November 2016 (UTC)
There are currently 2579 out of 6529 articles (40%) with drugbox that have an InfoCard ID on Wikidata. --Leyo 08:08, 30 November 2016 (UTC)
- Leyo. I've formally put the question at Template_talk:Infobox_drug#Add ECHA InfoCard?. (I'd rather not spend time advocating, I'll just see what happens. I want to spend my wikitime on introducing Wikidata big time in these templates). -DePiep (talk) 16:23, 1 December 2016 (UTC)
- Added to drugbox, see talklink. Note: before this edit, the category listed 6084 Articles (that's from the ~10200 Chembox's only). -DePiep (talk) 10:48, 8 December 2016 (UTC)
- Leyo. I've formally put the question at Template_talk:Infobox_drug#Add ECHA InfoCard?. (I'd rather not spend time advocating, I'll just see what happens. I want to spend my wikitime on introducing Wikidata big time in these templates). -DePiep (talk) 16:23, 1 December 2016 (UTC)
Tracking category
Article ECHA InfoCard needed
We need article ECHA InfoCard. Today, 6000 articles link to it. Link to ECHA is not enough. -DePiep (talk) 19:40, 27 November 2016 (UTC)
Searching for duplicated pages
With ~16k compounds listed in chembox and drugbox I've sometimes wondered if there are duplicated pages. Obscure compounds could be named all sorts of things, particularly things like Category:Substituted_amphetamines and other designer drugs, where many people are trying to access every possible simple analogue but where indexing is understandably poor. I presume the best way to do this would be to scan all of the identifiers (CAS, Pubchem, etc) for duplications. There's not previously been a tool for doing that, and building one seems like a pretty poor use of time as it might not find anything. Now that these values have been moved to wikidata would searching for duplications be any easier? --Project Osprey (talk) 23:38, 5 December 2016 (UTC)
- I'm working to (first) get the Wikidata link in the infoboxes, and the CAS number from WD. PubChem is next (because higly present in WD). Drugbox in tandem. Need some smart categorisation (cat:no Wikidata item/value, cat:enwiki local input differs from Wikidata value, etc.). These categories are a maintenance job (why no item?, why different CAS values?, PubChem values?). Numbers of pages in those cat's, I can not guess. I also expect more systematic issues: Widata truly wants: one compound=one item, nicotine seems to have two CAS numbers. These might need Wikidata involvement. Also, we have 500+ articles with multiple compounds (indexed CAS numbers), to handle & categorise re Wikidata.
- But that does not address your question. For now, I cannot even think of a smart query setup. May I suggest: within days/weeks, there will be enough articles listed to walk through to check re Wikidata, by these other categories. Duid you have any plans for the holydays? -DePiep (talk) 23:58, 5 December 2016 (UTC)
- A brute-force approach is use a database dump. One can pre-select a certain category if there were to be one that tracked all pages using chembox, but even the raw whole WP would be usable. If we have actual values in the WP chembox templates, it's easy to parse out a list of [pagetitle]->[chembox_casno] pairs and then look for dups in the [chembox_casno] values. If the values are imported from WD, then either it needs to be done on a WD export (and I don't know how to parse that!) and also cross-checked against any that are still hardcoded in WP. But it might be possible to dump the rendered pages or something like that, with the WD values pre-imported to WP. DMacks (talk) 00:06, 6 December 2016 (UTC)
- That does sound like a truly awful way to spend Christmas... If a convenient tool doesn't exist now I'm sure it will later. Any large database needs a way of detecting duplicated entries. --Project Osprey (talk) 00:12, 6 December 2016 (UTC)
- A brute-force approach is use a database dump. One can pre-select a certain category if there were to be one that tracked all pages using chembox, but even the raw whole WP would be usable. If we have actual values in the WP chembox templates, it's easy to parse out a list of [pagetitle]->[chembox_casno] pairs and then look for dups in the [chembox_casno] values. If the values are imported from WD, then either it needs to be done on a WD export (and I don't know how to parse that!) and also cross-checked against any that are still hardcoded in WP. But it might be possible to dump the rendered pages or something like that, with the WD values pre-imported to WP. DMacks (talk) 00:06, 6 December 2016 (UTC)
- (ec) Still, wouldn't it be better to have a primary cleanup first: remove/fix all erroneous CAS numbers (categorised as: conflicting local:CASNo versus d:CASnumber)? -DePiep (talk) 00:16, 6 December 2016 (UTC)
There are Parnaparin sodium vs. Bemiparin sodium or Tinzaparin sodium vs. Semuloparin sodium vs. Dalteparin sodium sharing the same CAS RN. --Leyo 08:52, 6 December 2016 (UTC)
- You could make a container category Category:Chemical duplicates by CAS-number, categorise all by [[:Category:<CAS number>]], and have a bot fill all the [[:Category:<CAS number>]] pages with '{{hidden category}} Category:Chemical duplicates by CAS-number'. One could then just browse through the pages of Category:Chemical duplicates by CAS-number, see all the subcategories, and each subcategory would tell how many pages are in there. All that have more than one are suspect. It is however going to be an awful tree with no further use. The only other thing I can think about is to have a script parse out all the CAS-numbers, toss them in a .csv with the pagename, load the .csv into a spreadsheet program and sort them by CAS-number. Add a column with "=if(A2=A1,'duplicate','')" in each cell, and see which ones show up. The former solution is easy to implement before Christmas .. the latter is indeed an awful way to spend Christmas .. --Dirk Beetstra T C
- The latter solution should by the way be done on wikidata-data, making a listing like I said. That could then also nicely include all pages on other wikis, so one also kills the other bird: Chemicals which exist elsewhere but not here locally (but could be ported). --Dirk Beetstra T C 10:32, 6 December 2016 (UTC)
- I won't spend any time on this, I promise, provided that this excercise does not interfere with the developments I am working om. Especially the sandbox stacks and
|CASNo=
param handling are off-limits. Deal? -DePiep (talk) 11:54, 6 December 2016 (UTC)- We only might ask you to categorise chem/drugboxes by CAS-number by adding a little piece of code (well, it is already there, just the other half of the 'IF there is no CASNo THEN categorise as a compound without CASNo') .. I will not touch it myself either (without consultation). --Dirk Beetstra T C 13:04, 6 December 2016 (UTC)
- Already today there is Category:CAS registry number tracking categories. (Today there is no Wikidata check at all).
- And as I wrote a few posts earlier, within days/weeks the first WD + CASNo tracking cats will go live. Any expansion of the logic is a headache and bad development practice. I see no need to speed up this particular dups-check when the primary check (align d:CASnumber with local CASnumber) is about to be available. -DePiep (talk) 13:23, 6 December 2016 (UTC)
- We only might ask you to categorise chem/drugboxes by CAS-number by adding a little piece of code (well, it is already there, just the other half of the 'IF there is no CASNo THEN categorise as a compound without CASNo') .. I will not touch it myself either (without consultation). --Dirk Beetstra T C 13:04, 6 December 2016 (UTC)
- I won't spend any time on this, I promise, provided that this excercise does not interfere with the developments I am working om. Especially the sandbox stacks and
- Meanwhile, over at Wikidata: this. -DePiep (talk) 15:18, 8 December 2016 (UTC)
- I was going to suggest such, but the constraint vios cannot be filtered to en.wp-specific content ([un]fortunately). --Izno (talk) 15:20, 8 December 2016 (UTC)
Tracking category "mass overwritten" dropped
Tracking Category:Chemical articles having calculated molecular weight overwritten has been removed from the populating infoboxes {Chembox}, {Drugbox}. Empty now, and will not be populated again. The original intention was: compare entered mass (|MolarMass=
) with calculated mass. Well, that did not work. -DePiep (talk) 22:26, 10 December 2016 (UTC)
Added parameter | Drug_class to pharmacology section
Similar to Infobox drug, I have addded |Drug_class=
to section {{Chembox Pharmacology}}. It shows in top, right above the ATC code. Also, I have moved the Legal_status data to the bottom of that section, outside of medical (clinical etc. ) data. -DePiep (talk) 11:13, 17 December 2016 (UTC)