利用者:Nova replet laetitia/sandbox/宇宙・物理・自然科学/Template:Element color/doc
<templatestyles></templatestyles>
これは利用者:Nova replet laetitia/sandbox/宇宙・物理・自然科学/Template:Element colorの解説サブページです。 使用方法、カテゴリ、およびその他利用者ページ自体に含まれない情報を収容しています。 |
このテンプレートはHTMLマークアップで用いる元素の色を返します:
- {{Element color|アルカリ金属}} →
テンプレート:Element color/example
- {{Element color|noble gas}} →
テンプレート:Element color/example
- Element color のいくつかはフォント用に準備されています。
- Element color のいくつかはボーダー線用に以下のようなフルの設定素を返します:
- {{Element color|放射性}} →
テンプレート:Element color/example
- {{Element color|Synthetic}} →
テンプレート:Element color/example
Note: 実際に返されるコードは: #ffc0c0;
(#
は "#" の文字コード)のようになります。
HTMLページで色コードを記述するために使う「#」は使わないでください。
フォント色 options
style=color
attribute value- In code:
style="color:{{element color|gas}};"
物質の状態 (font color)
- テンプレート:Element color/example
- テンプレート:Element color/example
- テンプレート:Element color/example
- テンプレート:Element color/example
セルの境界色 options
style=border
attribute value- In code:
style="border:{{element color|synthetic}};"
元素の発現 (cell border)
- テンプレート:Element color/example -- alt: Primodial
- テンプレート:Element color/example -- alt: From Decay
- テンプレート:Element color/example -- alt: Synthetic
- テンプレート:Element color/example -- alt: Claimed
- テンプレート:Element color/example -- alt: Undiscovered
- テンプレート:Element color/example -- alt: None
背景色 options
style=background
attribute value- In code:
style="background:{{element color|アルカリ金属}};"
金属–非金属 categories
元素ブロック
- テンプレート:Element color/example
- テンプレート:Element color/example
- テンプレート:Element color/example
- テンプレート:Element color/example
- テンプレート:Element color/example
第8周期で予測される理論上の元素:
- テンプレート:Element color/example
- テンプレート:Element color/example
- テンプレート:Element color/example
- テンプレート:Element color/example
- テンプレート:Element color/example
Numbers
「価電子」の項で使われる価数(酸化数)の対応色。これらの色はアルカリ金属(+1)からハロゲン(-1)までを対応させている。
「半金属」に含める元素の言及サイトの多さ(Metalloid cite classes)
- テンプレート:Element color/example
- テンプレート:Element color/example
- テンプレート:Element color/example
- テンプレート:Element color/example
ユーザ定義による色指定
テンプレートに{{{default=}}}でパラメータを指定することで任意の色を指定できます。"default="で指定しない場合は Default 値が返ります。
- {{{1}}}:本テンプレートに指定された色名
- {{{default=}}}:本テンプレートに指定された色名、Webカラーが使用できます。”#”は使用しないでください。
指定例)
|
→ テンプレート:Element color/sandbox (use # not #) | テンプレート:Legend inline |
|
→ テンプレート:Element color/sandbox (use # not #) | テンプレート:Legend inline |
|
→ テンプレート:Element color/sandbox | テンプレート:Legend inline |
|
→ テンプレート:Element color/sandbox | テンプレート:Legend inline |
|
→ テンプレート:Element color/sandbox | テンプレート:Legend inline |
|
→ テンプレート:Element color/sandbox | テンプレート:Legend inline |
|
→ テンプレート:Element color/sandbox | テンプレート:Legend inline |
|
→ テンプレート:Element color/sandbox | テンプレート:Legend inline |
"Unknown" variants
Usable in mainspace
- テンプレート:Element color/example
- テンプレート:Element color/example
- テンプレート:Element color/example -- Category
- テンプレート:Element color/example -- For usage FONT color, SoM
- テンプレート:Element color/example -- For usage BORDER color, Occurrence
- テンプレート:Element color/example -- For usage BORDER color, Occurrence
ベーシックカラー
以下の基本色が指定できます。
- テンプレート:Element color/example
- テンプレート:Element color/example
- テンプレート:Element color/example
- テンプレート:Element color/example
- テンプレート:Element color/example
- テンプレート:Element color/example
Webカラーを指定したい場合は ”|default=” で指定してください。
- テンプレート:Legend inline
default=teal
→teal
- テンプレート:Legend inline
default=
→#
edce8d#edce8d
Table background
- テンプレート:Element color/example
- テンプレート:Element color/example
- テンプレート:Element color/example
- テンプレート:Element color/example
- テンプレート:Element color/example
- テンプレート:Element color/example
Colors hardcoded
The same colors, with the same key, may be hardcoded in templates and pages:
- See Category
{{Periodic table (32 columns, micro)/elementcell}}
{{Periodic table (Goldschmidt classification)}}
(cells, not the legend){{Periodic table (electron configuration lanthanides)}}
Template data
Nova replet laetitia/sandbox/宇宙・物理・自然科学/Template: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 name | 1 | Predefined class name to return its legend color
| 文字列 | 必須 |