Template:Named colors:修订间差异

无编辑摘要
(还是必须用半角逗号)
 
第1行: 第1行:
<includeonly>{{#switch:{{lc: {{{1}}} }}
<includeonly>{{#switch:{{lc: {{{1}}} }}
  | achaemenid mauve
  | achaemenid mauve
  | achaemenid_mauve = rgb(140 30 40); 
  | achaemenid_mauve = rgb(140,30,40); 
  | yuezhi color
  | yuezhi color
  | yuezhi_color = rgb(226 157 83); 
  | yuezhi_color = rgb(226,157,83); 
  | kushan color
  | kushan color
  | kushan_color = rgb(69 7 145); 
  | kushan_color = rgb(69,7,145); 
  | argead blue
  | argead blue
  | argead_blue = rgb(34 108 210); 
  | argead_blue = rgb(34,108,210); 
  | egypt color
  | egypt color
  | egypt_color = rgb(177 183 23); 
  | egypt_color = rgb(177,183,23); 
  | saxonia color
  | saxonia color
  | saxonia_color = rgb(11 71 187); 
  | saxonia_color = rgb(11,71,187); 
  | suebia color
  | suebia color
  | suebia_color = rgb(204 161 83); 
  | suebia_color = rgb(204,161,83); 
  | judea blue
  | judea blue
  | judea_blue = rgb(0 125 168); 
  | judea_blue = rgb(0,125,168); 
  | rhodes color
  | rhodes color
  | rhodes_color = rgb(207 189 169); 
  | rhodes_color = rgb(207,189,169); 
  | dahae color
  | dahae color
  | dahae_color = rgb(63 193 75); 
  | dahae_color = rgb(63,193,75); 
  | assyria color
  | assyria color
  | assyria_color = rgb(31 198 35); 
  | assyria_color = rgb(31,198,35); 
  | dravida color
  | dravida color
  | dravida_color = rgb(31 198 35); 
  | dravida_color = rgb(31,198,35); 
  | armenia color
  | armenia color
  | armenia_color = rgb(172 58 52); 
  | armenia_color = rgb(172,58,52); 
  | pontus color
  | pontus color
  | pontus_color = rgb(149 101 186); 
  | pontus_color = rgb(149,101,186); 
  | bharatavarsha orange color
  | bharatavarsha orange color
  | bharatavarsha_orange_color = rgb(232 151 23); 
  | bharatavarsha_orange_color = rgb(232,151,23); 
  | galatia light blue color
  | galatia light blue color
  | galatia_light_blue_color = rgb(23 232 204); 
  | galatia_light_blue_color = rgb(23,232,204); 
  | achaea color
  | achaea color
  | achaea_color = rgb(240 0 9); 
  | achaea_color = rgb(240,0,9); 
  | ck2 white
  | ck2 white
  | ck2_white = rgb(255 255 255); 
  | ck2_white = rgb(255,255,255); 
  | bone white
  | bone white
  | bone_white = rgb(245 237 222); 
  | bone_white = rgb(245,237,222); 
  | light gold
  | light gold
  | light_gold = rgb(242 223 158); 
  | light_gold = rgb(242,223,158); 
  | sun yellow
  | sun yellow
  | sun_yellow = rgb(246 223 15); 
  | sun_yellow = rgb(246,223,15); 
  | bright yellow
  | bright yellow
  | bright_yellow = rgb(212 208 19); 
  | bright_yellow = rgb(212,208,19); 
  | ck2 yellow
  | ck2 yellow
  | ck2_yellow = rgb(250 188 00); 
  | ck2_yellow = rgb(250,188,00); 
  | roman gold
  | roman gold
  | roman_gold = rgb(250 183 60); 
  | roman_gold = rgb(250,183,60); 
  | samnite beige
  | samnite beige
  | samnite_beige = rgb(216 183 146); 
  | samnite_beige = rgb(216,183,146); 
  | ck2 red
  | ck2 red
  | ck2_red = rgb(188 0 7); 
  | ck2_red = rgb(188,0,7); 
  | ck2 blue
  | ck2 blue
  | ck2_blue = rgb(0 86 148); 
  | ck2_blue = rgb(0,86,148); 
  | ck2 green
  | ck2 green
  | ck2_green = rgb(48 137 4); 
  | ck2_green = rgb(48,137,4); 
  | ck2 black
  | ck2 black
  | ck2_black = rgb(30 30 30); 
  | ck2_black = rgb(30,30,30); 
  | ck2 purple
  | ck2 purple
  | ck2_purple = rgb(132 0 132); 
  | ck2_purple = rgb(132,0,132); 
  | navy blue
  | navy blue
  | navy_blue = rgb(1 33 105); 
  | navy_blue = rgb(1,33,105); 
  | burned red
  | burned red
  | burned_red = rgb(195 86 44); 
  | burned_red = rgb(195,86,44); 
  | athens blue
  | athens blue
  | athens_blue = rgb(57 79 152); 
  | athens_blue = rgb(57,79,152); 
  | beige
  | beige
  | beige = rgb(154 145 116); 
  | beige = rgb(154,145,116); 
  | dark grey
  | dark grey
  | dark_grey = rgb(49 46 48); 
  | dark_grey = rgb(49,46,48); 
  | light green
  | light green
  | light_green = rgb(117 161 109); 
  | light_green = rgb(117,161,109); 
  | light blue
  | light blue
  | light_blue = rgb(89 136 155); 
  | light_blue = rgb(89,136,155); 
  | very light green
  | very light green
  | very_light_green = rgb(169 192 166); 
  | very_light_green = rgb(169,192,166); 
  | pink
  | pink
  | pink = rgb(207 141 171); 
  | pink = rgb(207,141,171); 
  | desaturated green
  | desaturated green
  | desaturated_green = rgb(94 129 93); 
  | desaturated_green = rgb(94,129,93); 
  | mint green
  | mint green
  | mint_green = rgb(168 191 165); 
  | mint_green = rgb(168,191,165); 
  | light purple
  | light purple
  | light_purple = rgb(131 136 185); 
  | light_purple = rgb(131,136,185); 
  | mid grey
  | mid grey
  | mid_grey = rgb(106 107 113); 
  | mid_grey = rgb(106,107,113); 
  | dark burgundy
  | dark burgundy
  | dark_burgundy = rgb(93 54 57); 
  | dark_burgundy = rgb(93,54,57); 
  | yellowish grey
  | yellowish grey
  | yellowish_grey = rgb(112 110 100); 
  | yellowish_grey = rgb(112,110,100); 
  | dark purple
  | dark purple
  | dark_purple = rgb(104 79 108); 
  | dark_purple = rgb(104,79,108); 
  | red nougat
  | red nougat
  | red_nougat = rgb(148 116 107); 
  | red_nougat = rgb(148,116,107); 
  | dark chocolate
  | dark chocolate
  | dark_chocolate = rgb(56 31 25); 
  | dark_chocolate = rgb(56,31,25); 
  | rust brown
  | rust brown
  | rust_brown = rgb(100 35 0); 
  | rust_brown = rgb(100,35,0); 
  | pink skin
  | pink skin
  | pink_skin = rgb(255 200 160); 
  | pink_skin = rgb(255,200,160); 
  | etruscan blue
  | etruscan blue
  | etruscan_blue = rgb(14 2 84); 
  | etruscan_blue = rgb(14,2,84); 
  | roman red
  | roman red
  | roman_red = rgb(139 16 13); 
  | roman_red = rgb(139,16,13); 
  | macedonian blue
  | macedonian blue
  | macedonian_blue = rgb(65 74 185); 
  | macedonian_blue = rgb(65,74,185); 
  | phrygia red
  | phrygia red
  | phrygia_red = rgb(160 11 25); 
  | phrygia_red = rgb(160,11,25); 
  | light yellow
  | light yellow
  | light_yellow = rgb(253 226 105); 
  | light_yellow = rgb(253,226,105); 
  | pitch black
  | pitch black
  | pitch_black = rgb(40 40 40); 
  | pitch_black = rgb(40,40,40); 
  | ocean blue
  | ocean blue
  | ocean_blue = rgb(40 121 173); 
  | ocean_blue = rgb(40,121,173); 
  | frost blue
  | frost blue
  | frost_blue = rgb(230 240 255); 
  | frost_blue = rgb(230,240,255); 
  | spartan brown
  | spartan brown
  | spartan_brown = rgb(195 133 77); 
  | spartan_brown = rgb(195,133,77); 
  | spartan rust
  | spartan rust
  | spartan_rust = rgb(125 46 28); 
  | spartan_rust = rgb(125,46,28); 
  | spartan ocra
  | spartan ocra
  | spartan_ocra = rgb(138 84 71); 
  | spartan_ocra = rgb(138,84,71); 
  | offwhite
  | offwhite
  | offwhite = rgb(240 231 213); 
  | offwhite = rgb(240,231,213); 
  | dark green
  | dark green
  | dark_green = rgb(29 97 36); 
  | dark_green = rgb(29,97,36); 
  | samnite green
  | samnite green
  | samnite_green = rgb(73 70 42); 
  | samnite_green = rgb(73,70,42); 
  | samnite red
  | samnite red
  | samnite_red = rgb(144 41 0); 
  | samnite_red = rgb(144,41,0); 
  | epirus light yellow
  | epirus light yellow
  | epirus_light_yellow = rgb(215 212 180); 
  | epirus_light_yellow = rgb(215,212,180); 
  | pure white
  | pure white
  | pure_white = rgb(255 255 255); 
  | pure_white = rgb(255,255,255); 
  | maurya brown
  | maurya brown
  | maurya_brown = rgb(154 72 0); 
  | maurya_brown = rgb(154,72,0); 
  | syracuse yellow
  | syracuse yellow
  | syracuse_yellow = rgb(228 203 11); 
  | syracuse_yellow = rgb(228,203,11); 
  | dark rust
  | dark rust
  | dark_rust = rgb(101 32 10); 
  | dark_rust = rgb(101,32,10); 
  | green
  | green
  | green = rgb(25 98 2); 
  | green = rgb(25,98,2); 
  | parthia color
  | parthia color
  | parthia_color = rgb(15 6 112); 
  | parthia_color = rgb(15,6,112); 
  | cretan blue
  | cretan blue
  | cretan_blue = rgb(242 116 7); 
  | cretan_blue = rgb(242,116,7); 
  | numidia color
  | numidia color
  | numidia_color = rgb(121 129 142); 
  | numidia_color = rgb(121,129,142); 
  | gallaecia color
  | gallaecia color
  | gallaecia_color = rgb(193 165 100); 
  | gallaecia_color = rgb(193,165,100); 
  | asturia color
  | asturia color
  | asturia_color = rgb(221 211 93); 
  | asturia_color = rgb(221,211,93); 
  | lusitania color
  | lusitania color
  | lusitania_color = rgb(102 9 60); 
  | lusitania_color = rgb(102,9,60); 
  | vettonia color
  | vettonia color
  | vettonia_color = rgb(72 145 76); 
  | vettonia_color = rgb(72,145,76); 
  | carpetania color
  | carpetania color
  | carpetania_color = rgb(163 83 40); 
  | carpetania_color = rgb(163,83,40); 
  | celtiberia color
  | celtiberia color
  | celtiberia_color = rgb(255 67 0); 
  | celtiberia_color = rgb(255,67,0); 
  | cantabria color
  | cantabria color
  | cantabria_color = rgb(49 119 113); 
  | cantabria_color = rgb(49,119,113); 
  | hiberia color
  | hiberia color
  | hiberia_color = rgb(216 189 15); 
  | hiberia_color = rgb(216,189,15); 
  | helvetia color
  | helvetia color
  | helvetia_color = rgb(144 90 155); 
  | helvetia_color = rgb(144,90,155); 
  | armorica color
  | armorica color
  | armorica_color = rgb(100 127 77); 
  | armorica_color = rgb(100,127,77); 
  | noricum color
  | noricum color
  | noricum_color = rgb(99 83 88); 
  | noricum_color = rgb(99,83,88); 
  | albion color
  | albion color
  | albion_color = rgb(197 200 229); 
  | albion_color = rgb(197,200,229); 
  | ccc color
  | ccc color
  | ccc_color = rgb(14 25 140); 
  | ccc_color = rgb(14,25,140); 
  | bretonnia color
  | bretonnia color
  | bretonnia_color = rgb(186 68 109); 
  | bretonnia_color = rgb(186,68,109); 
  | aquitania color
  | aquitania color
  | aquitania_color = rgb(91 44 122); 
  | aquitania_color = rgb(91,44,122); 
  | belgia color
  | belgia color
  | belgia_color = rgb(99 147 10); 
  | belgia_color = rgb(99,147,10); 
  | gaul color
  | gaul color
  | gaul_color = rgb(169 133 191); 
  | gaul_color = rgb(169,133,191); 
  | dacia color
  | dacia color
  | dacia_color = rgb(58 77 109); 
  | dacia_color = rgb(58,77,109); 
  | yamnat color
  | yamnat color
  | yamnat_color = rgb(193 180 83); 
  | yamnat_color = rgb(193,180,83); 
  | illyria color
  | illyria color
  | illyria_color = rgb(216 226 204); 
  | illyria_color = rgb(216,226,204); 
  | persia color
  | persia color
  | persia_color = rgb(135 32 16); 
  | persia_color = rgb(135,32,16); 
  | syria color
  | syria color
  | syria_color = rgb(45 150 122); 
  | syria_color = rgb(45,150,122); 
  | phoenicia color
  | phoenicia color
  | phoenicia_color = rgb(204 161 197); 
  | phoenicia_color = rgb(204,161,197); 
  | cilicia color
  | cilicia color
  | cilicia_color = rgb(51 49 48); 
  | cilicia_color = rgb(51,49,48); 
  | sicily color
  | sicily color
  | sicily_color = rgb(173 143 34); 
  | sicily_color = rgb(173,143,34); 
  | babylon color
  | babylon color
  | babylon_color = rgb(21 167 196); 
  | babylon_color = rgb(21,167,196); 
| #default = <span style="color: red; font-size: 11px;">请检查输入的颜色名</span>
| #default = <span style="color: red; font-size: 11px;">请检查输入的颜色名</span>
}}</includeonly><noinclude>{{template doc}}[[Category:模板]]</noinclude>
}}</includeonly><noinclude>{{template doc}}[[Category:模板]]</noinclude>

