v50 Steam/Premium information for editors
  • v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
  • Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.

Difference between revisions of "Template:Color scheme"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
m (Example)
(use #colorfg)
 
(15 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{| width="50%" style="margin-left: 1cm"
+
<div style="width: auto; margin:0px 20%"><table style="width:100%">
|-
+
<tr>
| bgcolor="#{{{black}}}" width="50%"| <span style="color: #c0c0c0">BLACK</span>
+
<td style="background-color:{{#colorconvert:{{{black|000}}}|hex|hex}}" width="50%> <span style="color: {{#colorfg:{{{black|000}}}}}">BLACK {{{blackt|}}}</span></td>
| bgcolor="#{{{dgray}}}" width="50%"| <span style="color: #c0c0c0">DGRAY</span>
+
<td style="background-color:{{#colorconvert:{{{dgray|000}}}|hex|hex}}" width="50%> <span style="color: {{#colorfg:{{{dgray|000}}}}}">DGRAY {{{dgrayt|}}}</span></td>
|-
+
</tr><tr>
| bgcolor="#{{{blue}}}" width="50%"| <span style="color: #c0c0c0">BLUE</span>
+
<td style="background-color:{{#colorconvert:{{{blue|000}}}|hex|hex}}" width="50%> <span style="color: {{#colorfg:{{{blue|000}}}}}">BLUE {{{bluet|}}}</span></td>
| bgcolor="#{{{lblue}}}" width="50%"| <span style="color: #c0c0c0">LBLUE</span>
+
<td style="background-color:{{#colorconvert:{{{lblue|000}}}|hex|hex}}" width="50%> <span style="color: {{#colorfg:{{{lblue|000}}}}}">LBLUE {{{lbluet|}}}</span></td>
|-
+
</tr><tr>
| bgcolor="#{{{green}}}" width="50%"| <span style="color: #c0c0c0">GREEN</span>
+
<td style="background-color:{{#colorconvert:{{{green|000}}}|hex|hex}}" width="50%> <span style="color: {{#colorfg:{{{green|000}}}}}">GREEN {{{greent|}}}</span></td>
| bgcolor="#{{{lgreen}}}" width="50%"| <span style="color: #000000">LGREEN</span>
+
<td style="background-color:{{#colorconvert:{{{lgreen|000}}}|hex|hex}}" width="50%> <span style="color: {{#colorfg:{{{lgreen|000}}}}}">LGREEN {{{lgreent|}}}</span></td>
|-
+
</tr><tr>
| bgcolor="#{{{cyan}}}" width="50%"| <span style="color: #000000">CYAN</span>
+
<td style="background-color:{{#colorconvert:{{{cyan|000}}}|hex|hex}}" width="50%> <span style="color: {{#colorfg:{{{cyan|000}}}}}">CYAN {{{cyant|}}}</span></td>
| bgcolor="#{{{lcyan}}}" width="50%"| <span style="color: #000000">LCYAN</span>
+
<td style="background-color:{{#colorconvert:{{{lcyan|000}}}|hex|hex}}" width="50%> <span style="color: {{#colorfg:{{{lcyan|000}}}}}">LCYAN {{{lcyant|}}}</span></td>
|-
+
</tr><tr>
| bgcolor="#{{{red}}}" width="50%"| <span style="color: #c0c0c0">RED</span>
+
<td style="background-color:{{#colorconvert:{{{red|000}}}|hex|hex}}" width="50%> <span style="color: {{#colorfg:{{{red|000}}}}}">RED {{{redt|}}}</span></td>
| bgcolor="#{{{lred}}}" width="50%"| <span style="color: #000000">LRED</span>
+
<td style="background-color:{{#colorconvert:{{{lred|000}}}|hex|hex}}" width="50%> <span style="color: {{#colorfg:{{{lred|000}}}}}">LRED {{{lredt|}}}</span></td>
|-
+
</tr><tr>
| bgcolor="#{{{magenta}}}" width="50%"| <span style="color: #c0c0c0">MAGENTA</span>
+
<td style="background-color:{{#colorconvert:{{{magenta|000}}}|hex|hex}}" width="50%> <span style="color: {{#colorfg:{{{magenta|000}}}}}">MAGENTA {{{magentat|}}}</span></td>
| bgcolor="#{{{lmagenta}}}" width="50%"| <span style="color: #000000">LMAGENTA</span>
+
<td style="background-color:{{#colorconvert:{{{lmagenta|000}}}|hex|hex}}" width="50%> <span style="color: {{#colorfg:{{{lmagenta|000}}}}}">LMAGENTA {{{lmagentat|}}}</span></td>
|-
+
</tr><tr>
| bgcolor="#{{{brown}}}" width="50%"| <span style="color: #c0c0c0">BROWN</span>
+
<td style="background-color:{{#colorconvert:{{{brown|000}}}|hex|hex}}" width="50%> <span style="color: {{#colorfg:{{{brown|000}}}}}">BROWN {{{brownt|}}}</span></td>
| bgcolor="#{{{yellow}}}" width="50%"| <span style="color: #000000">YELLOW</span>
+
<td style="background-color:{{#colorconvert:{{{yellow|000}}}|hex|hex}}" width="50%> <span style="color: {{#colorfg:{{{yellow|000}}}}}">YELLOW {{{yellowt|}}}</span></td>
|-
+
</tr><tr>
| bgcolor="#{{{lgray}}}" width="50%"| <span style="color: #000000">LGRAY</span>
+
<td style="background-color:{{#colorconvert:{{{lgray|000}}}|hex|hex}}" width="50%> <span style="color: {{#colorfg:{{{lgray|000}}}}}">LGRAY {{{lgrayt|}}}</span></td>
| bgcolor="#{{{white}}}" width="50%"| <span style="color: #000000">WHITE</span>
+
<td style="background-color:{{#colorconvert:{{{white|000}}}|hex|hex}}" width="50%> <span style="color: {{#colorfg:{{{white|000}}}}}">WHITE {{{whitet|}}}</span></td>
|-
+
</tr>
|}</includeonly><noinclude>
+
</table></div>
This is a template for color schemes, designed for [[cv:Color scheme|color scheme]].
+
{{gamedata|title=colors.txt|
 
+
[BLACK_R:{{#colorconvert:{{{black|000}}}|hex|rgb1}}]
=== Notes===
+
[BLACK_G:{{#colorconvert:{{{black|000}}}|hex|rgb2}}]
* This uses "gray", not "grey"
+
[BLACK_B:{{#colorconvert:{{{black|000}}}|hex|rgb3}}]
* Colors can be defined in any order
+
[BLUE_R:{{#colorconvert:{{{blue|000}}}|hex|rgb1}}]
 
+
[BLUE_G:{{#colorconvert:{{{blue|000}}}|hex|rgb2}}]
=== Example ===
+
[BLUE_B:{{#colorconvert:{{{blue|000}}}|hex|rgb3}}]
<pre><nowiki>
+
[GREEN_R:{{#colorconvert:{{{green|000}}}|hex|rgb1}}]
{{color scheme
+
[GREEN_G:{{#colorconvert:{{{green|000}}}|hex|rgb2}}]
|red=f00
+
[GREEN_B:{{#colorconvert:{{{green|000}}}|hex|rgb3}}]
|green=090
+
[CYAN_R:{{#colorconvert:{{{cyan|000}}}|hex|rgb1}}]
|blue=00f
+
[CYAN_G:{{#colorconvert:{{{cyan|000}}}|hex|rgb2}}]
|white=fff
+
[CYAN_B:{{#colorconvert:{{{cyan|000}}}|hex|rgb3}}]
|black=000
+
[RED_R:{{#colorconvert:{{{red|000}}}|hex|rgb1}}]
|brown=990
+
[RED_G:{{#colorconvert:{{{red|000}}}|hex|rgb2}}]
|yellow=ff0
+
[RED_B:{{#colorconvert:{{{red|000}}}|hex|rgb3}}]
|magenta=f0f
+
[MAGENTA_R:{{#colorconvert:{{{magenta|000}}}|hex|rgb1}}]
|cyan=0ff
+
[MAGENTA_G:{{#colorconvert:{{{magenta|000}}}|hex|rgb2}}]
|lcyan=6ff
+
[MAGENTA_B:{{#colorconvert:{{{magenta|000}}}|hex|rgb3}}]
|lred=f66
+
[BROWN_R:{{#colorconvert:{{{brown|000}}}|hex|rgb1}}]
|lgreen=6f6
+
[BROWN_G:{{#colorconvert:{{{brown|000}}}|hex|rgb2}}]
|lblue=66f
+
[BROWN_B:{{#colorconvert:{{{brown|000}}}|hex|rgb3}}]
|lmagenta=f6f
+
[LGRAY_R:{{#colorconvert:{{{lgray|000}}}|hex|rgb1}}]
|dgray=666
+
[LGRAY_G:{{#colorconvert:{{{lgray|000}}}|hex|rgb2}}]
|lgray=bbb
+
[LGRAY_B:{{#colorconvert:{{{lgray|000}}}|hex|rgb3}}]
 +
[DGRAY_R:{{#colorconvert:{{{dgray|000}}}|hex|rgb1}}]
 +
[DGRAY_G:{{#colorconvert:{{{dgray|000}}}|hex|rgb2}}]
 +
[DGRAY_B:{{#colorconvert:{{{dgray|000}}}|hex|rgb3}}]
 +
[LBLUE_R:{{#colorconvert:{{{lblue|000}}}|hex|rgb1}}]
 +
[LBLUE_G:{{#colorconvert:{{{lblue|000}}}|hex|rgb2}}]
 +
[LBLUE_B:{{#colorconvert:{{{lblue|000}}}|hex|rgb3}}]
 +
[LGREEN_R:{{#colorconvert:{{{lgreen|000}}}|hex|rgb1}}]
 +
[LGREEN_G:{{#colorconvert:{{{lgreen|000}}}|hex|rgb2}}]
 +
[LGREEN_B:{{#colorconvert:{{{lgreen|000}}}|hex|rgb3}}]
 +
[LCYAN_R:{{#colorconvert:{{{lcyan|000}}}|hex|rgb1}}]
 +
[LCYAN_G:{{#colorconvert:{{{lcyan|000}}}|hex|rgb2}}]
 +
[LCYAN_B:{{#colorconvert:{{{lcyan|000}}}|hex|rgb3}}]
 +
[LRED_R:{{#colorconvert:{{{lred|000}}}|hex|rgb1}}]
 +
[LRED_G:{{#colorconvert:{{{lred|000}}}|hex|rgb2}}]
 +
[LRED_B:{{#colorconvert:{{{lred|000}}}|hex|rgb3}}]
 +
[LMAGENTA_R:{{#colorconvert:{{{lmagenta|000}}}|hex|rgb1}}]
 +
[LMAGENTA_G:{{#colorconvert:{{{lmagenta|000}}}|hex|rgb2}}]
 +
[LMAGENTA_B:{{#colorconvert:{{{lmagenta|000}}}|hex|rgb3}}]
 +
[YELLOW_R:{{#colorconvert:{{{yellow|000}}}|hex|rgb1}}]
 +
[YELLOW_G:{{#colorconvert:{{{yellow|000}}}|hex|rgb2}}]
 +
[YELLOW_B:{{#colorconvert:{{{yellow|000}}}|hex|rgb3}}]
 +
[WHITE_R:{{#colorconvert:{{{white|000}}}|hex|rgb1}}]
 +
[WHITE_G:{{#colorconvert:{{{white|000}}}|hex|rgb2}}]
 +
[WHITE_B:{{#colorconvert:{{{white|000}}}|hex|rgb3}}]
 
}}
 
}}
</nowiki></pre>
+
<noinclude>{{documentation}}</noinclude>
Produces:
 
{{color scheme
 
|red=f00
 
|green=090
 
|blue=00f
 
|white=fff
 
|black=000
 
|brown=990
 
|yellow=ff0
 
|magenta=f0f
 
|cyan=0ff
 
|lcyan=6ff
 
|lred=f66
 
|lgreen=6f6
 
|lblue=66f
 
|lmagenta=f6f
 
|dgray=666
 
|lgray=bbb
 
}}
 
 
 
</noinclude>
 

Latest revision as of 02:51, 2 September 2014

BLACK DGRAY
BLUE LBLUE
GREEN LGREEN
CYAN LCYAN
RED LRED
MAGENTA LMAGENTA
BROWN YELLOW
LGRAY WHITE