Jump to content
Toggle menu
  • 8 articles
  • 75 files
  • 7 users
  • 37.8K edits
Neodyland Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Color: Difference between revisions

Template page
m +example
m +expl
Line 10: Line 10:


To draw just a ''color '''box''''' with ''bg''-color use it like
To draw just a ''color '''box''''' with ''bg''-color use it like
* <nowiki>{{</nowiki>Color||<nowiki>{{</nowiki>0|00}}|bg=#0A0}} → {{color||{{0|00}}|bg=#0a0}} &ensp; or &ensp; <nowiki>{{</nowiki>Color|1=#F0F|2=XX|bg=#F0F}} → {{color|1=#F0F|2=XX|bg=#F0F}} &ensp; or &ensp; {{Tlx|Cbox|#CCC}} → {{cbox|#ccc}}
* <nowiki>{{</nowiki>Color||<nowiki>{{</nowiki>0|00}}|bg=#0a0}} → {{color||{{0|00}}|bg=#0a0}} &ensp; or &ensp; <nowiki>{{</nowiki>Color|1=#F0F|2=XX|bg=#F0F}} → {{color|1=#F0F|2=XX|bg=#F0F}} &ensp; or &ensp; {{Tlx|Cbox|#CCC}} → {{cbox|#ccc}}
 
 
To just '''''tooltip''''' a text use it like<br>
<nowiki>The <u>{{color|#000|underlined text|title=tooltip example}}</u> is ''{{W|tooltip}}ped'' </nowiki>: {{0}} The <u>{{color|#000|underlined text|title=tooltip example}}</u> is ''{{W|tooltip}}ped''. 




It is also possible to define ''additional CSS data'', e.g.<br>
It is also possible to define ''additional CSS data'', e.g.<br>
<nowiki>{{color|#000|'''color box text'''|bg=#CFC|</nowiki>'''css='''border:2px dotted #F80|'''title'''=example}} → {{color|#000|'''color box text'''|bg=#CFC|css=border:2px dotted #F80|title=example}}
<nowiki>{{color|#000|'''color box text'''|bg=#CFC|</nowiki>'''css='''border:2px dotted #F80|'''title'''=color box example}} → {{color|#000|'''color box text'''|bg=#CFC|css=border:2px dotted #F80|title=color box example}}




For colors see: {{W|Web colors}}.
For colors see: {{W|Web colors}}. Three-digit hexadecimal color tables are shown  {{Wd|Hilfe:KF|there}}.  


The {{color|black|''bg''-color|title=background-color-tooltipping}} is {{W|Tooltip|''tooltipped''}} — move the cursor to the field to see
The {{color|black|''bg''-color|title=background-color-tooltipping}} is {{W|Tooltip|''tooltipped''}} — move the cursor to the field to see

Revision as of 05:34, 21 May 2014

!


Usage: {{color|color|text}}

Examples:

  • {{color|red|example text}} → example text
  • {{color|#00F|example text}} → example text
  • {{color|white|example text|bg=black}} → example text


To draw just a color box with bg-color use it like

  • {{Color||{{0|00}}|bg=#0a0}} → 00   or   {{Color|1=#F0F|2=XX|bg=#F0F}} → XX   or   {{Cbox|#CCC}} → 00


To just tooltip a text use it like
The <u>{{color|#000|underlined text|title=tooltip example}}</u> is ''{{W|tooltip}}ped'' : 0 The underlined text is tooltipped.


It is also possible to define additional CSS data, e.g.
{{color|#000|'''color box text'''|bg=#CFC|css=border:2px dotted #F80|title=color box example}} → color box text


For colors see: Web colors. Three-digit hexadecimal color tables are shown there.

The bg-color is tooltipped — move the cursor to the field to see

af:Sjabloon:Kleur ar:قالب:لون da:Skabelon:Color de:Vorlage:Farbindex en:Template:Color fr:Modèle:Coloré ja:Template:Color nl:Sjabloon:Tekstkleur no:Mal:Farve pl:Szablon:Kolor pt:Predefinição:Color ro:Format:Color ru:Шаблон:Color sl:Predloga:Barva uk:Шаблон:Кольоровий текст zh-yue:Template:Color

Cookies help us deliver our services. By using our services, you agree to our use of cookies.