编辑“︁
Template:Element color/doc
”︁
跳转到导航
跳转到搜索
这是
Element color
模板的
文档页面
。
警告:
您没有登录。如果您进行任何编辑,您的IP地址会公开展示。如果您
登录
或
创建账号
,您的编辑会以您的用户名署名,此外还有其他益处。
反垃圾检查。
不要
加入这个!
{{Documentation subpage}} 本模板用於統一各種元素週期表的配色及格式。<br> 此模板返回元素的圖例十六進制色碼,用於HTML編碼,如: * {{tlf|Element color|<nowiki>Alkali metal</nowiki>}} → <code>{{element color|alkali metal}}</code> * 有些顏色作為字體前景色之用,如: * {{tlf|Element color|<nowiki>gas</nowiki>}} → <code>{{Element color|gas}}</code> * 有些返回值為完整的邊框設定,如: * {{tlf|Element color|<nowiki>Synthetic</nowiki>}} → <code>{{element color|synthetic}}</code> 駐:事實上真正返回的代碼類似 <code><nowiki>&#x23;ffc0c0;</nowiki></code> (<code><nowiki>&#x23;</nowiki></code> 為 "#"). 如此任何HTML頁面才不會將<nowiki>#</nowiki>視為編號用符號。 ==字體前景色選項== :{{code|1=style=color}} ''attribute value'' :用法: <code><nowiki>style="color:{{element color|gas}};"</nowiki></code> ===物質相態(前景色)=== * {{Element color/example|Solid|attr=color}} * {{Element color/example|Liquid|attr=color}} * {{Element color/example|Gas|attr=color}} * {{Element color/example|Unknown phase|attr=color}} ==方格邊框選項== :{{code|1=style=border}} ''attribute value'' :用法:<code><nowiki>style="border:{{element color|synthetic}};"</nowiki></code> ===發現方法 (邊框)=== * {{Element color/example|Primordial|attr=border}} * {{Element color/example|From decay|note="Natural radio" deprecated|attr=border}} * {{Element color/example|Synthetic|attr=border}} * {{Element color/example|Undiscovered|attr=border}} * {{Element color/example|None|attr=border}} ==背景色選項== :{{code|1=style=background}} ''attribute value'' :用法: <code><nowiki>style="background:{{element color|alkali metals}};"</nowiki></code> ===金屬–非金屬分類=== * {{Element color/example|Alkali metals}} * {{Element color/example|Alkaline earth metals}} * {{Element color/example|Lanthanides}} * {{Element color/example|Actinide}} * {{Element color/example|Transition metal}} * {{Element color/example|Post-transition metal}} * {{Element color/example|Metalloid}} * {{Element color/example|Reactive nonmetal}} * {{Element color/example|Noble gas}} * {{Element color/example|Unknown chemical properties}} ===Standard atomic weight=== * {{Element color/example|saw-header}} * {{Element color/example|saw}} * {{Element color/example|msi-header}} * {{Element color/example|msi}} :msi = most stable isotope ===發現時期=== * {{Element color/example|Antiquity to Middle Ages}} * {{Element color/example|Before 1800}} * {{Element color/example|1800-1849}} * {{Element color/example|1850-1899}} * {{Element color/example|1900-1949}} * {{Element color/example|1950-1999}} * {{Element color/example|2000-present}} 例子: {{tl|Periodic table (discovery periods)}} ===Blocks=== * {{Element color/example|s-block}} * {{Element color/example|p-block}} * {{Element color/example|d-block}} * {{Element color/example|f-block}} * {{Element color/example|g-block|note=unused, g-block does not exist. This color is used to derive the 'predicted' color}} In period 8, theoretical elements: * {{Element color/example|s-block (predicted)}} * {{Element color/example|p-block (predicted)}} * {{Element color/example|d-block (predicted)}} * {{Element color/example|f-block (predicted)}} * {{Element color/example|g-block (predicted)}} ===Numbers=== Used in: [[Valence (chemistry)#Maximum valences of the elements]] These colors correspond to the [[#Alkali metal–noble gases range|Alkali metal–noble gases range]] * {{Element color/example|0}} * {{Element color/example|1}} * {{Element color/example|2}} * {{Element color/example|3}} * {{Element color/example|4}} * {{Element color/example|5}} * {{Element color/example|6}} * {{Element color/example|7}} * {{Element color/example|8}} * {{Element color/example|9}} * {{Element color/example|unknown valence}}<!-- Mt etc. --> ===Metalloid cite classes=== See [[Template:Periodic table (list of metalloid lists)]] * {{Element color/example|Metalloid citeclass 1of4|note=currently: 93%}} * {{Element color/example|Metalloid citeclass 2of4|note=currently: 44%}} * {{Element color/example|Metalloid citeclass 3of4|note=currently: 24%}} * {{Element color/example|Metalloid citeclass 4of4|note=currently: 9%}} ===Setting a default color=== :{{para|1|not a color name}} {{para|default|&#x23;aabbcc}} → {{Element color|1=not a color name |default=#aabbcc}} (use &#x23; not #) :{{para|1|not a color name}} {{para|default|thistle}} → {{Element color|1=not a color name |default=thistle}} ==="Unknown" variants=== Usable in mainspace * {{Element color/example|Unknown|note=Deprecated, too generic}} * {{Element color/example|White}} * {{Element color/example|Unknown chemical properties}} -- Category * {{Element color/example|Unknown phase|attr=color|Note=Font color}} --SoM * {{Element color/example|Undiscovered|attr=border|note=Border}} -- Occurrence * {{Element color/example|none|attr=border|note=Border}} -- Occurrence ===Wikipedia article quality=== Used in: [[Wikipedia:WikiProject Elements/Articles/Periodic Table by Quality]] * {{Element color/example|aq-FA}} * {{Element color/example|aq-A}} * {{Element color/example|aq-GA|note=Formal color is {{code|1=#66ff66}}}} * {{Element color/example|aq-B|note=Formal color is {{code|1=#b2ff66}}}} * {{Element color/example|aq-C}} * {{Element color/example|aq-Start}} * {{Element color/example|aq-Stub}} ===Wikipedia article importance=== * {{Element color/example|imp-Top}} * {{Element color/example|imp-High}} * {{Element color/example|imp-Mid}} * {{Element color/example|imp-Low}} * {{Element color/example|imp-???}} * {{Element color/example|imp-n/a}} ===Color names=== * {{Element color/example|Black}} * {{Element color/example|White}} * {{Element color/example|blue}} * {{Element color/example|green}} * {{Element color/example|red}} * {{Element color/example|yellow}} ===Table background=== * {{Element color/example|table title}} * {{Element color/example|table header}} * {{Element color/example|table colheader}} * {{Element color/example|table mark}} * {{Element color/example|table background}} * {{Element color/example|table border|attr=border}} {{Element color/table/overview}} ==Colors hardcoded== The same colors, with the same key, may be hardcoded in templates and pages: * See [[:Category:Pages containing element color directly|Category]] * {{tlx|Periodic table (32 columns, micro)/elementcell}} * {{tlx|Periodic table (Goldschmidt classification)}} (cells, not the legend) * {{tlx|Periodic table (electron configuration lanthanides)}} ==Template data== {{TemplateDataHeader|nolink=1}} <templatedata> { "params": { "1": { "label": "Color class name", "description": "Predefined class name to return its legend color", "example": "alkali metal", "type": "string", "required": true } }, "description": "This template returns an RGB color number, for usage in css style setting (style=\"background:#ab23a6\"). For certain input, a css fontcolor or border style is returned." } </templatedata> ==Deprecated and experimental parameters== Those not for mainspace are kept in {{tl|Element color/secondary}} ==See also== * {{tl|element color/secondary}} -- development and deprecated colors etc., should not appear in mainspace. * {{tl|element color/example}} * {{tl|element cell/overview}}
摘要:
请注意,所有对Local Chinese Wikipedia的贡献均可能会被其他贡献者编辑、修改或删除。如果您不希望您的文字作品被随意编辑,请不要在此提交。
您同时也向我们承诺,您提交的内容为您自己所创作,或是复制自公共领域或类似自由来源(详情请见
Project:著作权
)。
未经许可,请勿提交受著作权保护的作品!
取消
编辑帮助
(在新窗口中打开)
导航菜单
个人工具
未登录
讨论
贡献
创建账号
登录
命名空间
模板
讨论
大陆简体
不转换
简体
繁體
大陆简体
香港繁體
澳門繁體
大马简体
新加坡简体
臺灣正體
查看
阅读
编辑
查看历史
更多
搜索
导航
首页
最近更改
随机页面
MediaWiki帮助
工具
链入页面
相关更改
特殊页面
页面信息