Difference between revisions of "Template:Green"

[quality revision] [quality revision]
m
(Merge articles)
 

1 Usage[edit]

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 white.png Warning
Do not use this template anymore: use the STDarkGreen template instead.

2 Basic examples[edit]

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.

3 More examples[edit]

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.

4 Maintenance[edit]

This template is a template common to all ST wikis.
Modifications must be done into the WikiModel. They must be reviewed by all ST wikis maintainers.
When approved, the template can be pushed/merged towards all ST wikis.

5 Code[edit]

#04572F

<noinclude>

==Usage==
Historically, the [[Template:Green|Green]] template was used '''to color text''' in pages, with the "classic MediaWiki green" color. It is now mapped on the [[Template:STDarkGreen|STDarkGreen]] template that is a STMicroelectronics corporate color.

 Usage:  <nowiki>{{</nowiki>Green|{{HighlightParam|<text to color>}}}}
Where {{HighlightParam|<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|Do not use this template anymore: use the [[Template:STDarkGreen|STDarkGreen]] template instead.}}

==Basic examples==
{| class="st-table"
! You type !! You get
|-
| Coloring text in "classic MediaWiki" green: it is now mapped on the [[Template:STDarkGreen|STDarkGreen]] template<pre style="white-space: pre-wrap;">

This was a {{Green|"classic MediaWiki" color: green: &#9608;}}: it is now mapped on the ST dark green.</pre>

|
This was a {{Green|"classic MediaWiki" color: green: &#9608;}}: it is now mapped on the ST dark green.
|-
| Getting the hexadecimal code of the color<pre style="white-space: pre-wrap;">

{{Green}} is the hexadecimal code of STMicroelectronics dark green.</pre>

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

==More examples==
{| class="st-table"
! You type !! You get
|-
| Green and bold<pre style="white-space: pre-wrap;">

This was a {{Green|'''"classic MediaWiki"'''}} color: '''{{Green|green: &#9608;}}''': it is now mapped on the ST dark green.</pre>

|
This was a {{Green|'''"classic MediaWiki"'''}} color: '''{{Green|green: &#9608;}}''': it is now mapped on the ST dark green.
|-
| Green and italic<pre style="white-space: pre-wrap;">

This was a {{Green|''"classic MediaWiki"''}} color: ''{{Green|green: &#9608;}}'': it is now mapped on the ST dark green.</pre>

|
This was a {{Green|''"classic MediaWiki"''}} color: ''{{Green|green: &#9608;}}'': it is now mapped on the ST dark green.
|}	

==Maintenance==
This template is a template common to all ST wikis. <br>

Modifications must be done into the [[stwikimodel:Template:Green|WikiModel]]. They must be reviewed by all  ST wikis maintainers.<br>

When approved, the template can be pushed/merged towards all ST wikis.

==Code==</noinclude>{{STDarkGreen|{{{1|}}}}}
Line 44: Line 44:
 
This was a {{Green|''"classic MediaWiki"''}} color: ''{{Green|green: &#9608;}}'': it is now mapped on the ST dark green.
 
This was a {{Green|''"classic MediaWiki"''}} color: ''{{Green|green: &#9608;}}'': it is now mapped on the ST dark green.
 
|}
 
|}
  +
  +
==Maintenance==
  +
This template is a template common to all ST wikis. <br>
  +
Modifications must be done into the [[stwikimodel:Template:Green|WikiModel]]. They must be reviewed by all  ST wikis maintainers.<br>
  +
When approved, the template can be pushed/merged towards all ST wikis.
   
 
==Code==
 
==Code==
 
</noinclude>{{STDarkGreen|{{{1|}}}}}
 
</noinclude>{{STDarkGreen|{{{1|}}}}}