Wiki Staff
6,186
edits
(Created a "CellColor"-template for highlighting ressource-related table-cells) |
(Makes colors a bit fainter as it’s for backgrounds) |
||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>style="background-color: {{#if: {{{rmet|}}}|\# | <includeonly>style="background-color: {{#if: {{{rmet|}}}|\#b7b7b7|}}{{#if: {{{rgla|}}}|\#acdbf4|}}{{#if: {{{rpla|}}}|\#ff98ed|}}{{#if: {{{rsil|}}}|\#dcdcdc|}}{{#if: {{{rgol|}}}|\#ffe597|}}{{#if: {{{rura|}}}|\#b1e6b1|}}{{#if: {{{rdia|}}}|white|}}{{#if: {{{rtit|}}}|\#d5d5d5|}}{{#if: {{{rblu|}}}|\#81c0ff|}}{{#if: {{{rban|}}}|\#ffffb1|}};"</includeonly><noinclude> | ||
== About == | == About == | ||
Compact '''CellColor''' template for coloring table cells. Intended for use in | Compact '''CellColor''' template for coloring table cells. Intended for use in resource-related tables like [[Guide to Research and Development]], where a non-hardcoded way of highlighting different ressources in long tables could help increasing readability. | ||
== Parameter-Usage == | == Parameter-Usage == | ||
Line 11: | Line 11: | ||
!rmet | !rmet | ||
|y | |y | ||
|Optional, color-switch ( | |Optional, color-switch (Resource Metal). Make sure to set a non-empty value. Do not combine with other switches. | ||
|- | |- | ||
!rgla | !rgla | ||
|y | |y | ||
|Optional, color-switch ( | |Optional, color-switch (Resource Glass). Make sure to set a non-empty value. Do not combine with other switches. | ||
|- | |- | ||
!rpla | !rpla | ||
|y | |y | ||
|Optional, color-switch ( | |Optional, color-switch (Resource Plasma). Make sure to set a non-empty value. Do not combine with other switches. | ||
|- | |- | ||
!rsil | !rsil | ||
|y | |y | ||
|Optional, color-switch ( | |Optional, color-switch (Resource Silver). Make sure to set a non-empty value. Do not combine with other switches. | ||
|- | |- | ||
!rgol | !rgol | ||
|y | |y | ||
|Optional, color-switch ( | |Optional, color-switch (Resource Gold). Make sure to set a non-empty value. Do not combine with other switches. | ||
|- | |- | ||
!rura | !rura | ||
|y | |y | ||
|Optional, color-switch ( | |Optional, color-switch (Resource Uranium). Make sure to set a non-empty value. Do not combine with other switches. | ||
|- | |- | ||
!rdia | !rdia | ||
|y | |y | ||
|Optional, color-switch ( | |Optional, color-switch (Resource Diamond). Make sure to set a non-empty value. Do not combine with other switches. | ||
|- | |- | ||
!rtit | !rtit | ||
|y | |y | ||
|Optional, color-switch ( | |Optional, color-switch (Resource Titanium). Make sure to set a non-empty value. Do not combine with other switches. | ||
|- | |- | ||
!rblu | !rblu | ||
|y | |y | ||
|Optional, color-switch ( | |Optional, color-switch (Resource Bluespace). Make sure to set a non-empty value. Do not combine with other switches. | ||
|- | |||
!rban | |||
|y | |||
|Optional, color-switch (Bananium). Make sure to set a non-empty value. Do not combine with other switches. | |||
|} | |} | ||
Line 58: | Line 62: | ||
![[File:Titaniumdone.png]] | ![[File:Titaniumdone.png]] | ||
![[File:Bluespace_Crystal.png]] | ![[File:Bluespace_Crystal.png]] | ||
![[File:Bananimumdone.png]] | |||
|- | |- | ||
|{{CCol|rmet=y}}|a1 | |{{CCol|rmet=y}}|a1 | ||
|{{CCol|rgla=y}}| | |{{CCol|rgla=y}}|b2 | ||
|{{CCol|rpla=y}}| | |{{CCol|rpla=y}}|c3 | ||
|{{CCol|rsil=y}}| | |{{CCol|rsil=y}}|d4 | ||
|{{CCol|rgol=y}}| | |{{CCol|rgol=y}}|e5 | ||
|{{CCol|rura=y}}| | |{{CCol|rura=y}}|f6 | ||
|{{CCol|rdia=y}}| | |{{CCol|rdia=y}}|g7 | ||
|{{CCol|rtit=y}}| | |{{CCol|rtit=y}}|h8 | ||
|{{CCol|rblu=y}}| | |{{CCol|rblu=y}}|j9 | ||
|{{CCol|rban=y}}|k10 | |||
|}</pre> | |}</pre> | ||
{| class="wikitable" | {| class="wikitable" | ||
Line 79: | Line 85: | ||
![[File:Titaniumdone.png]] | ![[File:Titaniumdone.png]] | ||
![[File:Bluespace_Crystal.png]] | ![[File:Bluespace_Crystal.png]] | ||
![[File:Bananimumdone.png]] | |||
|- | |- | ||
|{{CCol|rmet=y}}|a1 | |{{CCol|rmet=y}}|a1 | ||
|{{CCol|rgla=y}}| | |{{CCol|rgla=y}}|b2 | ||
|{{CCol|rpla=y}}| | |{{CCol|rpla=y}}|c3 | ||
|{{CCol|rsil=y}}| | |{{CCol|rsil=y}}|d4 | ||
|{{CCol|rgol=y}}| | |{{CCol|rgol=y}}|e5 | ||
|{{CCol|rura=y}}| | |{{CCol|rura=y}}|f6 | ||
|{{CCol|rdia=y}}| | |{{CCol|rdia=y}}|g7 | ||
|{{CCol|rtit=y}}| | |{{CCol|rtit=y}}|h8 | ||
|{{CCol|rblu=y}}| | |{{CCol|rblu=y}}|j9 | ||
|{{CCol|rban=y}}|k10 | |||
|} | |} | ||