Jump to content

Template talk:Card

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by 72.216.186.113 (talk) at 22:52, 26 June 2024 (→‎Support for other patterns: Reply). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Completeness

To make this more complete, there should be Ones, Knights and Jokers. Furthermore a third parameter should be introduced to support four-color suits with diamonds either being yellow (skat), blue (poker) or standard red, spades being green (skat), blue or standard black and clubs being green (poker), blue or standard black. Finally the Major Arcana trumps could be added. — Christoph Päper 07:48, 15 April 2011 (UTC)[reply]

I think a separate Tarot Nouveau template would be good for card game articles, and maybe a Rider–Waite Tarot for divination articles. But I think this template is pretty sufficient for most use-cases. The biggest missing piece to me is there's no way to display a card back. We have a {{German suited card}} template that would be good for skat. 72.216.186.113 (talk) 10:18, 24 June 2024 (UTC)[reply]
I added a card back. 72.216.186.113 (talk) 23:20, 24 June 2024 (UTC)[reply]

11 of Hearts?

Why is there rank values of 11? These do not show up in the standard deck. While I realize that the placement code could easily put an extra symbol in, I do not know of any printed decks that actually use it. The one on a Bugs Bunny cartoon does not count! Nutster (talk) 22:42, 19 July 2015 (UTC)[reply]

Translation

How can I use this for the Dutch wikipedia. It doesn't work. — Preceding unsigned comment added by ColourMC (talkcontribs) 20:18, 18 November 2020 (UTC)[reply]

Examples

I don’t like how it shows all 54 cards as the examples. I edited the documentation to show only the two of diamonds as the sole example, but my edit was reverted. Is it OK to include only about 1-5 cards as examples? (Two of diamonds, six of spades, and queen of hearts would be good) 2601:C6:D281:6710:E476:F21E:166A:1313 (talk) 05:01, 25 December 2023 (UTC)[reply]

when writing docs, you have to assume "everyone's an idiot." 72.216.186.113 (talk) 10:29, 24 June 2024 (UTC)[reply]

Support for other patterns

I think this can be made more dynamic by using {{CSS image crop}} on different files based on a "pattern" variable:

  • English (default) > File:English pattern playing cards deck PLUS.svg
  • Russian > File:Atlasnye playing cards deck.svg
  • Italian > File:Carte bresciane al completo.svg
  • French > File:Svg-cards-2.0.svg
  • German > File:Complete Saxonian deck.jpg (needs conversion to svg)
  • Spanish > File:Baraja española.svg (file needs to be fixed)

it'll be quite a bit of work though to get all the numbers correct :/ 72.216.186.113 (talk) 18:23, 26 June 2024 (UTC)[reply]

I added the French pattern to the template as an example. (Sorry, there's no sandbox page) 72.216.186.113 (talk) 21:31, 26 June 2024 (UTC)[reply]
I added support for all the patterns except Spanish. I'll have to think about how to work with a broken file... 72.216.186.113 (talk) 22:52, 26 June 2024 (UTC)[reply]