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

提供:日本TW架空国家WIKI

<templatestyles></templatestyles>

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

  • Element color のいくつかはフォント用に準備されています。

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

フォント色 options

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

物質の状態 (font color)

セルの境界色 options

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

元素の発現 (cell border)

背景色 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
テンプレート:Element color/example
テンプレート:Element color/example
テンプレート:Element color/example
テンプレート:Element color/example
テンプレート:Element color/example
テンプレート:Element color/example
テンプレート:Element color/example
テンプレート:Element color/example
テンプレート:Element color/example
テンプレート:Element color/example
テンプレート:Element color/example
テンプレート:Element color/example
テンプレート:Element color/example
テンプレート:Element color/example

元素ブロック

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

Numbers

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

テンプレート:Element color/example テンプレート:Element color/example
テンプレート:Element color/example テンプレート:Element color/example
テンプレート:Element color/example テンプレート:Element color/example
テンプレート:Element color/example テンプレート:Element color/example
テンプレート:Element color/example テンプレート:Element color/example
テンプレート:Element color/example テンプレート:Element color/example
テンプレート:Element color/example テンプレート:Element color/example
テンプレート:Element color/example テンプレート:Element color/example
テンプレート:Element color/example
テンプレート:Element color/example

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

ユーザ定義による色指定

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

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

指定例)

  • |default=&#x23;aabbcc
テンプレート:Element color/sandbox (use &#x23; not #) テンプレート:Legend inline
  • |not a color name |default=&#x23;aabbcc
テンプレート:Element color/sandbox (use &#x23; not #) テンプレート:Legend inline
  • |1=not a color name |2=&#x23;aabbcc
テンプレート:Element color/sandbox テンプレート:Legend inline
  • |not a color name |&#x23;aabbcc
テンプレート:Element color/sandbox テンプレート:Legend inline
  • |not a color name |#aabbcc
テンプレート:Element color/sandbox テンプレート:Legend inline
  • |not a color name |default=thistle
テンプレート:Element color/sandbox テンプレート:Legend inline
  • |not a color name |thistle=
テンプレート:Element color/sandbox テンプレート:Legend inline
  • |not a color name |default=gainsboro
テンプレート:Element color/sandbox テンプレート:Legend inline

"Unknown" variants

Usable in mainspace

ベーシックカラー

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

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

Table background

Colors hardcoded

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


Template data

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

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 name1

Predefined class name to return its legend color

alkali metal
文字列必須