模板:Green

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

Usage

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

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

Where <text to color> is the text to format in green. 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 STDarkGreen template instead.

Basic examples

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

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

Getting the hexadecimal code of the color
{{Green}} is the hexadecimal code of STMicroelectronics dark green.

#04572F is the hexadecimal code of STMicroelectronics dark green.

More examples

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

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

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

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

Code

#04572F