2019年4月27日 (六) 01:36的最新版本

[阅读] [编辑]Template-info.png 模板文档

输入游戏中命名的颜色(named_colors)输出HTML的rgb色彩数组,可以用于其它模板的样式代码。脚本代码位于:/ImperatorRome/game/common/named_colors/default_colors.txt

用法

{{named_colors|下列的颜色名}}

示例

输入:{{named_colors|achaemenid_mauve}}
输出:rgb(140,30,40);

achaemenid_mauve = rgb { 140 30 40 }

yuezhi_color = rgb { 226 157 83 }

kushan_color = rgb { 69 7 145 }

argead_blue = rgb { 34 108 210 }

egypt_color = { 177 183 23 }

saxonia_color = rgb { 11 71 187 }

suebia_color = rgb { 204 161 83 }

judea_blue = rgb { 0 125 168 }

rhodes_color = rgb { 207 189 169 }

dahae_color = rgb { 63 193 75 }

assyria_color = rgb { 31 198 35 }

dravida_color = rgb { 31 198 35 }

armenia_color = rgb { 172 58 52 }

pontus_color = rgb { 149 101 186 }

bharatavarsha_orange_color = rgb { 232 151 23 }

galatia_light_blue_color = rgb { 23 232 204 }

achaea_color = rgb { 240 0 9 }

