Help talk:Style/Migration to new Code formatting templates

From ArchWiki
< Help talk:Style
Revision as of 11:33, 2 September 2013 by Kynikos (Talk | contribs) (mark for deletion)

Jump to: navigation, search

Tango-edit-cut.pngThis section is being considered for removal.Tango-edit-cut.png

Reason: Nothing left to implement here. (Discuss in Help talk:Style/Migration to new Code formatting templates#)


What are we doing with Template:Keypress? Would you agree with deprecating it in favour of Template:Ic? -- Kynikos 13:32, 1 November 2011 (EDT)

Note that a simple redirection to Template:Ic may break some instances of the template, since Keypress accepts an optional "background" parameter. -- Kynikos 13:37, 1 November 2011 (EDT)

I think it's actually nicer than just using the inline code template for showing keypress combinations, but it could definitely use a makeover. thestinger
I know somebody who would disagree with you, see [1] :) What about, as a compromise, making Template:Keypress use Template:Ic with bold automatically added? Like CTRL+c. -- Kynikos 13:59, 1 November 2011 (EDT)
I like the idea of using a bolded version of Template:Ic. Another issue regarding Template:Keypress (and consequently whatever replaces it) is the use of letter case which is often inconsistent between articles. For example, on the Vim page, there are a lot of various keys to perform various functions and the functionality of j is completely different from J (Vim#Basic_Editing), but on some other articles, there is little distinction made between case (e.g. Shift+j and J). Hopefully my example is clear enough, but if not, I'll try to elaborate further.
What I would like to see is a standardized way of using Template:Keypress (or whatever replaces it) so that there is one way of using the template (e.g. requiring Shift+j instead of J, or vice versa).
It would also be nice to standardize the capitalization and spelling use of the non-letter keys (e.g. requiring Ctrl+c instead of CTRL+c or Control+c, or vice versa). Some of the keys that have the most variation that I have seen are Ctrl, Esc, Enter/Return, Backspace, Super/Windows/Mod, and Print Screen.
I would love to see a template for displaying some of the troublesome UTF-8 symbols (e.g. , , , and ) too. See here for an example.
While migrating some old formatting code from the Vim article, I noticed a variation in the use of + and - for key combinations. It would probably be a good idea to have a "recommended" style for +/- simply for uniformity.
Also, wow, this got way longer than I initially anticipated! -- Jstjohn 15:39, 1 November 2011 (EDT)
Using bold text with Template:Ic looks great, and I've decided I don't really like the Template:Keypress after all - it's too clunky and big. thestinger 08:27, 3 November 2011 (EDT)
Ok, I'm going to restyle it later, while putting also #Migration strategy into practice. First I'll update Help:Style trying to answer Jstjohn's requests. -- Kynikos 11:16, 3 November 2011 (EDT)
Eheh I can't update Help:Style before editing Template:Keypress of course, so here's the draft:
[draft removed, implemented in Help:Style#Keyboard keys]
This way I can also get some feedback before making it official. -- Kynikos 12:07, 3 November 2011 (EDT)
(Just reminding that the discussion about making 4 arrow templates is still open). -- Kynikos 12:29, 3 November 2011 (EDT)
Template:Keypress is restyled now: [2]. -- Kynikos 13:10, 3 November 2011 (EDT)
Is the new Template:Keypress considered official enough to add it to articles like Vim and for articles of some other very keyboard-centric programs? -- Jstjohn 00:12, 4 November 2011 (EDT)
Definitely, you can use it in Vim and all the other articles, you may also want to fix discrepancies with Help:Style#Keyboard keys. -- Kynikos 16:36, 4 November 2011 (EDT)
Also, if the templates for the arrows might actually happen, I would suggest simple and easy to remember names like {{uparrow}} or {{up}} -- Jstjohn 00:12, 4 November 2011 (EDT)
While editing some html docs I've thought: would using &uarr;, &rarr;, &darr; and &larr; be easy enough instead of creating new templates for arrow keys? If yes, do we want to list these entities somewhere in the wiki? -- Kynikos 19:02, 4 January 2012 (EST)
They're shown in Template:Keypress. -- Kynikos (talk) 14:00, 25 September 2012 (UTC)
Almost one year later, I'd like to re-propose the deprecation of Template:Keypress and the conversion of all its instances to Template:ic. I consider Template:Keypress an unnecessary complication just like the old Template:Filename and Template:Codeline were.
Now, since I want to close this discussion, I've started a poll right below: please vote and, if you want, comment here.
-- Kynikos (talk) 14:00, 25 September 2012 (UTC)
I do not agree completely but I would like to implement a rule right now. I am voting deprecation. --Flu (talk) 11:11, 12 June 2013 (UTC)
The most noticeable change after deprecating Template:Keypress will be the loss of bold for its instances, which is a good thing in my opinion, since I don't see any reason to highlight keyboard keys in an article more than other type of content.
I've just removed bold from the template, in order to see if there are any feedbacks. If not, (or if there are only positive ones :P ) the template will be deprecated, not forgetting that this will also deprecate the background flag, which AFAIK is not used anywhere anyway.
-- Kynikos (talk) 14:57, 15 June 2013 (UTC)
I'm fine with deprecating bold, and I find the background flag pretty anoying when it's used (for example: [3]). Considering this, there's really no reason to keep Template:Keypress. Voting for deprecation. -- Lahwaacz (talk) 15:47, 30 July 2013 (UTC)
Yeah, I'd say it's decided, Template:Keypress will be replaced by Template:ic once I'll be ready with Help talk:Style/Formatting and Punctuation; I'm leaving this discussion open until then because it reminds me of some adaptations that will have to be done. -- Kynikos (talk) 14:39, 6 August 2013 (UTC)
I've just finished replacing all the transclusions of Template:Keypress. Then I've deleted it, unfortunately still using the bot account, sorry for that, I should have used the main account ^^' This closes the discussion. -- Kynikos (talk) 11:32, 2 September 2013 (UTC)


Add #~~~~ under your choice. All comments go in the discussion above.

Poll is closed.

Keep Template:Keypress

No votes

Deprecate Template:Keypress

  1. Kynikos (talk) 14:00, 25 September 2012 (UTC)
  2. Flu (talk) 11:11, 12 June 2013 (UTC)
  3. Lahwaacz (talk) 15:47, 30 July 2013 (UTC)