Template:Color/doc: Difference between revisions
Content deleted Content added
imported>Mentin123 No edit summary |
imported>Mentin123 mNo edit summary |
||
| (44 intermediate revisions by 3 users not shown) | |||
Line 1:
==Description==
This template is used to generate colored bolded text. On mobile,
==Syntax & Usage==
<pre>
{{
</pre>
This template uses up to four parameters. The first parameter is the color of the text, which can be filled out in two ways. The first is a hexadecimal value without the # symbol. The second and main way of adding text is by inputting a specific name, such as ''Krampus'' or ''Halloween2019''. This will make the text have a specific text color and outline. A full list of values that can be used can be seen by either looking at the source code or in the tables below.
The second parameter is the text that is displayed. In some cases, like the ''Golden'' value, there is preset text that will be displayed if this parameter is not filled out. The third parameter is only used with custom text color made using hexadecimal values, which changes the look of the outline or removes it completely. The outline by default is set to be the [[Template:Outline|Outline]] template.
===Color Addition===
For colors to appear on mobile, an administrator has to add proper CSS to the wiki. While not available, colors can be added like this:
<pre>
|Color Name = <span style="color: #HEX; {{Outline}}">{{{2}}}</span>
</pre>
Colors should not be added to this page for these reasons:
*Personal use colors that will not be used on main articles. Use the regular way of adding them through hex codes or create your own template, such as for example <code>Template:{{USERNAME}}Color</code>.
*One time use colors for infoboxes. As inline styles work in infoboxes on mobile and due to these being used only once, there is no reason to add them to the template or CSS.
===Preset Values===
The "User For" column lists the main uses of each value. Because of this, some of the colors listed here may be used for other purposes (such as using the "Krampus" value for the [[Krampus (Krampus Frosthold)|Krampus]] infobox title), even if not listed here.
{| class="wikitable pad-10 mw-collapsible mw-collapsed" style="text-align:center; width:100%"
! colspan="4
|-
!Value
!Used For
!Preset Text
!Example
|-
|Basic
|[[Basic Crate]] skins
|Basic
|{{Color|Basic|Blue}}
|-
|Premium
|[[Premium Crate]] skins
|Premium
|{{Color|Premium|Mage}}
|-
|Deluxe
|[[Deluxe Crate]] skins
|Deluxe
|{{Color|Deluxe|Mechanic}}
|-
|Phantom
|[[Phantom Crate]] skins
|Phantom
|{{Color|Phantom|Phantom}}
|-
|Toy
|[[Toy Crate]] skins
|Toy
|{{Color|Toy|Toy}}
|-
|Golden
|[[Golden Crate]] skins
|Golden
|{{Color|Golden}}
|-
|Lovely
|[[Deluxe Crate]] skins
|Lovely
|{{Color|Lovely|Heartbreak}}
|-
|ColdFront
|[[Cold Front Crate]] skins
|Cold Front
|{{Color|ColdFront|Brisk}}
|-
|Ducky
|[[Ducky Crate]] skins
|Ducky
|{{Color|Ducky|Ducky}}
|-
|Vigilante
|[[Vigilante Crate]] skins
|Vigilante
|{{Color|Vigilante|Vigilante}}
|-
|Pirate
|[[Pirate Crate]] skins
|Pirate
|{{Color|Pirate|Pirate}}
|-
|Halloween2019
|[[Halloween 2019 Crate]] skins
|Halloween 2019
|{{Color|Halloween2019|Gargoyle}}
|-
|Christmas2019
|[[Xmas 2019 Crate]] skins
|Christmas 2019
|{{Color|Christmas2019|Xmas}}
|-
|Party
|[[Party Crate]] skins
|Party
|{{Color|Party|Party}}
|-
|Valentine
|[[Valentines Crate]] skins
|Valentine
|{{Color|Valentine|Valentines}}
|-
|Bunny
|[[Bunny Crate]] skins
|Bunny
|{{Color|Bunny|Bunny}}
|-
|Pumpkin
|[[Pumpkin Crate]] skins
|Pumpkin
|{{Color|Pumpkin|Pumpkin}}
|-
|Spooky
|[[Spooky Crate]] skins
|Spooky
|{{Color|Spooky|Spooky}}
|-
|Frost
|[[Frost Crate]] skins
|Frost
|{{Color|Frost|Frost}}
|-
|Halloween
|[[Halloween Crate]] skins
|Halloween
|{{Color|Halloween|Ghost Buster}}
|-
|Jolly
|[[Jolly Crate]] skins
|Jolly
|{{Color|Jolly|Holiday}}
|-
|LunarYear
|[[Lunar Crate]] skins
|Lunar Year
|{{Color|LunarYear|Lunar}}
|-
|Lovestruck
|[[Lovestruck Crate]] skins
|Lovestruck
|{{Color|Lovestruck|Lovestriker}}
|-
|Ugly
|[[UglyCrate]] skins
|Ugly
|{{Color|Ugly|PNG}}
|-
|CoinCrate
|[[Coin Crate]] skins
|Coin Crate
|{{Color|CoinCrate|The Flea}}
|-
|Banned
|[[Banned Crate]] skins
|Banned
|{{Color|Banned|Banned}}
|-
|Showtime
|[[Showtime Crate]] skins
|Showtime
|{{Color|Showtime}}
|-
|Christmas2025
|[[Christmas 2025 Crate]] skins
|Christmas 2025
|{{Color|Christmas2025}}
|-
|Valentines2026
|[[Valentines 2026 Crate]] skins
|Valentines 2026
|{{Color|Valentines2026}}
|-
|Shamrock
|[[Shamrock Crate]] skins
|Shamrock
|{{Color|Shamrock}}
|-
|Void
|[[Void Crate]] skins
|Void
|{{Color|Void}}
|-
|Beach
|[[Beach Crate]] skins
|Beach
|{{Color|Beach}}
|-
|Scuba
|[[Scuba Ops Crate]] skins
|Scuba
|{{Color|Scuba}}
|-
|Patriotic
|[[Patriotic Crate]] skins
|Patriotic
|{{Color|Patriotic}}
|-
|Platinum
|[[Platinum Crate]] skins
|Platinum
|{{Color|Platinum}}
|-
{| class="wikitable pad-10 mw-collapsible mw-collapsed" style="text-align:center; width:100%"
! colspan="4" |Events/Seasons
|-
!Value
!Used For
!Preset Text
!Example
|-
|Eclipse
|[[Solar Eclipse Event]] skins
|Eclipse
|{{Color|Eclipse|Vampire Slayer}}
|-
|SeasonOfLove
|[[Season of Love]] skins
|Season of Love
|{{Color|SeasonOfLove|Cupid}}
|-
|DuckHunt
|[[Duck Hunt Event]] skins
|Duck Hunt
|{{Color|DuckHunt|Ducky}}
|-
|EndOfSummer
|[[End of Summer Season]] skins
|End of Summer
|{{Color|EndOfSummer|Barbeque}}
|-
|Philips
|[[Philips x TDS Season]] skins
|Philips
|{{Color|Philips|Grand Theft}}
|-
|ViolentNight
|[[Violent Night Event]] skins
|Violent Night
|{{Color|ViolentNight|Holiday}}
|-
|Lunar
|[[Lunar Overture Event]] skins
|Lunar
|{{Color|Lunar|Frankenstein}}
|-
|Krampus
|[[Krampus' Revenge Event]] skins
|Krampus
|{{Color|Krampus|Dwarf}}
|-
|Korblox
|[[The Hunt Event]] skins
|Korblox
|{{Color|Korblox|Korblox}}
|-
|Classic
|[[The Classic Event]] skins
|Classic
|{{Color|Classic|Guest}}
|-
|Hexscape
|[[Hexscape Event]] skins
|Hexscape
|{{Color|Hexscape|Hexscape}}
|-
|OperationICE
|[[Operation I.C.E Event]] Skins
|Operation ICE
|{{Color|OperationICE|Dark Frost}}
|-
|DuckyRevenge
|[[Ducky Revenge Event]] Skins
|Ducky Revenge
|{{Color|DuckyRevenge|Easter}}
|-
|PVP
|PVP Season Skins
|PVP
|{{Color|PVP|Champion}}
|-
|Surf
|[[Surf & Turf Battle Pass]] Skins
|Surf & Turf
|{{Color|Surf|Shark}}
|-
|Null
|[[Null & Void Event]] Skins
|Null
|{{Color|Null|Hallow Punk}}
|-
|FinalAct
|[[The Final Act Event]] Skins
|Final Act
|{{Color|FinalAct|Wonderland}}
|-
|SpringFrenzy
|[[The Final Act Event]] Skins
|Spring Frenzy
|{{Color|SpringFrenzy|Bunny}}
|-
|Backyard
|[[Backyard Legends Event]] Skins
|Backyard
|{{Color|Backyard|Backyard}}
|-
{| class="wikitable pad-10 mw-collapsible mw-collapsed" style="text-align:center; width:100%"
! colspan="4" |Other Skins
|-
!Value
!Used For
!Preset Text
!Example
|-
|Other
|Skins that do not fit other colors
|Other
|{{Color|Other|Plushie}}
|-
|ContentCreator
|Content Creator skins
|Content Creator
|{{Color|ContentCreator|Wikia}}
|-
|Mission
|Mission Quest skins
|Mission
|{{Color|Mission|Cybernetic}}
|-
|EventMission
|Event Mission Quest skins
|Event Mission
|{{Color|EventMission|Cybernetic}}
|-
|FallenMission
|Fallen Mission Quest skins
|Fallen Mission
|{{Color|FallenMission|Fallen}}
|-
|Unobtainable
|Unobtainable Crate only skins
|Unobtainable
|{{Color|Unobtainable|Classic}}
|-
{| class="wikitable pad-10 mw-collapsible mw-collapsed" style="text-align:center; width:100%"
! colspan="4" |Rarities
|-
!Value
!Used For
!Preset Text
!Example
|-
|Common
|Common rarity
|Common
|{{Color|Common}}
|-
|Uncommon
|Uncommon rarity
|Uncommon
|{{Color|Uncommon}}
|-
|Rare
|Rare rarity
|Rare
|{{Color|Rare}}
|-
|Epic
|Epic rarity
|Epic
|{{Color|Epic}}
|-
|Legendary
|Legendary rarity (purple)
|Legendary
|{{Color|Legendary}}
|-
|LegendaryConsumable
|Legendary rarity (yellow)
|Legendary
|{{Color|LegendaryConsumable}}
|-
|Mythic
|Mythic rarity
|Mythic
|{{Color|Mythic}}
|-
|Ultimate
|Ultimate rarity
|Ultimate
|{{Color|Ultimate}}
|-
|Golden
|Golden rarity
|Golden
|{{Color|Golden}}
|-
|Event
|Event rarity
|Event
|{{Color|Event}}
|-
|Exclusive
|Exclusive rarity
|Exclusive
|{{Color|Exclusive}}
|-
{| class="wikitable pad-10 mw-collapsible mw-collapsed" style="text-align:center; width:100%"
! colspan="4" |Map Difficulties
|-
!Value
!Used For
!Preset Text
!Example
|-
|VeryEasy
|Very Easy maps
|Very Easy
|{{Color|VeryEasy}}
|-
|OldEasy
|Easy maps before the [[Release v1.0|MEGA Update]]
|Easy
|{{Color|OldEasy}}
|-
|Easy
|Current Easy maps
|Easy
|{{Color|Easy}}
|-
|OldNormal
|Normal maps before the [[Release v1.0|MEGA Update]]
|Normal
|{{Color|OldNormal}}
|-
|Medium
|Medium maps
|Medium
|{{Color|Medium}}
|-
|Normal
|Current Normal maps
|Normal
|{{Color|Normal}}
|-
|Hard
|Hard maps
|Hard
|{{Color|Hard}}
|-
|Insane
|Insane maps
|Insane
|{{Color|Insane}}
|-
|EventDifficulty
|Event difficulty maps
|Event
|{{Color|EventDifficulty}}
|-
|Special
|Special difficulty maps
|Special
|{{Color|Special}}
|-
{| class="wikitable pad-10 mw-collapsible mw-collapsed" style="text-align:center; width:100%"
! colspan="4" |Modes
|-
!Value
!Used For
!Preset Text
!Example
|-
|EasyMode
|[[Easy Mode|Easy]] mode
|Easy
|{{Color|EasyMode}}
|-
|CasualMode
|[[Casual Mode|Casual]] mode
|Casual
|{{Color|CasualMode}}
|-
|IntermediateMode
|[[Intermediate Mode|Intermediate]] mode
|Intermediate
|{{Color|IntermediateMode}}
|-
|LegacyMoltenMode
|[[Legacy Molten Mode|LegacyMolten]] mode
|Legacy Molten
|{{Color|LegacyMoltenMode}}
|-
|MoltenMode
|[[Molten Mode|Molten]] mode
|Molten
|{{Color|MoltenMode}}
|-
|LegacyFallenMode
|[[Legacy Fallen Mode|LegacyFallen]] mode
|Legacy Fallen
|{{Color|LegacyFallenMode}}
|-
|FallenMode
|[[Fallen Mode|Fallen]] mode
|Fallen
|{{Color|FallenMode}}
|-
|FrostMode
|[[Frost Mode|Frost]] mode
|Frost
|{{Color|FrostMode}}
|-
|HardcoreMode
|[[Hardcore Mode|Hardcore]] mode
|Hardcore
|{{Color|HardcoreMode}}
|-
|NuclearMode
|[[Polluted Wasteland II]] map
|Nuclear
|{{Color|NuclearMode}}
|-
|WesternMode
|[[Badlands II]] map
|Western
|{{Color|WesternMode}}
|-
|PizzeriaMode
|[[Pizza Party]]
|Pizzeria
|{{Color|PizzeriaMode}}
|-
|TutorialMode
|[[Tutorial]]
|Tutorial
|{{Color|TutorialMode}}
|-
|BasicArena
|Basic Arena [[PVP]]
|Basic Arena PVP
|{{Color|BasicArena}}
|-
|MoltenArena
|Molten Arena [[PVP]]
|Molten Arena PVP
|{{Color|MoltenArena}}
|-
|FallenArena
|Fallen Arena [[PVP]]
|Fallen Arena PVP
|{{Color|FallenArena}}
|-
|Toilet
|[[Headache Headquarters]] map
|Headache Headquarters
|{{Color|Toilet}}
|-
|GoldenMode
|[[Golden Mode|Golden]] mode
|Golden
|{{Color|GoldenMode}}
|-
{| class="wikitable pad-10 mw-collapsible mw-collapsed" style="text-align:center; width:100%"
! colspan="4" |Speakers
|-
!Value
!Used For
!Preset Text
!Example
|-
|Dispatcher
|[[Dispatcher]] dialogue
|Dispatcher
|{{Color|Dispatcher}}
|-
|Commander
|[[Commander]] dialogue
|Commander
|{{Color|Commander}}
|-
|Hops
|[[Hops]] dialogue
|Hops
|{{Color|Hops}}
|-
|Sniper
|[[Sniper (Narrator)|Sniper]] dialogue
|Sniper
|{{Color|Sniper}}
|-
|Soldier
|[[Soldier (Narrator)|Soldier]] dialogue
|Soldier
|{{Color|Soldier}}
|-
|Demoman
|[[Demoman (Narrator)|Demoman]] dialogue
|Demoman
|{{Color|Demoman}}
|-
|Truck Driver
|Truck Driver dialogue
|Truck Driver
|{{Color|Truck Driver}}
|-
|Titus
|[[Titus]] dialogue
|Titus
|{{Color|Titus}}
|-
|Ramiel
|Sentinel [[Ramiel]] dialogue
|Sentinel Ramiel
|{{Color|Ramiel}}
|-
|Kronus
|Master [[Kronus]] dialogue
|???
|{{Color|Kronus}}
|-
|Marcellus
|Chief [[Marcellus]] dialogue
|???
|{{Color|Marcellus}}
|-
|Conserver
|[[Conserver]] dialogue
|???
|{{Color|Conserver}}
|-
|Analyst
|Analyst dialogue
|Analyst
|{{Color|Analyst}}
|-
|ProfessorV
|[[Professor V]] dialogue
|Professor V
|{{Color|ProfessorV}}
|-
|Guard
|Guard dialogue
|Guard
|{{Color|Guard}}
|-
{| class="wikitable pad-10 mw-collapsible mw-collapsed" style="text-align:center; width:100%"
! colspan="4" |Miscellaneous
|-
!Value
!Used For
!Preset Text
!Example
|-
|PhaseTwo
|Enemy second phase
| -
|{{Color|PhaseTwo|Time's Up}}
|-
|PhaseThree
|Enemy third phase
| -
|{{Color|PhaseThree|Void's Deathwish}}
|-
|Yes
|Yes/True/Low
|Yes
|{{Color|Yes}}
|-
|No
|No/False/High
|No
|{{Color|No}}
|-
|Neutral
|Neutral/Variable/Medium
|Neutral
|{{Color|Neutral}}
|}
Line 372 ⟶ 684:
===Preset Value===
<pre>
The {{
</pre>
The {{
===Custom Text===
<pre>
This text is {{
</pre>
This text is {{
===Custom Text (no outline)===
<pre>
Incorrect: {{
</pre>
Incorrect: {{
===Custom Text (custom outline)===
<pre>
Cliff towers like the [[Ranger]] are actually able to be stunned by [[Jack-o-Bot|{{
</pre>
Cliff towers like the [[Ranger]] are actually able to be stunned by [[Jack-o-Bot|{{
===Custom Text (<nowiki>{{OutlineDark}}</nowiki>)===
<pre>
The [[Mechanical Rot|{{
</pre>
The [[Mechanical Rot|{{
<noinclude>[[Category:
| |||