ck2_white = rgb { 255 255 255 }

bone_white = rgb { 245 237 222 }

light_gold = rgb { 242 223 158 }

sun_yellow = rgb { 246 223 15 }

bright_yellow = rgb { 212 208 19 }

ck2_yellow = rgb { 250 188 00 }

roman_gold = rgb { 250 183 60 }

samnite_beige = rgb { 216 183 146 }

ck2_red = rgb { 188 0 7 }

ck2_blue = rgb { 0 86 148 }

ck2_green = rgb { 48 137 4 }

ck2_black = rgb { 30 30 30 }

ck2_purple = rgb { 132 0 132 }

navy_blue = rgb { 1 33 105 }

burned_red = rgb { 195 86 44 }

athens_blue = rgb { 57 79 152 }

beige = rgb { 154 145 116 }

dark_grey = rgb { 49 46 48 }

light_green = rgb { 117 161 109 }

light_blue = rgb { 89 136 155 }

very_light_green = rgb { 169 192 166 }

pink = rgb { 207 141 171 }

desaturated_green = rgb { 94 129 93 }

mint_green = rgb { 168 191 165 }

light_purple = rgb { 131 136 185 }

mid_grey = rgb { 106 107 113 }

dark_burgundy = rgb { 93 54 57 }

yellowish_grey = rgb { 112 110 100 }

