利用者:Nova replet laetitia/sandbox/宇宙・物理・自然科学/Template:Element color

transparent

このテンプレートはHTMLマークアップで用いる元素の色を返します:

  • {{Element color|アルカリ金属}}   アルカリ金属 → #ff6666 
  • {{Element color|noble gas}}   noble gas → #c0ffff 
  • Element color のいくつかはフォント用に準備されています。
  • Element color のいくつかはボーダー線用に以下のようなフルの設定素を返します:
  • {{Element color|放射性}}   放射性 → solid 4px #3030f3 
  • {{Element color|Synthetic}}   synthetic → dashed 4px #3030f3 

Note: 実際に返されるコードは: #ffc0c0; (# は "#" の文字コード)のようになります。 HTMLページで色コードを記述するために使う「#」は使わないでください。

フォント色 options[編集]

style=color attribute value
In code: style="color:{{element color|gas}};"

物質の状態 (font color)[編集]

  • A  固体 → #000000 
  • A  液体 → #008000 
  • A  気体 → #cb0000 
  • A  相不明 → #808080 

セルの境界色 options[編集]

style=border attribute value
In code: style="border:{{element color|synthetic}};"

元素の発現 (cell border)[編集]

  •    安定 → solid 4px #30301c  -- alt: Primodial
  •    放射性 → solid 4px #3030f3 Note: "Natural radio" deprecated -- alt: From Decay
  •    人工 → dashed 4px #3030f3  -- alt: Synthetic
  •    未確定 → dashed 4px #686853  -- alt: Claimed
  •    未発見 → dotted 4px #686853  -- alt: Undiscovered
  •    なし → transparent  -- alt: None

背景色 options[編集]

style=background attribute value
In code: style="background:{{element color|アルカリ金属}};"

金属–非金属 categories[編集]

  •    金属 → #eee8aa  -- alt: Alkali Metal
   metal(pred) → #f4f2cc 
  •    半金属 → #cccc99  -- alt: Metalloid
   metalloid(pred) → #cccc99 
  •    非金属 → #b0e0e6  -- alt: Non Metal
   non metal(pred) → #b0e0e6 
  •    内部遷移金属 → #d8bfd8  -- alt: Non Metal
   inner transition metal(pred) → #d8bfd8 
  •    アルカリ金属 → #ff6666  -- alt: Alkalie Metal
   alkali metal(pred) → #fcd7c0 
  •    アルカリ土類金属 → #ffdead  -- alt: Alkaline Earth Metal
   alkaline earth metal(pred) → #ffecd3 
  •    ランタノイド → #ffbfff  -- alt: Lanthanide
   lanthanide(pred) → transparent 
  •    アクチノイド → #ff99cc  -- alt: Actinide
   actinide(pred) → transparent 
  •    超アクチノイド → #d1ddff  -- alt: Super-Actinide
   superactinide(pred) → transparent 
  •    エカ超アクチノイド → #c6dd9d  --alt: Eka-Superactinide
   eka superactinide(pred) → transparent 
  •    遷移金属 → #ffc0c0  -- alt: Transition Metal
   transition metal(pred) → #ffe2e2 
  •    ポスト遷移金属 → #cccccc  -- alt: Post-Transition Metal
   post-transition metal(pred) → #e8e8e8 
  •    多原子非金属 → #a1ffc3  -- alt: Poly-Atomic Non-Metal
   poly-atomic nonmetal(pred) → #d0ffe1 
  •    反応性非金属 → #e0ff8f  -- alt: Reactive Non-Metal
   reactive nonmetal(pred) → #e4ffc0 
  •    水素 → #f3ff83  -- alt: Hydrogen
   hydrogen(pred) → #f4ffb7 
  •    二原子非金属 → #ffff70  -- alt: Di-Atomic Non-Metal
   diatomic nonmetal(pred) → #ffffc7 
  •    ハロゲン → #fff850  -- alt: Halogen
   halogen(pred) → #fffdb7 
  •    貴ガス → #c0ffff  -- alt: Noble Gas
   noble gas(pred) → #ddffff 
  •    化学的性質不明 → #f3f3f3 
   unknown chemical property(pred) → transparent 

元素ブロック[編集]

  •    sblock → #ff5ca7 
  •    pblock → #fff350 
  •    dblock → #b0b0ff 
  •    fblock → #bcffa0 
  •    gblock → #f3a053 

