Jump to content

Template talk:Color sample

Page contents not supported in other languages.
Add topic
From Wikipedia, the free encyclopedia
Latest comment: 19 hours ago by Anomalocaris in topic Transclusion problem

Too thin

[edit]

  I tried changing the size to 1 x 1 em, but it's not working for me. Anyone else not seeing it? Yes I cleared my cache and made subsequent null edits. ←BenB4 03:09, 13 August 2007 (UTC)Reply

Merge proposal

[edit]

I'd like to propose to merge Template:Colorsample and Template:Color box. These two templates serve the same purpose, but the look is slightly different. I would like to know how others think about the merge and which one should be left. eDenE 03:01, 2 May 2008 (UTC)Reply

Oppose: The color box allows text inside and is inline with the text. The Colorsample template is not exactly "out of line" with the text, but it isn't completely inline. A color box, on the other hand, breaks the flow of the text. The two have distinct uses, and, hence, shouldn't be merged. Graham (talk, contrib, SIGN HERE!!!) 20:43, 21 July 2008 (UTC)Reply
Oppose per Graham. Seems that the two are not identical or close enough to arbitratily merge. bahamut0013♠♣ 17:57, 25 July 2008 (UTC)Reply

It's been almost five months, and no obvious decision. I've removed the merge templates. RossPatterson (talk) 03:49, 25 September 2008 (UTC)Reply

Dark mode

[edit]

@पाटलिपुत्र: Do you have an example article as you reverted the change that made this work with the dark mode gadget. —Locke Cole • t • c 05:41, 29 September 2024 (UTC)Reply

Hi @Locke Cole:! Yes, for example the map caption in Saka or the captions in Seima-Turbino culture and many others. I reverted because the color patches were thrown upwards out of alignement following your changes, while the original dark mode treatment did not strike me as problematic. I wouldn't object if you could find a way to make your dark mode changes, while keeping the alignment. Best! पाटलिपुत्र (Pataliputra) (talk) 05:56, 29 September 2024 (UTC)Reply
Should be resolved, let me know if you notice anything else. Feel free to revert back if you do! Thanks you. =) —Locke Cole • t • c 15:38, 29 September 2024 (UTC)Reply
@Locke Cole: Looks great! Thanks! पाटलिपुत्र (Pataliputra) (talk) 16:20, 29 September 2024 (UTC)Reply

Transclusion problem

[edit]

Andrybak and others: We have a problem that Portal:China is picking up some lint errors from Ming Dynasty, which includes the markup

{{Infobox former country
. . .
| image_map              = Map of Ming Chinese empire 1415 (cropped 2).jpg
| image_map_caption      = {{Color sample|#F4E46B}} Ming territory in 1415
. . .
}}

and from ExpandTemplates, we see that somehow this gets transcluded as

File:Blank.png|<span class="switcher-label" style="display:none"><span class="randomSlideshow-sr-only">Image 9</span></span><div style="text-align:left;"><div class= "thumb floatleft" style = "style = overflow: hidden; max-width: 310px; "><div class = "thumbinner" ><div class="thumbimage noresize" style="width: auto; "><br>[[File:Map of Ming Chinese empire 1415 (cropped 2).jpg|frameless|none]] </div><div class = "thumbcaption"><div class="center"><span style="display:inline-block;border:1.62px solid currentColor;vertical-align:text-top;" title="<ol><li>f4e46b"><span class="mw-no-invert" style="display:block;padding:0;width:1em;height:1em;background:#F4E46B;color:inherit;forced-color-adjust:none;"> </span></span> Ming territory in 1415</div></div></div></div></li></ol>

which is a complete mess of misnested ol and li tags. I'm wondering if this is caused by recent changes to {{Color sample}} and if changes to the template can fix it. —Anomalocaris (talk) 02:16, 10 November 2026 (UTC)Reply