Topic on User talk:Bryandamon

Dinoguy1000 (talkcontribs)

Hi Dinoguy1000,

I made a change to the PdfHandler page [0] and then realized you had previously undid the change I had made.  I almost undid my change, but I think the change is actually beneficial so wanted to let you know and get your thoughts.

I changed <kbd> to <code> for readability and in your previous edit going the other way, you pointed to the Wikipedia article on HTML elements [1].  To me, the version with kbd [2] is much harder to determine which text the user needs to type (or copy) and the version with code [3] is much easier (to copy as well).

Interested in your thoughts.

Regards,
Bryan

[0] https://www.mediawiki.org/wiki/Extension:PdfHandler
[1] https://en.wikipedia.org/wiki/HTML_element#kbd
[2] https://www.mediawiki.org/w/index.php?title=Extension:PdfHandler&oldid=2823822#Pre-requisites
[3] https://www.mediawiki.org/w/index.php?title=Extension:PdfHandler&oldid=2865433#Pre-requisites

Hi Bryan, I switched that text from <code> to <kbd> because kbd is the semantic element for keyboard input - that is, for text the user is supposed to type, into a terminal or command line or the like. I do agree that its visual style isn't as nice as the style for code, though; it might be worth asking if kbd can be styled the same as code in MediaWiki:Gadget-site.css.

Bryandamon (talkcontribs)

Hi Dino. Yea, that seems to be the best of both worlds. I'll see if I can propose it correctly on the MediaWiki_talk:Gadget-site.css page. One slight downside I just realized (at least on the private wikis I work with) is that the visual editor has a "style text" dropdown for code (and even a keyboard shortcut, Ctrl-Shift-6), but there isn't an equivalent for kbd. Regardless, from a semantic perspective, I see your point.

Reply to "kbd vs. code"