Template talk:Cmd: Difference between revisions

From Alpine Linux
(Created page with "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.<br /> <nowiki>{{Cmd|...")
 
(answer equal sign question)
 
(3 intermediate revisions by 2 users not shown)
Line 5: Line 5:
  test command
  test command
--[[User:Fab|Fab]] 04:10, 7 March 2012 (UTC)
--[[User:Fab|Fab]] 04:10, 7 March 2012 (UTC)
<div style="margin-left:4em">
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?
-- [[User:Dubiousjim|Dubiousjim]] 19:14, 7 March 2012 (UTC)
</div>
: Made the background darker, as in the original. -- [[User:Dubiousjim|Dubiousjim]] 06:45, 8 March 2012 (UTC)
=Equal sign=
Is it normal that I can't use "=" within this template? With <pre>{{cmd|=}}</pre> I get <pre>{{{1}}}</pre> I have to write <pre>{{cmd|&#38;#61;}}</pre> to get <pre>=</pre>--[[User:Theo|Theo]] ([[User talk:Theo|talk]]) 22:27, 30 December 2013 (UTC)
<div style="margin-left:4em">
The equal sign is used to define [https://www.mediawiki.org/wiki/Help:Templates#Named_parameters named parameters]. Another way to escape the equal sign is <pre>{{cmd|{{=}}}}</pre>
[[User:Sertonix|Sertonix]] ([[User talk:Sertonix|talk]]) 18:29, 2 July 2023 (UTC)
</div>

Latest revision as of 18:29, 2 July 2023

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|&#61;}}

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)