dark_purple = rgb { 104 79 108 }

red_nougat = rgb { 148 116 107 }

dark_chocolate = rgb { 56 31 25 }

rust_brown = rgb { 100 35 0 }

pink_skin = rgb { 255 200 160 }

etruscan_blue = rgb { 14 2 84 }

roman_red = rgb { 139 16 13 }

macedonian_blue = rgb { 65 74 185 }

phrygia_red = rgb { 160 11 25 }

light_yellow = rgb { 253 226 105 }

pitch_black = rgb { 40 40 40 }

ocean_blue = rgb { 40 121 173 }

frost_blue = rgb { 230 240 255 }

spartan_brown = rgb { 195 133 77 }

spartan_rust = rgb { 125 46 28 }

spartan_ocra = rgb { 138 84 71 }

offwhite = rgb { 240 231 213 }

dark_green = rgb { 29 97 36 }

samnite_green = rgb { 73 70 42 }

samnite_red = rgb { 144 41 0 }

epirus_light_yellow = rgb { 215 212 180 }

pure_white = rgb { 255 255 255 }

maurya_brown = rgb { 154 72 0 }

syracuse_yellow = rgb { 228 203 11 }

dark_rust = rgb { 101 32 10 }

green = rgb { 25 98 2 }

parthia_color = rgb { 15 6 112 }

