Dota 2 Вики
мНет описания правки
@DeletedUser41170185 (обсуждение | вклад)
(lua; hope this works)
Строка 1: Строка 1:
 
<includeonly>{{#invoke:Color|main}}</includeonly><noinclude>
<!--
 
 
EDITING THIS PAGE WILL NOT MODIFY THE REFERENCE TABLE. IF YOU WANT TO ADD A NEW COLOR, ADD IT HERE FIRST, THEN EDIT THE DOCUMENTATION ACCORDINGLY.
 
 
--><includeonly>{{#switch: {{lc:{{{1|}}}}}
 
 
<!------------------------------------ GENERAL WIKI COLORS -->
 
 
| wiki1 = &#35;B44335
 
| wiki2 = &#35;CD5F51
 
| wiki3 = &#35;FFAEA3
 
| wiki4 = &#35;FDE6E3
 
| wiki5 = &#35;E4C62E
 
| wiki6 = &#35;E38800
 
 
<!------------------------------------ DOTA 2 UI -->
 
 
| ui1 = &#35;1B1E21
 
| ui2 = &#35;2F363D
 
 
<!----------------------------------- HEROES -->
 
 
| strength = &#35;B9500B
 
| agility = &#35;167C13
 
| intelligence = &#35;257DAE
 
| сила = &#35;B9500B
 
| ловкость = &#35;167C13
 
| интеллект = &#35;257DAE
 
| radiant = &#35;598307
 
| свет = &#35;598307
 
| dire = &#35;A83806
 
| тьма = &#35;A83806
 
| neutral = &#35;434137
 
 
<!----------------------------------- UNITS -->
 
 
| creep = &#35;2277AA
 
| крип = &#35;2277AA
 
| creep-hero = &#35;FFBE66
 
| крип-герой = &#35;FFBE66
 
| lane creep = &#35;2277AA
 
| линейный крип = &#35;2277AA
 
| jungle creep = &#35;2277AA
 
| лесной крип = &#35;2277AA
 
| ancient creep = &#35;2277AA
 
| древний крип = &#35;2277AA
 
| summon = &#35;FFBE66
 
| призываемое существо = &#35;FFBE66
 
| ward = &#35;64D74A
 
| вард = &#35;64D74A
 
| building = &#35;2277AA
 
| строение = &#35;2277AA
 
| other = pink
 
| другое = pink
 
| courier = &#35;FFBE66
 
| курьер = &#35;FFBE66
 
 
<!----------------------------------- ABILITIES -->
 
 
| hero = &#35;B44335
 
| герой = &#35;B44335
 
| ultimate = &#35;414141
 
| ульт = &#35;414141
 
| item = &#35;227722
 
| предмет = &#35;227722
 
| npc = &#35;2277AA
 
| нип = &#35;2277AA
 
| aghanims = &#35;5B388F
 
| talent = &#35;BDB76B
 
| талант = &#35;BDB76B
 
 
<!----------------------------------- ITEMS -->
 
 
| gold = &#35;DAA520
 
| золото = &#35;DAA520
 
| armor = &#35;B911FC
 
| броня = &#35;B911FC
 
| caster = &#35;1A88FC
 
| магия = &#35;1A88FC
 
| support = &#35;1A88FC
 
| поддержка = &#35;1A88FC
 
| artifacts = &#35;DB9702
 
| артефакты = &#35;DB9702
 
| common = &#35;2BAC00
 
| общее = &#35;2BAC00
 
| basic = &#35;FEFEFE
 
| attributes = &#35;FEFEFE
 
| armaments = &#35;FEFEFE
 
| arcane = &#35;FEFEFE
 
| мистика = &#35;FEFEFE
 
 
<!----------------------------------- COSMETIC ITEMS - RARITY -->
 
 
| cos_common = &#35;b0c3d9
 
| cos_uncommon = &#35;5e98d9
 
| cos_rare = &#35;4b69ff
 
| cos_mythical = &#35;8847ff
 
| cos_legendary = &#35;d32ce6
 
| cos_ancient = &#35;eb4b4b
 
| cos_immortal = &#35;b28a33
 
| cos_arcana = &#35;ade55c
 
| cos_seasonal = &#35;FFF34F
 
 
<!----------------------------------- COSMETIC ITEMS - QUALITY -->
 
 
| cos_normal = &#35;B2B2B2
 
| cos_genuine = &#35;4D7455
 
| cos_elder = &#35;476291 <!-- Internal name: vintage -->
 
| cos_unusual = &#35;8650AC
 
| cos_unique = &#35;D2D2D2
 
| cos_community = &#35;70B04A
 
| cos_developer = &#35;A50F79
 
| cos_selfmade = &#35;70B04A
 
| cos_customized = &#35;00FF00
 
| cos_inscribed = &#35;CF6A32 <!-- Internal name: strange -->
 
| cos_completed = &#35;8650AC
 
| cos_cursed = &#35;8650AC
 
| cos_heroic = &#35;8650AC <!-- Internal name: tournament -->
 
| cos_favored = &#35;FFFF00
 
| cos_ascendant = &#35;EB4B4B
 
| cos_autographed = &#35;ADE55C
 
| cos_legacy = &#35;FFFFFF
 
| cos_exalted = &#35;CCCCCC
 
| cos_frozen = &#35;4682B4
 
| cos_corrupted = &#35;A52A2A
 
| cos_auspicious = &#35;32CD32 <!-- Internal name: lucky-->
 
| cos_unusual_text = &#35;e4ae39
 
 
 
<!---------------------------------------- RANKINGS -->
 
 
|proceed
 
|up = &#35;CFC
 
|stayup = &#35;EFA
 
|stay = &#35;FF9
 
|staydown = &#35;FDA
 
|drop
 
|down = &#35;FCC
 
 
<!----------------------------------------- DEFAULT -->
 
 
| #default = {{{1}}}
 
 
}}</includeonly><noinclude>
 
 
{{doc}}
 
{{doc}}
 
[[Категория:Шаблоны]]
 
[[Категория:Шаблоны]]

Версия от 20:20, 20 декабря 2017

Документация для Шаблон:Цвет [ смотреть | править | очистить ]

Lua logo
▶️ Swapsies!
Этот шаблон использует Lua.
Его код можно найти в Модуль:Color.


wiki1
#B44335
wiki2
#CD5F51
wiki3
#FFAEA3
wiki4
#FDE6E3
wiki5
#E4C62E
wiki6
#E38800
wikia1
#401610
wikia2
#1A1A1A
wikiad1
#0F0F0F
wikiad2
#262626
link
#3F56AD
ui1
#1B1E21
ui2
#2F363D
strength
#B9500B
agility
#167C13
intelligence
#257DAE
radiant
#598307
dire
#A83806
neutral
#434137
experience
#70B04A
creep
#2277AA
creep-hero
#FFBE66
lane creep
#2277AA
neutral creep
#2277AA
ancient creep
#2277AA
summon
#FFBE66
ward
#64D74A
building
#2277AA
other
pink
courier
#FFBE66
attached
#FFE466
clone
#FFBE66
hero
#B44335
ultimate
#414141
item
#227722
npc
#00A388
aghanims
#A50F79
aghshard
#4b69ff
talent
#CF6A32
aghstal
#4D7455
rune
#D49D04
innate
#598307
gold
#DAA520
armor
#B911FC
caster
#1A88FC
support
#1A88FC
artifacts
#DB9702
common
#2BAC00
basic
#FEFEFE
attributes
#FEFEFE
armaments
#FEFEFE
arcane
#FEFEFE
cos_common
#b0c3d9
cos_uncommon
#5e98d9
cos_rare
#4b69ff
cos_mythical
#8847ff
cos_legendary
#d32ce6
cos_ancient
#eb4b4b
cos_immortal
#b28a33
cos_arcana
#ade55c
cos_seasonal
#fff34f
cos_dota_plus_access
cos_dota_plus_access
cos_normal
#B2B2B2
cos_genuine
#4D7455
cos_elder
#476291
cos_unusual
#8650AC
cos_unique
#D2D2D2
cos_community
#70B04A
cos_developer
#A50F79
cos_selfmade
#70B04A
cos_customized
#00FF00
cos_inscribed
#CF6A32
cos_infused
#8847FF
cos_completed
#8650AC
cos_cursed
#8650AC
cos_heroic
#8650AC
cos_favored
#8650AC
cos_ascendant
#EB4B4B
cos_autographed
#ADE55C
cos_legacy
#FFFFFF
cos_exalted
#CCCCCC
cos_frozen
#4682B4
cos_corrupted
#A52A2A
cos_auspicious
#32CD32
cos_unusual_text
#e4ae39
proceed
#CFC
up
#CFC
stayup
#EFA
stay
#FF9
staydown
#FDA
drop
#FCC
down
#FCC

Description

This template makes it easy to access the wiki's template of colors for coloring text or using it as an input to a CSS style.

Syntax

{{color|<INDEX>}}

Notes

  • Acceptable values for <INDEX> are:
  1. A color name used in the above table. This should always be used unless you want a color that isn't supported.
  2. A hexidecimal value.
  3. A web color name.
  • Refer to the above table for color indices.

Sample output

<span style="color:{{color|strength}};">Strength-Colored-String</span>

Strength-Colored-String


<div style="width:250px; height:50px; background:{{color|agility}};"/>


<span style="color:{{color|#F00}};">Hex-Colored-String</span>

Hex-Colored-String


<span style="color:{{color|lime}};">HMTL-Colored-String</span>

HTML-Colored-String