第8周期で予測される理論上の元素:

  •    sblock(pred) → #ffcccc 
  •    pblock(pred) → #ffffbf 
  •    dblock(pred) → #c7eeff 
  •    fblock(pred) → #cdffcc 
  •    gblock(pred) → #facc80 

Numbers[編集]

価電子」の項で使われる価数(酸化数)の対応色。これらの色はアルカリ金属(+1)からハロゲン(-1)までを対応させている。

  • 0  0 → #c0ffff 
   貴ガス → #c0ffff     予測貴ガス → #ddffff 
  • 1  1 → #ff8989 
   アルカリ金属 → #ff6666     予測アルカリ金属 → #fcd7c0 
  • 2  2 → #ffdead 
   アルカリ土類金属 → #ffdead     予測アルカリ土類金属 → #ffecd3 
  • 3  3 → #ffbfff 
   遷移金属 → #ffc0c0     予測遷移金属 → #ffe2e2 
  • 4  4 → #cccccc 
   ポスト遷移金属 → #cccccc     予測ポスト遷移金属 → #e8e8e8 
  • 5  5 → #cccc99 
   半金属 → #cccc99     予測半金属 → #cccc99 
  • 6  6 → #a0ffa0 
   多原子非金属 → #a1ffc3     予測多原子非金属 → #d0ffe1 
  • 7  7 → #ffff99 
   ハロゲン → #fff850     予測ハロゲン → #fffdb7 
  • 8  8 → #d1ddff 
   超アクチノイド → #d1ddff 
  • 9  9 → #c6dd9d 
   エカ超アクチノイド → #c6dd9d 
  •    unknown valence → transparent Note: Mt etc.

「半金属」に含める元素の言及サイトの多さ(Metalloid cite classes)[編集]

  •    Metalloid citeclass 1of4 → #baffba Note: currently: 93%
  •    Metalloid citeclass 2of4 → #badcff Note: currently: 44%
  •    Metalloid citeclass 3of4 → #ffbadc Note: currently: 24%
  •    Metalloid citeclass 4of4 → #ffffba Note: currently: 9%

ユーザ定義による色指定[編集]

テンプレートに{{{default=}}}でパラメータを指定することで任意の色を指定できます。"default="で指定しない場合は Default 値が返ります。

  • {{{1}}}:本テンプレートに指定された色名
  • {{{default=}}}:本テンプレートに指定された色名、Webカラーが使用できます。”#”は使用しないでください。

指定例)

  • |default=#aabbcc
→ #aabbcc (use # not #)   
  • |not a color name |default=#aabbcc
→ #aabbcc (use # not #)   
  • |1=not a color name |2=#aabbcc
→ transparent   
  • |not a color name |#aabbcc
→ transparent   
  • |not a color name |#aabbcc
→ transparent   
  • |not a color name |default=thistle
→ thistle   
  • |not a color name |thistle=
→ transparent   
  • |not a color name |default=gainsboro
→ gainsboro   

"Unknown" variants[編集]

Usable in mainspace

  •    Unknown → transparent Note: Deprecated, too generic
  •    White → #ffffff 
  •    Unknown chemical properties → transparent  -- Category
  • A  Unknown phase → #808080  -- For usage FONT color, SoM
  •    Undiscovered → dotted 4px #686853  -- For usage BORDER color, Occurrence
  •    none → transparent  -- For usage BORDER color, Occurrence

ベーシックカラー[編集]

以下の基本色が指定できます。

  •    Black → #000000 
  •    White → #ffffff 
  •    blue → #0000ff 
  •    green → #008000 
  •    red → #ff0000 
  •    yellow → #ffff00 

Webカラーを指定したい場合は ”|default=” で指定してください。

  •    default=tealteal
  •    default=#edce8d#edce8d

Table background[編集]

  •    table title → #d8d8d8 
  •    table header → #e0e0e0 
  •    table colheader → #e8e8e8 
  •    table mark → #f0f0f0 
  •    table background → #f8f8f8 
  •    table border → #a9a9a9 

Colors hardcoded[編集]

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


Template data[編集]

これはビジュアルエディターテンプレートウィザードにより使用されるテンプレートのためのTemplateData文書です。

Nova replet laetitia/sandbox/宇宙・物理・自然科学

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
文字列必須