La plantilla {{Chembox}}
es un cuadro de información para productos químicos . Tiene una gran cantidad de opciones para agregar datos e imágenes relevantes. El cuadro de información está organizado en secciones como "identificadores" y "peligros".
Chembox tiene un diseño modular. Después de la información general, como el nombre químico y las imágenes, se puede construir a partir de varias secciones, cada una de las cuales cubre un grupo de información (como "farmacología"). Según el compuesto, se pueden agregar o quitar secciones, y dentro de una sección se pueden agregar u omitir parámetros (dejarlos en blanco).
Las secciones y sus parámetros se enumeran a continuación.
Dentro de la plantilla general de chembox (con sus propios parámetros como |ImageFile=
y |IUPACName=
), cada sección se agrega con este patrón (como el valor de un parámetro .|Sectionx=
{{ Chembox | ImageFile = | IUPACName = <!-- más parámetros generales de Chembox aquí --> | Section1 = {{ Identificadores de Chembox | CASNo = | PubChem = <!-- más parámetros de identificador aquí --> }} } }
En este formato, los espacios y las nuevas líneas no tienen significado y se pueden usar libremente para separar secciones (aunque dentro de un valor de datos, un espacio tiene un significado, excepto generalmente los espacios iniciales y finales). Cada sección tiene su propio número en . Luego, una sección se define con y termina con . Las secciones no se pueden "anidar": se debe cerrar una sección con antes de agregar otra .|Section#=
"|Section# = {{Chembox "
"}}"
}}
|Section#= {{Chembox ...
Tenga en cuenta los consejos de la documentación principal de Infobox sobre el uso de la plantilla {{ Unbulleted list }} para presentar varios valores para un parámetro, de modo de garantizar que cada valor comience en una nueva línea y se etiquete de manera adecuada en el marcado subyacente. Esto es particularmente importante con parámetros como |OtherNames=
, ya que muchos nombres usan comas dentro de ellos, y el uso de comas como separadores genera ambigüedad. Por ejemplo:
| OtherNames = {{ Lista sin viñetas | 2,4,6(1 ''H'' ,3 ''H'' ,5 ''H'' )-pirimidinetriona | 2,4,6-trioxohexahidropirimidina | pirimidinetriol | malonilurea | 6-hidroxiuracilo | ''N'' , ''N'' -(1,3-dioxo-1,3-propanediyl)urea }}
| (siguiente parámetro)= <!-- etc. -->
Para usarlo, simplemente copie y pegue la columna izquierda en el documento, completando lo que pueda y guarde:
Para utilizarlo, simplemente copie y pegue la columna de la izquierda en el documento, completando lo que pueda:
Para usarlo, simplemente copie y pegue la columna izquierda en el documento y presione guardar para obtener un Chembox vacío:
| CASNo =| CASNo1 =| CASNo2 =| CASNo3 =| CASNo4 =| CASNo5 =| CASNoOtro =
Los parámetros indexados toman índices "en blanco", del 1 al 5 (seis opciones juntas). Deben tener una entrada directa, como un número de registro CAS correcto.
CASNo, ChEBI, ChEMBL, ChemSpiderID, DrugBank, InChI, KEGG, PubChem, SMILES, UNII, 3DMet, EC_number, RTECS
|_Other=
(como |CASNoOther=
) está disponible para la entrada de texto libre.Cuando el chembox tiene varias sustancias, puedes usar el índice . Asegúrate de que |CASNo3=
y |SMILES3=
sean sobre la misma sustancia, y |CASNo3=
y no|SMILES2=
sean . Trata el índice "0" de la misma manera:
|CASNo=
|InChI=
es es|SMILES=
|CASNo1=
|InChI1=
es es|SMILES1=
|CASNo=
no es no es|InChI1=
|SMILES4=
Al utilizar un parámetro como |index2_label=
, puedes anteponer a cada entrada #2 el mismo prefijo.
{{ chembox | Nombre = [[ Linalol ]] | Sección1 = {{ Identificadores de Chembox | etiqueta_índice = | etiqueta_índice1 = ( ''R'' ) | etiqueta_índice2 = ( ''S'' ) | comentario_índice = (+/−)-linalol | comentario_índice1 = (−)-linalol | comentario_índice2 = (+)-linalol | N.º CAS = 78-70-6 | N.º CAS1 = 126-91-0 | N.º CAS2 = 126-90-9 | N.º CAS_Ref = {{ cascite | correcto | CAS }} | PubChem = 6549 | PubChem1 = 443158 | PubChem2 = 67179 }} } }
|_Comment=
opción.| CASNo_Comentario =| CASNo1_Comentario =| CASNo5_Comentario =
|CASNo_Ref={{cascite|correct|CAS}}
parámetro con argumento coloca una pequeña marca de verificación verde, , después del número CAS, lo que indica que un editor ha confirmado que el número CAS es correcto. Una x roja en un cuadro de información que sigue a cualquier identificador significa que no se ha verificado. Consulte WP:CHEMVAL para obtener más detalles. Están disponibles las siguientes subplantillas de sección:
Y la sección automatizada, que es visible cuando existe 'pagename (página de datos)':
Consulte estas subsecciones para conocer sus opciones de parámetros.
El orden de estas secciones en el cuadro de información se establece únicamente mediante el número de sección ( |Section#=
), no mediante la secuencia escrita. Esta documentación mantiene este orden arbitrario:
| Sección 1 = {{ Identificadores de Chembox }}
| Sección 2 = {{ Propiedades de Chembox }}
| Sección 3 = {{ Estructura de Chembox }}
| Sección 4 = {{ Termoquímica de Chembox }}
| Sección 5 = {{ Explosivos de Chembox }}
| Sección 6 = {{ Farmacología de Chembox }}
| Sección 7 = {{ Peligros de Chembox }}
| Sección 9 = {{ Relacionados con Chembox }}
Las secciones que no se utilizan se pueden eliminar de forma segura, no es necesario volver a numerarlas.
{{Chembox}} se puede utilizar para mostrar solo una subsección, por ejemplo Section3={{Chembox Hazards|...}}
. Cuando se configura |container_only=yes
: No se realiza ningún seguimiento del {{Chembox}} principal (verificaciones de imágenes, categorías de validación de bots, etc.) y se suprime el pie de página (con aviso de STP). Ejemplo: Bromine#Biological role and poisoning . El artículo se incluirá en Category:Chembox contenedor únicamente (47).
Wikipedia Drugbox y Chembox Maker se pueden utilizar para generar automáticamente plantillas de chembox. Para un acceso más rápido, esta herramienta se puede agregar a la sección de herramientas de la barra lateral izquierda de Wikipedia a través de User:Qwerfjkl/scripts/chemboxmaker . La herramienta de llenado de plantillas de Wikipedia de Diberri y Boghog es otra opción para la generación automática de chembox, pero llena menos campos.
Parámetros de imagen para las primeras imágenes:
{{ Chembox <!-- Otros parámetros de chembox pueden ir aquí --> <!-- Fila 1/7 -->|Archivo de imagen =| Nombre de la imagen =| Tamaño de la imagen =|ImageAlt=| Título de la imagen =|Referencia_de_archivo_de_imagen =| ClaseImagen=<!-- Fila 2/7 -->| ArchivoImagen1 =| NombreImagen1 =| Tamaño de imagen1 =|ImageAlt1=| Título de la imagen1 =|ImageFile1_Ref =|ImageClass1 =<!-- Fila 3/7 -->| ArchivoImagenL1 =| NombreImagenL1 =| Tamaño de imagenL1 =|ImageAltL1=|CaptionL1 de la imagen =| Archivo de imagen L1_Ref=|ImageClassL1 =|ArchivoImagenR1 =| NombreImagenR1 =| TamañoImagenR1 =|ImageAltR1=|Captura de imagenR1 =| Archivo de imagen R1_Ref=|ImageClassR1 =| Leyenda de la imagen L1R1=<!-- Aquí pueden ir más parámetros de chembox, como |Section1=... -->}}
Parámetros de imagen para una imagen (ejemplo: Archivo1). Todos son opcionales.
{{ Chembox | ImageFile1 = Furfural.svg | ImageAlt1 = Fórmula esquelética de un anillo de cuatro carbonos y un oxígeno, con un carbono-oxígeno unido a un carbono junto a un oxígeno | ImageName1 = | ImageCaption1 = Aquí se muestra un título | ImageSize1 = | ImageFile1_Ref = ref | ImageClass1 = skin-invert <!-- Use esto para diagramas químicos en negro sobre transparente --> }}
Añadiendo dos imágenes:
{{ Chembox | ImageFile = Furfural.svg | ImageAlt = Fórmula esquelética de un anillo de cuatro carbonos y un oxígeno, con un carbono-oxígeno unido a un carbono junto a un oxígeno | ImageClass = skin-invert | ImageFile1 = Furfural-3D-vdW.png | ImageAlt1 = Modelo tridimensional de esfera rellena de la misma molécula }}
Esto proporciona dos imágenes, cada imagen en su propia fila (nota: ImageFile es la primera imagen, ImageFile1 es la segunda).
Agregar dos imágenes, una al lado de la otra (L1 y R1):
{{ Chembox | ImageFileL1 = Furfural.svg | ImageAltL1 = Fórmula esquelética de un anillo de cuatro carbonos y un oxígeno, con un carbono-oxígeno unido a un carbono junto a un oxígeno | ImageClassL1 = skin-invert | ImageFileR1 = Furfural-3D-vdW.png | ImageAltR1 = Modelo tridimensional de esfera rellena de la misma molécula }}
Esto genera una fila con dos imágenes. Tenga en cuenta que ahora no se proporciona ImageFile.
Esto da la posibilidad de jugar un poco con qué imagen aparece primero (las filas con parámetros vacíos no se muestran). Ejemplo:
{{ Chembox | ImageFileL1 = Furfural.svg | ImageAltL1 = Fórmula esquelética de un anillo de cuatro carbonos y un oxígeno, con un carbono-oxígeno unido a un carbono junto a un oxígeno | ImageFileR1 = Furfural-3D-vdW.png | ImageSizeR1 = | ImageAltR1 = Modelo tridimensional de esfera rellena de la misma molécula | ImageClassR1 = skin-invert | ImageFile2 = Water droplet blue bg05.jpg | ImageAlt2 = Gota de agua que surge del centro de un anillo concéntrico de ondas, evidentemente en respuesta a una gota que aterrizó en el agua justo antes | IUPACName = example }}
Esto da una fila con dos imágenes y otra fila con una imagen.
{{ Chembox | Nombre = ''cis'' -3-Hexen-1-ol | IUPACNames = A, B | PIN = PIN | SystematicName = SYS | OtherNames = {{ Lista sin viñetas | X | Y | Z }} | show_footer = no }}
El número E , el ID de la InfoCard de ECHA|DTXSID=
( Panel de control de sustancias químicas CompTox ) se leen desde Wikidata.
Plantilla de datos para Chembox