Template talk:Cmd

From Alpine Linux
Revision as of 18:29, 2 July 2023 by Sertonix (talk | contribs) (answer equal sign question)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

What was the reason that this template was changed? Now it look not much different than the standard mediawiki format for a line with a prefixed whitespace.

{{Cmd|test command}}

test command

test command

--Fab 04:10, 7 March 2012 (UTC)

Probably I should have proposed the change first rather than just pushing it. I was trying to get visual consistency between the two block formats you exhibited above, and some new templates I was introducing, primarily Template:Cat. See User:Dubiousjim/Cheatsheet#Block_elements for some samples. As I informally browsed this wiki, it seemed like many pages just used the second, space-prefixed format for giving commands to enter---that is, the usage of Template:Cmd across this wiki seemed very incomplete. So I thought it might work best to have a presentation that was somewhat distinct but not jarringly so. That way, habituation to the Template:Cmd format needn't make it stand out so much when reading a page that says:

type these commands

(I can appreciate the merits of the other argument, though, that says it should stand out more when a wiki page doesn't use the Template:Cmd, so that someone can more easily notice it and perhaps change it to do so.)

What do you think might work better? Using a darker background, like the template had formerly? Using a different border? Just don't worry about the considerations I cite, and go back to the original?

-- Dubiousjim 19:14, 7 March 2012 (UTC)

Made the background darker, as in the original. -- Dubiousjim 06:45, 8 March 2012 (UTC)

Equal sign

Is it normal that I can't use "=" within this template? With

{{cmd|=}}

I get

{{{1}}}

I have to write

{{cmd|=}}

to get

=

--Theo (talk) 22:27, 30 December 2013 (UTC)

The equal sign is used to define named parameters. Another way to escape the equal sign is
{{cmd|{{=}}}}

Sertonix (talk) 18:29, 2 July 2023 (UTC)