Template talk:Cards

Remove bold formatting?

Someone mentioned on my peer review for List of poker hands that the page uses too much boldface, and I have to say I agree. MOS:BOLD has a very specific list of things which require boldface, but this template seems to make a special exception for itself. Does anyone think that cards look better without boldface? For example:

Four of a kind, also known as quads, is a poker hand containing four cards of the same rank and one card of another rank (the kicker), such as 9♣ 9♠ 9♦ 9♥ J♥ ("four of a kind, nines").
Four of a kind, also known as quads, is a poker hand containing four cards of the same rank and one card of another rank (the kicker), such as 9♣ 9♠ 9♦ 9♥ J♥ ("four of a kind, nines").

Hpesoj00 (talk) 19:15, 13 August 2016 (UTC)Reply

I have added a flag to turn off boldface, which I am now using in List of poker hands. Take a look at the page and let me know if you think it would be good to turn boldface off by default. Hpesoj00 (talk) 15:48, 14 August 2016 (UTC)Reply
This does seem at odds with the set of card display templates for {{Clubs}}, {{Diamonds}}, etc, which don't use bold text. --Lord Belbury (talk) 17:27, 6 May 2022 (UTC)Reply

Wrong suit_name output

When I employ the suit_name parameter to specify a card, with the rank_name parameter, its output doesn't read well. For example, {{cards |Js |rank_name=full |suit_name=full}} results in jack of spades, which should read "Jack of Spades". How can I get the output that I want? Dhtwiki (talk) 23:36, 23 March 2020 (UTC)Reply

@Dhtwiki I corrected the format to follow MOS of both:
Planettop92 (talk) 00:45, 17 September 2025 (UTC)Reply

Change of card art

Current
Suggested

Commons has some more traditional-looking card sets available. Would it be possible to swap the current set out in this template, perhaps to commons:Category:SVG English pattern playing cards? Belbury (talk) 10:15, 24 February 2023 (UTC)Reply

I've now updated Template:Card to use the English pattern from Commons, creating the necessary joker cards for it. --Belbury (talk) 08:54, 12 April 2023 (UTC)Reply

Dark Mode Accessibility

I notice that this template is designed to mark spades and clubs as black if the color is not explictly specified. However, this is a big accessibility problem when using dark mode on the web browser, as it's black text on a nearly black background. I was wondering what we could do to remedy this? My suggestion is to removed the hardcoded black color, allowing it to adapt based on the reader's preferences. However, I would like someone more experienced with template editing to tackle this task. TakodaOS (talk) 20:45, 19 May 2025 (UTC)Reply

I agree. This template is currently broken for dark mode. The fix you describe sounds reasonable: use the default font colour for black cards, not hardcoded black colour. Renaissance77 (talk) 06:58, 4 July 2025 (UTC)Reply
I tried it in my sandbox here: User:Ajaymatters/sandbox - Wikipedia. That removes the hardcoded color:black from Template:Cards/core, so the suit color now inherits from the theme and is visible in both light and dark modes.
The relevant change is to suppress the inline color:black unless spades_color or clubs_color is explicitly provided. I can submit an edit request, if that's fine? Ajaymatters (talk) 08:22, 6 July 2025 (UTC)Reply

Rank-Suit vs Suit-Rank

As per Standard 52-card deck#Nomenclature, there should be a way to use this template from it's default Rank-Suit (e.g. 7♣︎) for poker, to using this template in Suit-Rank (e.g. ♠K) for bridge. 2600:8800:97:E200:5319:58E4:DA83:CA9E (talk) 22:11, 13 September 2025 (UTC)Reply

suit-rank order is now supported Planettop92 (talk) 04:04, 8 October 2025 (UTC)Reply

Semi-protected edit request on 15 September 2025

Please add lines:

html.skin-theme-clientpref-night .playingcards

and

html.skin-theme-clientpref-os .playingcards

to their respective blocks. Thank you. 2600:8800:97:E200:90C0:A24E:95B5:68DF (talk) 19:57, 15 September 2025 (UTC)Reply

@2600:8800:97:E200:90C0:A24E:95B5:68DF done Planettop92 (talk) 00:53, 17 September 2025 (UTC)Reply

Content Disclaimer

Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.

  1. The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
  2. There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
  3. It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
  4. Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.