Registered User mNo edit summary |
Registered User m (→More examples) |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
==Usage== | ==Usage== | ||
The [[Template:Orange|Green]] template is used '''to color text''' in pages, with the {{Orange|"classic orange" (█)}} color. | The [[Template:Orange|Green]] template is used '''to color text''' in pages, with the {{Orange|"classic MediaWiki orange" (█)}} color. | ||
Usage: <nowiki>{{</nowiki>Orange|{{HighlightParam|<text to color>}}}} | Usage: <nowiki>{{</nowiki>Orange|{{HighlightParam|<text to color>}}}} | ||
Where {{HighlightParam|<text to color>}} is the text to format in orange. If this template is called with no text, the hexadecimal code of the color is returned. | Where {{HighlightParam|<text to color>}} is the text to format in orange. If this template is called with no text, the hexadecimal code of the color is returned. | ||
{{Info|Prefer the STMicroelectronics | {{Info|Prefer the STMicroelectronics corporate colors.}} | ||
==Basic examples== | ==Basic examples== | ||
Line 11: | Line 11: | ||
! You type !! You get | ! You type !! You get | ||
|- | |- | ||
| Coloring text in "classic" orange | | Coloring text in "classic MediaWiki" orange | ||
<pre style="white-space: pre-wrap;"> | <pre style="white-space: pre-wrap;"> | ||
This is a {{Orange|"classic" color: orange: █}} | This is a {{Orange|"classic MediaWiki" color: orange: █}} | ||
</pre> | </pre> | ||
| | | | ||
This is a {{Orange|"classic" color: orange: █}} | This is a {{Orange|"classic MediaWiki" color: orange: █}} | ||
|- | |- | ||
| Getting the hexadecimal code of the color | | Getting the hexadecimal code of the color | ||
<pre style="white-space: pre-wrap;"> | <pre style="white-space: pre-wrap;"> | ||
{{Orange}} is the hexadecimal code of the "classic" orange. | {{Orange}} is the hexadecimal code of the "classic MediaWiki" orange. | ||
</pre> | </pre> | ||
| | | | ||
{{Orange}} is the hexadecimal code of the "classic" orange. | {{Orange}} is the hexadecimal code of the "classic MediaWiki" orange. | ||
|} | |} | ||
Line 32: | Line 32: | ||
| Orange and bold | | Orange and bold | ||
<pre style="white-space: pre-wrap;"> | <pre style="white-space: pre-wrap;"> | ||
This is a {{Orange|'''"classic"'''}} color: '''{{Orange|orange: █}}''' | This is a {{Orange|'''"classic MediaWiki"'''}} color: '''{{Orange|orange: █}}''' | ||
</pre> | </pre> | ||
| | | | ||
This is a {{Orange|'''"classic"'''}} color: '''{{Orange|orange: █}}''' | This is a {{Orange|'''"classic MediaWiki"'''}} color: '''{{Orange|orange: █}}''' | ||
|- | |- | ||
| Orange and italic | | Orange and italic | ||
<pre style="white-space: pre-wrap;"> | <pre style="white-space: pre-wrap;"> | ||
This is a {{Orange|''"classic"''}} color: ''{{Orange|orange: █}}'' | This is a {{Orange|''"classic MediaWiki"''}} color: ''{{Orange|orange: █}}'' | ||
</pre> | </pre> | ||
| | | | ||
This is a {{Orange|''"classic"''}} color: ''{{Orange|orange: █}}'' | This is a {{Orange|''"classic MediaWiki"''}} color: ''{{Orange|orange: █}}'' | ||
|} | |} | ||
==Maintenance== | |||
This template is a template common to all ST wikis. <br> | |||
Modifications must be done into the [[stwikimodel:Template:Orange|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>{{#if: {{{1|}}}|<span style="color: orange;">{{{1}}}</span>|#FFA500}} | </noinclude>{{#if: {{{1|}}}|<span style="color: orange;">{{{1}}}</span>|#FFA500}} |
Latest revision as of 17:31, 23 February 2021
1. Usage
The Green template is used to color text in pages, with the "classic MediaWiki orange" (█) color.
<text to color>}}Usage: {{Orange|
Where <text to color> is the text to format in orange. If this template is called with no text, the hexadecimal code of the color is returned.
2. Basic examples
You type | You get |
---|---|
Coloring text in "classic MediaWiki" orange
This is a {{Orange|"classic MediaWiki" color: orange: █}}
|
This is a "classic MediaWiki" color: orange: █ |
Getting the hexadecimal code of the color
{{Orange}} is the hexadecimal code of the "classic MediaWiki" orange.
|
#FFA500 is the hexadecimal code of the "classic MediaWiki" orange. |
3. More examples
You type | You get |
---|---|
Orange and bold
This is a {{Orange|'''"classic MediaWiki"'''}} color: '''{{Orange|orange: █}}'''
|
This is a "classic MediaWiki" color: orange: █ |
Orange and italic
This is a {{Orange|''"classic MediaWiki"''}} color: ''{{Orange|orange: █}}''
|
This is a "classic MediaWiki" color: orange: █ |
4. Maintenance
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
#FFA500