Wikipedia talk:Wikipedia Signpost/2024-01-10/Crossword

Latest comment: 2 months ago by QuickQuokka in topic Discuss this story

Discuss this story

As a person who has wrestled with CSS for a long while, I enjoyed this! StaniStani 02:54, 13 January 2024 (UTC)Reply

I have an idea: Maybe add text-transform: uppercase and text-align: center to the input boxes.

Crosswords are case-insensitive and are usually filled with uppercase letters. Also, there should be one character per input, so it should be centered. (I know that putting a maximum length on an input field is a technical impossibility in MediaWiki, but the users are still expected to type one character) QuickQuokka [⁠talkcontribs] 14:03, 16 January 2024 (UTC)Reply

@QuickQuokka: Yeah, I banged my head against the task of limiting the fields to one character for a while. My conclusion was that this is simply impossible to do with the abilities we're granted by MediaWiki. The text-transform thing, though, I will be stealing, because that's smart. jp×g🗯️ 01:08, 13 February 2024 (UTC)Reply
@JPxG: It's not stealing if it's CC BY-SA. I agreed to share my work with others when I signed up to use this platform
Also, is it possible to use JavaScript to limit the number of characters? I know you can't just load JS into articles, so it would have to be sitewide JS edited by an interface admin. QuickQuokka [⁠talkcontribs] 13:32, 13 February 2024 (UTC)Reply

Not to spoil the fun of discovering ingenious wikitext hacks, but if/when WP:On-demand gadgets are implemented, crosswords could be done more like every other website. – SD0001 (talk) 18:14, 4 February 2024 (UTC)Reply