Jump to content

Wikipedia:Templates for discussion/Log/2022 December 31

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by Hmnphl (talk | contribs) at 11:21, 2 January 2023 (→‎colored letter span). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

colored letter span

I propose merging the templates {{Class A}} / {{Class B}} / {{Class C}} / {{Class D}} / {{Class G}} together, as they are mostly identical, except for the letter displayed and background color. They could also gain a more identifiable name since "Class A", "Class B", "Class C", "Class D", "Class G" mean a whole lot of things. I suggest {{Motorsports class tag}} that takes a single parameter, the class name, and outputs the current various square color letters. This will also allow expansion for other classes than these 5, and merging in of other such templates. The class name would be a selector to choose the display text and colors that are defined in the template. -- 64.229.90.28 (talk) 03:44, 31 December 2022 (UTC)[reply]

64.229.90.28, and {{Class G}}? — Qwerfjkltalk 03:45, 31 December 2022 (UTC)[reply]
Yes, oops, sorry, I missed that one. That one as well -- 64.229.90.28 (talk) 03:54, 31 December 2022 (UTC)[reply]
UPDATED to include {{Class G}} that I missed when I first wrote this up. -- 64.229.90.28 (talk) 03:56, 31 December 2022 (UTC)[reply]
  • Support - all we need is a single template, with one parameter. i.e. {{Motorsports class tag|A}} or {{Motorsports class tag|B}} or whatever the class happens to be. SSSB (talk) 10:41, 31 December 2022 (UTC)[reply]