Template talk:BioChemInfoBox

From Wikipedia, the free encyclopedia

[edit] Old code

This code is in the trash can - it is not flexible, and in the template call it is hard to remember what comes after what. -- Boris 06:42, 30 December 2005 (UTC)

This is a template that i (for sure), and probably others, are going to use for the articles for the small biological molecules. To call the template i need to write the following code:

{{BioChemInfoBox|v1|v2|v3|v4|v5|v6|v7|v8|v9|v10|v11|v12|v13|v14|v15|v16}}

where, v1,v2...v16 are the values for the template parameters.

v1 - the name of the image file including the extension

v2 - the title of the image

v3 - the background color of the header. Any color format can be used [color_name, #XXYYZZ or rgb(XXX,YYY,ZZZ)].

v4 - the border color. Any color format can be used [color_name, #XXYYZZ or rgb(XXX,YYY,ZZZ)].

v5 - the width of image area - any size format can be used, i preffer to use the "px" format as the sizes of my images are in pixels. Also i use a standard "320" size as most of the images i have are with this width, the extra "6" in the width of the table - 326px - are to compensate for the "3px" padding space that i have on both side of the image.

v6 - the complete UIPAC name, if not know then "?". Be caefull with the UIPAC names, some of them might have several [[, {{, [[[, {{{, ]], }}, }}}, or ]]] brakes that will mess things up, use ((, (((, )), or ))) instead.

v7 - the abbreviations. If a compound has two of them a short one and a long one, the short comes first followed by "," and then the long one - eaxh α-amino acid has a one-letter and three-letter abbreviations so for Alanine the value of v7 would be "A,Ala". If not know then "?".

v8 - the synonyms. If there more than one they shoud be orginized alphabetically (the Greek alphabet comes before the Latin one) and separated by "<br />". If not know then "?".

v9 - the chemical formula. The following format should be use - Cn1Hn2Nn3On4Pn5Sn6. If not know then "?".

v10 - Molecular mass. If not know then "?".

v11 - the number of the H-bonds in which the molecule acts as a donor. If not know then "?".

v12 - the number of the H-bonds in which the molecule acts as an acceptor. If not know then "?".

v13 - the number of the tautomer forms. If not know then "?".

v14 - the values for "Acid dissociation constant", if there is more than one then separated by "<br />". If not know then "?".

v15 - The CAS registry number. If not know then "?".

v16 - The EINECS number. If not know then "?".



{{{var1}}} {{{var1}}} {{OrganicBox_{{{template_name}}} | var1={{{atom_name}}} | var2={{{atom_color}}} | var3={{{atom_abb}}} | var4={{{atom_number}}} }}

{{{var1}}} {{{var1}}} {{{var1}}} {{{var1}}}

BioChemInfoBox
Systematic name {{{var1}}}
Physical properties
M (g/mol) ρ (g/cm³) Tm (°C) Tb (°C)
? ? ? ?
Chemical properties
Tautomers ?
Miscellaneous
CAS number {{{var1}}}
PubChem ?
Infobox and References

For an example the following template call

{{BioChemInfoBox|m5ump.gif|5-Methyluridine monophosphate|#F8EABA|#C0C090|320|1-[3,4-dihydroxy-5-(hydroxymethyl)oxolan-2-yl]-5-methyl-pyrimidine-2,4-dione|m<sup>5</sup>UMP|Ribosylthymine
Thymine arabinoside
|C<sub>10</sub>H<sub>14</sub>N<sub>2</sub>O<sub>6</sub>|258.228|4|6|3|?|?|?}}

will have the result on the left.

Nah, the "Elements" have a better one, i will use the idea behind it. BorisTM 17:53, 28 October 2005 (UTC)

[edit] New code

Here is another one

The Template The code

{{BioChemInfoBox
| name=Arginine
| image=Arginine.png
| width=100
| IUPAC=2-Amino-5-guanidino-pentanoic acid
| formula=C<sub>6</sub>H<sub>14</sub>N<sub>4</sub>O<sub>2</sub>
| mass=174.2
| density=
| Tb=?
| pI=10.76
| pKa=2.03<br/>9.00<br/>12.10
| accept=
| tautomers=3
| CAS=74-79-3
| PubChem=232
}}

{{{var1}}} {{{var1}}} {{OrganicBox_{{{template_name}}} | var1={{{atom_name}}} | var2={{{atom_color}}} | var3={{{atom_abb}}} | var4={{{atom_number}}} }}

{{{var1}}} {{{var1}}}

BioChemInfoBox
Systematic name {{{var1}}}
Physical properties
M (g/mol) ρ (g/cm³) Tm (°C) Tb (°C)
174.2 ? ? ?
Chemical properties
Isoelectric point {{{var1}}}
pKa 2.03
9.00
12.10
Tautomers 3
Miscellaneous
CAS number {{{var1}}}
PubChem 232
Infobox and References


[edit] Comments