模板:Grey

来自百问网嵌入式Linux wiki
Wiki讨论 | 贡献2020年11月10日 (二) 09:03的版本 (创建页面,内容为“<noinclude> ==Usage== Historically, the Grey template was used '''to color text''' in pages, with the "classic MediaWiki grey" color. It is now map…”)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)

Usage

Historically, the Grey template was used to color text in pages, with the "classic MediaWiki grey" color. It is now mapped on the STDarkGrey template that is a STMicroelectronics corporate color.

Usage:  {{Grey|<text to color>}}

Where <text to color> is the text to format in grey. If this template is called with no text, the hexadecimal code of the color is returned.

Warning.png Do not use this template anymore: use the STDarkGrey template instead.

Basic examples

You type You get
Coloring text in "classic MediaWiki" grey: it is now mapped on the STDarkGrey template
This was a {{Grey|"classic MediaWiki" color: grey: █}}: it is now mapped on the ST dark grey.

This was a "classic MediaWiki" color: grey: █: it is now mapped on the ST dark grey.

Getting the hexadecimal code of the color
{{Grey}} is the hexadecimal code of STMicroelectronics dark grey.

模板:STDarkGrey is the hexadecimal code of STMicroelectronics dark grey.

More examples

You type You get
Grey and bold
This was a {{Grey|'''"classic MediaWiki"'''}} color: '''{{Grey|grey: █}}''': it is now mapped on the ST dark grey.

This was a "classic MediaWiki" color: grey: █: it is now mapped on the ST dark grey.

Grey and italic
This was a {{Grey|''"classic MediaWiki"''}} color: ''{{Grey|grey: █}}'': it is now mapped on the ST dark grey.

This was a "classic MediaWiki" color: grey: █: it is now mapped on the ST dark grey.

Code

模板:STDarkGrey