跳至內容

Template:Element color

維基教科書,自由的教學讀本

Template:Element color/secondary

attribute value

用法:style="border:{{element color|synthetic}};"

發現方法 (邊框)

[編輯]

背景色選項

[編輯]
XML Example

attribute value

用法: style="background:{{element color|alkali metals}};"

金屬–非金屬分類

[編輯]

Standard atomic weight

[編輯]
msi = most stable isotope

發現時期

[編輯]

例子: {{Periodic table (discovery periods)}}

Blocks

[編輯]

In period 8, theoretical elements:

Numbers

[編輯]

Used in: Valence (chemistry)#Maximum valences of the elements These colors correspond to the Alkali metal–noble gases range

Metalloid cite classes

[編輯]

See Template:Periodic table (list of metalloid lists)

Setting a default color

[編輯]
|1=not a color name |default=#aabbccTemplate:Element color/secondary (use # not #)
|1=not a color name |default=thistleTemplate:Element color/secondary


"Unknown" variants

[編輯]

Usable in mainspace

Wikipedia article quality

[編輯]

Used in: Wikipedia:WikiProject Elements/Articles/Periodic Table by Quality

Wikipedia article importance

[編輯]

Color names

[編輯]

Table background

[編輯]

Template:Element color/table/overview

Colors hardcoded

[編輯]

The same colors, with the same key, may be hardcoded in templates and pages:


Template data

[編輯]
這是用於新版視覺化編輯器及其他工具的模板資料文件。

Element color模板資料

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.

模板參數[編輯模板資料]

參數描述類型狀態
Color class name1

Predefined class name to return its legend color

範例
alkali metal
字串必填

Deprecated and experimental parameters

[編輯]

Those not for mainspace are kept in {{Element color/secondary}}

See also

[編輯]