Template talk:Cmd

From Gentoo Wiki
Jump to:navigation Jump to:search

Name

Talk status
This discussion is done.

What is the exact purpose of this template? If it is only for shell commands, I think, "Command" (or "CMD") is a more descriptive name. Also "Command" is more common in other wikis (unofficial Gentoo Wiki, Arch Wiki). Astaecker 14:02, 26 September 2011

That was the intended purpose. I think the name fits, and don't see a pressing need to use the same name as any other site. At any rate, how would you name the ShellRoot and Generic variants? --A3li 14:14, 26 September 2011 (UTC)
For me, an editor wants to highlight a command, so he searches for a command template. A shell is too generic. If you name the templates by environment, the file template should be named "editor".
ShellRoot can be "RCommand"
I don't see the purpose of ShellGeneric, as every output is the output of an command. We are duplicating the command call in the caption bar of ShellGeneric. We should better extend the Shell template to display also the command output (as a output parameter).
--Astaecker 14:34, 26 September 2011 (UTC)
Done --Astaecker 12:44, 29 September 2011 (UTC)

Enhancement: prompt, color, output parameters; multiple prompts

Talk status
This discussion is done.

See my user page for code and examples. --Astaecker 06:57, 29 September 2011 (UTC)

Done --Astaecker 12:44, 29 September 2011 (UTC)

Pipe symbol within a CMD template

Talk status
This discussion is done as of 2022-08-06.

Using pipe symbol within \{\{Cmd …}}. If i do Unixy command and pipe them together, how does one use \{\Cmd}}? can this bar “|” be escaped? —- Egberts (talk) 05:23, 6 August 2022 (UTC)

The text under CMD Parameters gives you this important detail. "Use {{=}} or {{!}} instead of the characters "=" or "|" for equal or pipe symbols, respectively." --Maffblaster (talk) 07:54, 6 August 2022 (UTC)