cretan_blue = rgb { 242 116 7 }

numidia_color = rgb { 121 129 142 }

gallaecia_color = rgb { 193 165 100 }

asturia_color = rgb { 221 211 93 }

lusitania_color = rgb { 102 9 60 }

vettonia_color = rgb { 72 145 76 }

carpetania_color = rgb { 163 83 40 }

celtiberia_color = rgb { 255 67 0 }

cantabria_color = rgb { 49 119 113 }

hiberia_color = rgb { 216 189 15 }

helvetia_color = rgb { 144 90 155 }

armorica_color = rgb { 100 127 77 }

noricum_color = rgb { 99 83 88 }

albion_color = rgb { 197 200 229 }

ccc_color = rgb { 14 25 140 }

bretonnia_color = rgb { 186 68 109 }

aquitania_color = rgb { 91 44 122 }

belgia_color = rgb { 99 147 10 }

gaul_color = rgb { 169 133 191 }

dacia_color = rgb { 58 77 109 }

yamnat_color = rgb { 193 180 83 }

illyria_color = rgb { 216 226 204 }

persia_color = rgb { 135 32 16 }

syria_color = rgb { 45 150 122 }

phoenicia_color = rgb { 204 161 197 }

cilicia_color = rgb { 51 49 48 }

sicily_color = rgb { 173 143 34 }

babylon_color = rgb { 21 167 196 }