|
 |
這個模板在原始碼中包含了一些非常複雜的可选參數和構造。
这个模版的结构精密,除非您确认非常了解它的用途和构造细节,并且能够修复这个修改所有可能引起的变更,否则请不要随意更动这个模板。所有实验性的步骤请在沙盒模版内,或是您的用户页内进行。使用前请参阅讨论页。
|
本模板用於製作描述化合物詳細性質的表格,又稱化學品框。
[编辑] 使用
從#如何製作該表格?一節中選取一個適當的模版引用方法,複製到條目中,並添加相應數據。如果你不能找到所有數據也不必擔心,基本的數據也會很有用,維基百科的其他編者也會幫忙補充。
基本原則:
- 不應刪除你不知道數據的參數,因爲空出的參數不會在條目中顯示,但能提示其他編者幫忙補其空白。但你可以刪除不適用於該條目的參數(見#附加的節和參數)。
- 不要用{{subst:}}展開這個模板,這會產生大量使人難以理解的代碼,使今後難以編輯參數,且尚缺少的參數也不會留出空位,同時大量增加條目的無意義的字節數(展開的Chembox new模板平均將比未展開的多1000個字節)。
- 爲使表格下的補充項目能夠顯示出來,補充頁必須存在。當一個化學品框過大時,應該考慮把數據轉移到一個獨立頁([[頁面名/數據頁]])中。
[编辑] 如何製作該表格?
化學品框大體是一個模塊化的設計,包括若干節(Section),每節包含相關的一些性質,如物理性質、危險性等。考慮化合物的具體性質,一些節可以去除或者增補。
如果需要添加一類性質參數(即添加一個塊),可以將此節從完全模板中粘貼到化學品框中(注意每個塊的序號要不同,每個塊以 | Section# = {{Chembox 起始(井號“#”用序號代替)並以 }} 終止。各節不得相互嵌套。一個化學品框最多包含15節,但目前只用了8個。
最後顯示的各節的排列順序取決於節的序號,而非取決於在模版中節的排列次序。假如一個化學品同時具有爆炸性和毒性,毒性相對更重要而需要放在前面,就可以把毒性放在一個序號較小的節中。節的序號要求在1-15的範圍中,且沒有重覆。
有如下可展開的模板(在化學品條目中加入如{{subst:Chembox new subst}},保存,然後再編輯):
特殊的:
[编辑] 簡單版本
使用時直接把下面其中一欄(中文或英文)的代碼複製到文檔中,填充數據即可。也可使用 {{subst:Chembox new subst small}} ,保存後再編輯。
| 英文代碼 |
中文代碼 |
說明 |
{{Chembox new
| Name =
| NameEn =
| ImageFile =
| ImageSize =
| IUPACName =
| IUPACNameZh =
| OtherNames =
| Abbreviations =
| Section1 = {{Chembox new Identifiers
| CASNo =
| PubChem =
| SMILES =
}}
| Section2 = {{Chembox new Properties
| Formula =
| MolarMass =
| Appearance =
| Density =
| MeltingPt =
| BoilingPt =
| Solubility =
}}
| Section3 = {{Chembox new Hazards
| MainHazards =
| FlashPt =
| Autoignition =
}}
}}
|
{{Chembox new
| 名稱 =
| 英文名 =
| ImageFile =
| ImageSize =
| IUPAC英 =
| IUPAC中 =
| 別名 =
| 縮寫 =
| Section1 = {{Chembox new 識別
| CAS號 =
| PubChem =
| SMILES =
}}
| Section2 = {{Chembox new 性質
| 化學式 =
| 摩爾質量 =
| 外觀 =
| 密度 =
| 熔點 =
| 沸點 =
| 溶解度 =
}}
| Section3 = {{Chembox new 危險性
| 主要危險 =
| 閃點 =
| 自燃 =
}}
}}
|
模板名稱
* 化學品名稱,默認爲頁面名
* 英文名
* 圖片的文件名.svg (非[[Image:文件名.svg]]形式)
* 圖片大小 (例:圖片大小=100px 。默認200px)
* 英文IUPAC名稱
* 中文IUPAC名稱
* 化學品標識塊
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
|
[编辑] 完全版本
使用時,將英文代碼或中文代碼欄複製到文檔中,填充數據即可。也可使用 {{subst:Chembox new subst}} ,保存後再編輯。
| 英文代碼 |
中文代碼 |
說明 |
{{Chembox new
| Name =
| NameEn =
| ImageFile =
| ImageSize =
| IUPACName =
| IUPACNameZh =
| SystematicName =
| OtherNames =
| Section1 = {{Chembox new Identifiers
| Abbreviations =
| CASNo =
| EINECS =
| EINECSCASNO =
| PubChem =
| SMILES =
| InChI =
| RTECS =
| MeSHName =
| ChEBI =
| KEGG =
| ATCCode_prefix =
| ATCCode_suffix =
| ATC_Supplemental =}}
| Section2 = {{Chembox new Properties
| Formula =
| MolarMass =
| Appearance =
| Density =
| MeltingPt =
| Melting_notes =
| BoilingPt =
| Boiling_notes =
| Solubility =
| SolubleOther =
| Solvent =
| LogP =
| VaporPressure =
| HenryConstant =
| AtmosphericOHRateConstant =
| Viscosity =
| Viscosity_notes =
| pKa =
| pKb = }}
| Section3 = {{Chembox new Structure
| CrystalStruct =
| Coordination =
| MolShape = }}
| Section4 = {{Chembox new Thermochemistry
| DeltaHf =
| DeltaHc =
| Entropy =
| HeatCapacity = }}
| Section5 = {{Chembox new Pharmacology
| AdminRoutes =
| Bioavail =
| Metabolism =
| HalfLife =
| ProteinBound =
| Excretion =
| Legal_status =
| Legal_US =
| Legal_UK =
| Legal_AU =
| Legal_CA =
| PregCat =
| PregCat_AU =
| PregCat_US = }}
| Section6 = {{Chembox new Explosive
| ShockSens =
| FrictionSens =
| ExplosiveV =
| REFactor = }}
| Section7 = {{Chembox new Hazards
| EUClass =
| EUIndex =
| MainHazards =
| NFPA-H =
| NFPA-F =
| NFPA-R =
| NFPA-O =
| RPhrases =
| SPhrases =
| RSPhrases =
| FlashPt =
| Autoignition =
| ExploLimits =
| PEL = }}
| Section8 = {{Chembox new Related
| OtherAnions =
| OtherCations =
| OtherFunctn =
| Function =
| OtherCpds = }}
}}
|
{{Chembox new
| 名稱 =
| 英文名 =
| ImageFile =
| ImageSize =
| IUPAC英 =
| IUPAC中 =
| 系統命名 =
| 別名 =
| Section1 = {{Chembox new 識別
| 縮寫 =
| CAS號 =
| EINECS =
| EINECSCASNO =
| PubChem =
| SMILES =
| InChI =
| RTECS =
| MeSHName =
| ChEBI =
| KEGG =
| ATC碼前綴 =
| ATC碼後綴 =
| ATC補充 =}}
| Section2 = {{Chembox new 性質
| 化學式 =
| 摩爾質量 =
| 外觀 =
| 密度 =
| 熔點 =
| 熔點註 =
| 沸點 =
| 沸點註 =
| 溶解度 =
| 溶解度其它 =
| 溶劑 =
| LogP =
| 蒸汽壓 =
| 亨利常數 =
| AtmosphericOHRateConstant =
| 黏度
| 黏度註
| pKa =
| pKb = }}
| Section3 = {{Chembox new 結構
| CrystalStruct =
| Coordination =
| MolShape = }}
| Section4 = {{Chembox new 熱力學
| DeltaHf =
| DeltaHc =
| 熵 =
| 熱容 = }}
| Section5 = {{Chembox new 藥用
| AdminRoutes =
| Bioavail =
| Metabolism =
| HalfLife =
| ProteinBound =
| Excretion =
| Legal_status =
| Legal_US =
| Legal_UK =
| Legal_AU =
| Legal_CA =
| PregCat =
| PregCat_AU =
| PregCat_US = }}
| Section6 = {{Chembox new 爆炸性
| ShockSens =
| FrictionSens =
| ExplosiveV =
| REFactor = }}
| Section7 = {{Chembox new 危險性
| EUClass =
| EUIndex =
| 主要危險 =
| NFPA-H =
| NFPA-F =
| NFPA-R =
| NFPA-O =
| RPhrases =
| SPhrases =
| RSPhrases =
| 閃點 =
| 自燃 =
| 爆炸極限 =
| PEL = }}
| Section8 = {{Chembox new 相關
| 其它陰離子 =
| 其它陽離子 =
| OtherFunctn =
| Function =
| 相關化學品 = }}
}}
|
模板名稱
* 化學品名稱(默認爲頁面名)
* 英文名稱,當與英語頁名一致時可自動鏈接至英語數據頁
* 文件名.svg (非[[Image:文件名.svg]]形式)
* 圖片大小 (例:圖片大小=100px 。默認200px)
* 英文IUPAC名稱
* 中文IUPAC名稱
* 系統命名法
* 其它名稱
化學品標識塊
* 簡稱
* CAS號, links to eMolecules
* EINECS, links to ecb; URL is http://ecb.jrc.it/esis/index.php?GENRE=ECNO&ENTREE=
* also EINECS, but URL is http://ecb.jrc.it/esis/index.php?GENRE=CASNO&ENTREE=
* PubChem, links to pubchem
* SMILES, no link
* InChI, no link
* RTECS, no link
* Medical Subject Headings, links to NIH
* ChEBI, links to EBI
* KEGG, links to genome.ad.jp
* ATCCode prefix (first three characters), internal link
* ATCCode suffix (last 4 characters), full ATC links to WHO C.C.
* Other ATC codes (use the {{ATC}} template)
Section Properties - Physical properties
* the molecular formula
* molecular weight, including unit
* Its appearance
* Density, including unit.
* Melting Point, including unit.
* Notes on melting point.
* Boiling Point, including unit.
* Notes on boiling point.
* Solubility in water
* Solubility in other solvents, goes together with next
* In which solvent it is soluble
* Partition coefficient
* Vapor pressure
* Henry's law constant (kH)
* Atmospheric OH rate constant
* 黏度
* 黏度註釋(溫度等)
* pKa
* pKb
Section Structure - Crystal structure information
* Crystal Structure
* Coordination
* Molecular Shape
Section Thermochemistry - Thermochemical properties
* Delta Hf
* Delta Hc
* Entropy
* Heat Capacity
Section Pharmacology - Pharmacology/drug data
* Admin Routes
* Bioavailability
* Metabolism
* Half Life
* Protein Bound
* Excretion
* Legal status
* Legal status in US
* Legal status in UK
* Legal status in AU
* Legal status in CA
* Pregnacy Category
* Pregnacy Category in US
* Pregnacy Category in AU
Section Explosive - Explosive properties
* Shock Sensitivity
* Friction Sensitivity
* Explosive speed
* RE Factor
Section Hazards - Hazards
* EU Class
* EU Index
* Main Hazards
* NFPA-H - Health
* NFPA-F - Fire
* NFPA-R - Reactivity
* NFPA-O - one of the values W, OX, COR, ALK, ACID, CRYO, RA, or empty
* RPhrases - use the {{R}} template for this
* SPhrases - use the {{S}} template for this
* RSPhrases - or use the combination of the two above
* Flash Point
* Autoignition
* Explosion Limits
* PEL
Section Related - Related compounds etc.
* Other Anions
* Other Cations
* Other Function - works with the next field
* Function - the function
* Other Compounds - chemical 'see also' section
結尾
|
[编辑] 中等版本
使用時直接把下面其中一欄(中文或英文)的代碼複製到文檔中,填充數據即可。也可使用 {{subst:Chembox new subst medium}} ,保存後再編輯。
| 英文代碼 |
中文代碼 |
說明 |
{{Chembox new
| Name =
| NameEn =
| ImageFile =
| ImageSize =
| IUPACName =
| IUPACNameZh =
| OtherNames =
| Section1 = {{Chembox new Identifiers
| Abbreviations =
| CASNo =
| EINECS =
| PubChem =
| SMILES =
| InChI =
| RTECS =
| MeSHName =
| ChEBI =
| KEGG =
| ATCCode_prefix =
| ATCCode_suffix =
| ATC_Supplemental =}}
| Section2 = {{Chembox new Properties
| Formula =
| MolarMass =
| Appearance =
| Density =
| MeltingPt =
| Melting_notes =
| BoilingPt =
| Boiling_notes =
| Solubility =
| SolubleOther =
| Solvent =
| pKa =
| pKb = }}
| Section7 = {{Chembox new Hazards
| EUClass =
| EUIndex =
| MainHazards =
| NFPA-H =
| NFPA-F =
| NFPA-R =
| NFPA-O =
| RPhrases =
| SPhrases =
| RSPhrases =
| FlashPt =
| Autoignition =
| ExploLimits =
| PEL = }}
}}
|
{{Chembox new
| 名稱 =
| 英文名 =
| ImageFile =
| ImageSize =
| IUPAC英 =
| IUPAC中 =
| 別名 =
| Section1 = {{Chembox new 識別
| 縮寫 =
| CAS號 =
| EINECS =
| PubChem =
| SMILES =
| InChI =
| RTECS =
| MeSHName =
| ChEBI =
| KEGG =
| ATC碼前綴 =
| ATC碼後綴 =
| ATC補充 =}}
| Section2 = {{Chembox new 性質
| 化學式 =
| 摩爾質量 =
| 外觀 =
| 密度 =
| 熔點 =
| 熔點註 =
| 沸點 =
| 沸點註 =
| 溶解度 =
| 溶解度其它 =
| 溶劑 =
| pKa =
| pKb = }}
| Section7 = {{Chembox new 危險性
| EUClass =
| EUIndex =
| 主要危險 =
| NFPA-H =
| NFPA-F =
| NFPA-R =
| NFPA-O =
| RPhrases =
| SPhrases =
| RSPhrases =
| 閃點 =
| 自燃 =
| 爆炸極限 =
| PEL = }}
}}
|
Template name
* 化學品名稱(默認爲頁面名)
* 英文名稱,當與英語頁名一致時可自動鏈接至英語數據頁
* filename.svg (not [[image:filaneme.svg]]
* picture size (example: ImageSize=100px, default=200px)
* 英文IUPAC名稱
* 中文IUPAC名稱
* any other name
Section Identifiers - Standard numbers etc.
* any abbreviations
* CAS Number, links to eMolecules
* EINECS, links to ecb
* PubChem, links to pubchem
* SMILES, no link
* InChI, no link
* RTECS, no link
* Medical Subject Headings, links to NIH
* ChEBI, links to EBI
* KEGG, links to genome.ad.jp
* ATCCode prefix (first three characters), internal link
* ATCCode suffix (last 4 characters), full ATC links to WHO C.C.
* Other ATC codes (use the {{ATC}} template)
Section Properties - Physical properties
* the molecular formula
* molecular weight, including unit
* Its appearance
* Density, including unit.
* Melting Point, including unit.
* Notes on melting point.
* Boiling Point, including unit.
* Notes on boiling point.
* Solubility in water
* Solubility in other solvents, goes together with next
* In which solvent it is soluble
* pKa
* pKb
Section Hazards - Hazards
* EU Class
* EU Index
* Main Hazards
* NFPA-H - Health
* NFPA-F - Fire
* NFPA-R - Reactivity
* NFPA-O - one of the values W, OX, COR, ALK, ACID, CRYO, RA, or empty
* RPhrases - use the {{R}} template for this
* SPhrases - use the {{S}} template for this
* RSPhrases - or use the combination of the two above
* Flash Point
* Autoignition
* Explosion Limits
* PEL
-end
|
[编辑] 表格中的高級參數
化學框還有一些附加的參數可以使用:
可以在此項中加入用 <ref> </ref> 括起的參考文獻,並在文檔尾部加入 <references />。
[编辑] 具體解釋
[编辑] 過大的表格
化學品框可以容納大量數據,也可以很方便地添加新的參數(甚至完整版本裏面所沒有的)。這樣會造成一個龐大的表格。若一個表格過大,可以考慮將表格中的部分數據轉移到 [[頁面名/數據頁]] 中。化學品框可以自動識別這個附加的數據頁並加上相應鏈接。(注意:英文維基百科的數據頁採用 [[pagename (data page)]] 的名稱,在把數據頁翻譯成中文時應注意更改頁面名稱。)
[编辑] 編排順序
本模板中參數的排列順序不影響最後顯示結果,順序既可以是本模板中編排好的,也可以用以下的次級模板順序:
以及隱藏的次級模板:
- {{Chembox new 附加}} (當 [[頁面名/數據頁]] 存在時顯示,若不存在,顯示[[:en:NameEn (data page)]](NameEn爲參數之一,應語英文維基條目名一致),若再無則不顯示)。
若需更改各節順序,要加上 Section# = {{Chembox new 節名稱。進行此編輯需要小心格式。不需要使用的節可以去除,而不必更改排列順序。
[编辑] 附加的節和參數
化學品框是模塊化的模板,相關的參數以節來組織,可根據需要添加相應的節。目前已有的節如下(可進入各節的次級模板察看具體說明):
除了在前面幾種長度的模板中列出的參數以外,也可以添加其它的項目。本模板中可以增加附加的圖片項目(描述見下),在各次級模板中也有一些可用的參數。詳細的列表參見各次級模板的說明。
[编辑] 參數顯示
除了特殊的複雜的參數以外,大多數參數通過其名稱本身的模板控制。一個參數的模板,而非一個參數用來顯示框中的一行(而是否能被顯示取決於節的次級模板是否存在此項)。
例如:
[编辑] 自動的圖片顯示
如果已經有一個圖片和頁面名相同,若未指定圖片名稱,則本模板將能夠自動找到相關的圖片。選擇次序爲:指定圖片、頁面名.svg、頁面名.png、頁面名.gif、頁面名.jpg。如以上圖片均不存在,則條目將被加入Category:缺少結構式的化學品條目分類中。注意:由於多數wikimedia中相應圖片的文件名稱通常爲英文,翻譯成中文時一般都需要指定圖片文件名。 圖片默認寬度爲200px,但可以用圖片大小參數指定其它寬度。
[编辑] 附加圖片
一個化學品框中,除ImageFile參數以外(用ImageSize設定顯示寬度),還可以用參數ImageFile1、ImageFile2、ImageFile3增加三個附加圖片(分別用ImageSize1、ImageSize2、ImageSize3參數更改大小)。默認的圖片大小也是200px。例如:
{{Chembox new
| ImageFile = Furfural structure.png
| ImageSize = 100px
| ImageFile1 = Furfural-3D-vdW.png
| ImageSize1 = 150px
| IUPACName = example
...
|
|
給出了兩個圖片,每個圖片各佔一行,顯示順序爲ImageFile、ImageFile1、ImageFile2、ImageFile3。
對於一些化學品,圖片可能非常小,因此不適合一行之内只顯示一個圖片。對此可以使用ImageFileL1和ImageFileR1參數(分別表示左右)將兩個圖片左右顯示,下一行使用ImageFileR2和ImageFileR2。其相應圖片大小則分別用ImageSizeL1、ImageSizeR1、ImageSizeL2和ImageSizeR2參數來調整,默認大小爲100px。例如:
{{Chembox new
| ImageFileL1 = Furfural structure.png
| ImageSizeL1 =
| ImageFileR1 = Furfural-3D-vdW.png
| ImageSizeR1 =
| IUPACName = example
...
|
|
也可以使用以上的組合,順序是:ImageFile、ImageFile1、ImageFileL1、ImageFileR1、ImageFile2、ImageFile3、ImageFileL2、ImageFileR2。可以據此編排圖片顯示的次序(未指定文件名的參數將不會被顯示)。例如:
{{Chembox new
| ImageFileL1 = Furfural structure.png
| ImageSizeL1 =
| ImageFileR1 = Furfural-3D-vdW.png
| ImageSizeR1 =
| ImageFile2 = Water droplet blue bg05.jpg
| ImageSize2 =
| IUPACName = example
...
|
|
這樣能先給出並排顯示的兩個圖片,再在下面顯示一個圖片。
[编辑] 故障排除
- 當寫進了一個帶有值的參數,卻無任何顯示,或者顯示了錯誤的值,檢查:
- 這個參數是否被列在了正確的節裏面?
- 這個參數是否出現了兩次?第二次出現同樣的參數將使用第一次的值。
- 節是否被正確地擴好?每一節要以 | Section# = {{Chembox new 節名 |開始並以}}結束。
- 節的次序號是否一致?節序號應爲1-15,不能重覆使用,這將導致同一個序號只有第一個指定的節被顯示。
- 參數名的大小寫是否正確?比如PubChem工作正常,但Pubchem或PUBCHEM不能正常顯示。
[编辑] 增加參數
如果需要給化學品框模板增加新的參數:
- 選擇一個適合你的參數進入的節,並在此節中指定一個不和其它參數重覆的參數名。
- 編輯此節相應的模板 [[Template:Chembox new 相應節名]] 。
- 在此節開始處的#if語句中添加{{{你的參數名|}}},以便當你的參數存在時,此節將能夠被顯示。如果未做這一步,當此節僅有這個新參數時,整個節和參數都不能被顯示。
- 依照模板中其它參數的格式寫進你的參數。
- 建立一個新模板[[Template:Chembox new 參數名]] 。内容可根據已有參數改編。
[编辑] 真正的模板在本段中
如需要編輯本模板的實際引用部分,點擊本段的“編輯”。
|
|