Template talk:ColorString
Jump to navigation
Jump to search
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.
- AliceBlueAntiqueWhiteAquaAquamarineAzure_CSSBeigeBisqueBlackBlanchedAlmondBlueBlueVioletBrownBurlyWoodCadetBlueChartreuseChocolateCoralCornflowerBlueCornsilkCrimsonCyanDarkBlueDarkCyanDarkGoldenRodDarkGrayDarkGreyDarkGreenDarkKhakiDarkMagentaDarkOliveGreenDarkOrangeDarkOrchidDarkRedDarkSalmonDarkSeaGreenDarkSlateBlueDarkSlateGrayDarkSlateGreyDarkTurquoiseDarkVioletDeepPinkDeepSkyBlueDimGrayDimGreyDodgerBlueFireBrickFloralWhiteForestGreenFuchsiaGainsboroGhostWhiteGoldGoldenRodGrayGreenGreenYellowGreyHoneyDewHotPinkIndianRedIndigoIvoryKhakiLavenderLavenderBlushLawnGreenLemonChiffonLightBlueLightCoralLightCyanLightGoldenRodYellowLightGrayLightGreyLightGreenLightPinkLightSalmonLightSeaGreenLightSkyBlueLightSlateGrayLightSlateGreyLightSteelBlueLightYellowLimeLimeGreenLinenMagentaMaroonMediumAquaMarineMediumBlueMediumOrchidMediumPurpleMediumSeaGreenMediumSlateBlueMediumSpringGreenMediumTurquoiseMediumVioletRedMidnightBlueMintCreamMistyRoseMoccasinNavajoWhiteNavyOldLaceOliveOliveDrabOrangeOrangeRedOrchidPaleGoldenRodPaleGreenPaleTurquoisePaleVioletRedPapayaWhipPeachPuffPeruPinkPlumPowderBluePurpleRebeccaPurpleRedRosyBrownRoyalBlueSaddleBrownSalmonSandyBrownSeaGreenSeaShellSiennaSilverSkyBlueSlateBlueSlateGraySlateGreySnowSpringGreenSteelBlueTanTealThistleTomatoTransparentTurquoiseVioletWheatWhiteWhiteSmokeYellowYellowGreen
- The 16 HTML (and legacy PC consoles) color names
- blackgraysilverwhiteyellowlimeaquabluefuchsiaredolivegreentealnavypurplemaroon
- Wikimedia colors
- wmbwmgwmrwmwwm0wm3wm6wm9wmcwmf
- 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 argentA argent-do orb azureB célestec carnationC cendréeg gulesn naranjap purpures sablet tawnyv vertx transparentbrunâtremurreyorange_tsanguine
Broken (May 2024)
[edit]![](https://upload.wikimedia.org/wikipedia/commons/thumb/c/ca/Screenshot_legtab_fail.png/220px-Screenshot_legtab_fail.png)
<
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}}.)
examples | |
---|---|
with unescaped < and >
|
escaped |
D >90% D 80-90% D 70-80% D 60-70% D 50-60% D <50% R <50% R 50-60% R 60-70% R 70-80% R 80-90%
R >90% |
D >90% D 80-90% D 70-80% D 60-70% D 50-60% D <50% R <50% R 50-60% R 60-70% R 70-80% R 80-90%
R >90% |
Watchduck (quack) 21:25, 26 May 2024 (UTC)
- 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)
- @Verdy p: Thank you. So what you have changed is Module:Iteration, right? Watchduck (quack) 11:26, 28 May 2024 (UTC)
- 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)