Template talk:ColorString

Latest comment: 5 months ago by Verdy p in topic Broken (May 2024)

All the shown color boxes got the tooltyp property: under the cursor they show the color code


Conversion name → hexcode occurs by Module:ConvCSS.


See there a table of 4096 colors


For color code conversions see Template:{{Xconv}}

Colors

edit
Complete table of all 140 CSS colors
Alphabetically, generated with the template; "gray" ≡ "grey", makes 148 entries. See the names and hex values of all 140 colors.
  AliceBlue
  AntiqueWhite
  Aqua
  Aquamarine
  Azure_CSS
  Beige
  Bisque
  Black
  BlanchedAlmond
  Blue
  BlueViolet
  Brown
  BurlyWood
  CadetBlue
  Chartreuse
  Chocolate
  Coral
  CornflowerBlue
  Cornsilk
  Crimson
  Cyan
  DarkBlue
  DarkCyan
  DarkGoldenRod
  DarkGray
  DarkGrey
  DarkGreen
  DarkKhaki
  DarkMagenta
  DarkOliveGreen
  DarkOrange
  DarkOrchid
  DarkRed
  DarkSalmon
  DarkSeaGreen
  DarkSlateBlue
  DarkSlateGray
  DarkSlateGrey
  DarkTurquoise
  DarkViolet
  DeepPink
  DeepSkyBlue
  DimGray
  DimGrey
  DodgerBlue
  FireBrick
  FloralWhite
  ForestGreen
  Fuchsia
  Gainsboro
  GhostWhite
  Gold
  GoldenRod
  Gray
  Green
  GreenYellow
  Grey
  HoneyDew
  HotPink
  IndianRed
  Indigo
  Ivory
  Khaki
  Lavender
  LavenderBlush
  LawnGreen
  LemonChiffon
  LightBlue
  LightCoral
  LightCyan
  LightGoldenRodYellow
  LightGray
  LightGrey
  LightGreen
  LightPink
  LightSalmon
  LightSeaGreen
  LightSkyBlue
  LightSlateGray
  LightSlateGrey
  LightSteelBlue
  LightYellow
  Lime
  LimeGreen
  Linen
  Magenta
  Maroon
  MediumAquaMarine
  MediumBlue
  MediumOrchid
  MediumPurple
  MediumSeaGreen
  MediumSlateBlue
  MediumSpringGreen
  MediumTurquoise
  MediumVioletRed
  MidnightBlue
  MintCream
  MistyRose
  Moccasin
  NavajoWhite
  Navy
  OldLace
  Olive
  OliveDrab
  Orange
  OrangeRed
  Orchid
  PaleGoldenRod
  PaleGreen
  PaleTurquoise
  PaleVioletRed
  PapayaWhip
  PeachPuff
  Peru
  Pink
  Plum
  PowderBlue
  Purple
  RebeccaPurple
  Red
  RosyBrown
  RoyalBlue
  SaddleBrown
  Salmon
  SandyBrown
  SeaGreen
  SeaShell
  Sienna
  Silver
  SkyBlue
  SlateBlue
  SlateGray
  SlateGrey
  Snow
  SpringGreen
  SteelBlue
  Tan
  Teal
  Thistle
  Tomato
  Transparent
  Turquoise
  Violet
  Wheat
  White
  WhiteSmoke
  Yellow
  YellowGreen
The 16 HTML (and legacy PC consoles) color names
  black
  gray
  silver
  white
  yellow
  lime
  aqua
  blue
  fuchsia
  red
  olive
  green
  teal
  navy
  purple
  maroon
Wikimedia colors
  wmb
  wmg
  wmr
  wmw
  wm0
  wm3
  wm6
  wm9
  wmc
  wmf
Tinctures
These tinctures can be drawn with Template:ColorString, but better with the specialized Template:Tincture, where other color shade variations can be selected.
While Template:ColorString accepts only long names (e.g. "cendrée"), Template:Tincture can be provided with both, long names ("azure") or short codes ("b").
 
  a   argent
 
  A   argent-d
 
  o   or
 
  b   azure
 
  B   céleste
 
  c   carnation
 
  C   cendrée
 
  g   gules
 
  n   naranja
 
  p   purpure
 
  s   sable
 
  t   tawny
 
  v   vert
 
  x   transparent
 
brunâtre
 
murrey
 
orange_t
 
sanguine

Broken (May 2024)

edit
 
screenshot (with unescaped< and >)

When I made this edit in April, it still looked like it should. Here is a different fail.
{{Legend}} still works, as seen here.
Damn, this is one of Sarangs templates. @Verdy p, Tacsipacsi, and DavidL: Any ideas? (I ask, because you have worked on {{Legend}}.)

Watchduck (quack) 21:25, 26 May 2024 (UTC)Reply

Watchduck  This is OK now (escaped or unescaped '<' and '>' makes no difference). (The code was very quirky, and very slow, causing some issues due to missing assumption checks). I've largely optimized it for faster expansion and lower CPU/memory usage during iterations (that invoked the parser too many times, exhausting some limits in pages showing large lists of items, now this works, I made many checks and found various other old tricks). Unfortunately the code by Sarang was written like in C, not with Lua in perspective. (Sarang cannot fix it of course now). I made his code clearer and less errorprone, added comments and some warnings about some hacks (still used and that could cause such bad behavior; this new code should be more solid now and hopefully easier to update without the severe performance degradations we saw since March and that broke various pages, possibly because of changes of restrictions applied in Scribunto/Lua in some update of MediaWiki, which unfortunately no longer tracks some performance counters, especially with recursive template transclusions from Lua, not being always counted and reported, but instead being counted now as integrant part of Lua execution CPU time and memory; visibly recursive calls to the parser from Lua modules are more restricted now and now more difficult to diagnose!). verdy_p (talk) 00:26, 28 May 2024 (UTC)Reply
@Verdy p: Thank you. So what you have changed is Module:Iteration, right? Watchduck (quack) 11:26, 28 May 2024 (UTC)Reply
Yes, there are still some quirks apparently, despite the many tests I made, function by function, in progressive small changes. In your case, here, what was not working was the special "pairing" of parameters, which was offseted by one. That module is very inconsistant when handling "pairs" which are optional and use special detection code which changes its own rules, depending no whever parameters are nil or empty or just space, and sometimes starts "pairing values from the 1st, or from the 2nd one. It also used a few "globals" variables, overriden across calls and variables names are also very difficult to understand and track (they are also inconsistant between functions). That one of the most difficult modules to debug I've seen (and which apparently has never worked completely in all "supported" cases due to various tricks and quirks used, and whose memory/CPU usage was very intensive (meaning slow pages, or pages now frequently failing since March due to CPU time; that's what I try to solve). verdy_p (talk) 13:34, 28 May 2024 (UTC)Reply
Return to "ColorString" page.
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy