Alpine Linux talk:Wiki templates: Difference between revisions
(Question re: output of commands) |
Dubiousjim (talk | contribs) (report moved) |
||
(7 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
Hi, | Hi, | ||
Line 14: | Line 13: | ||
B) Your /etc/apk/repositories file looks like this: | B) Your /etc/apk/repositories file looks like this: | ||
How do I show what the file contents look like? | How do I show what the file contents look like? | ||
:To be honest I'm not really happy about the ''CMD'' template and yes we do not have template for the output of the command. Using ''pre'' is a good choice for now. We can either tune the ''CMD'' template to mach ''pre'' or make a new template/upgrade the old ''CMD'' template to work for output as well . --[[User:K0gen|K0gen]] 01:30, 5 May 2010 (UTC) | |||
:I agree that ''CMD'' template could be improved. we could have something like: ''<nowiki>{{Cmd|command|output}}</nowiki>'' where ''output'' is optional. We could have a template called ''File'' to show file contents. Could initially only have ''pre''. --[[User:Ncopa|Ncopa]] 07:26, 1 June 2010 (UTC) | |||
::(Much later:) I refined/expanded the templates some. See http://lists.alpinelinux.org/alpine-devel/0702.html. In brief: | |||
::* continue to use <nowiki>{{Cmd|command}}</nowiki> for user input | |||
::* use <nowiki><pre></nowiki> or space-indented blocks to display command output, or shell sessions that include prompts and intermix user input and command output | |||
::* use <nowiki>{{Cat|/path/to/file|file contents}}</nowiki> to display file contents: | |||
::*: {{Cat|/etc/apk/repositories|How do I show what the file contents look like?}} | |||
::--[[User:Dubiousjim|Dubiousjim]] 22:26, 21 March 2012 (UTC) | |||
::All this has now been moved to [[Help:Editing]]. --[[User:Dubiousjim|Dubiousjim]] 13:21, 24 March 2012 (UTC) |
Latest revision as of 13:21, 24 March 2012
Hi,
Nice job with the templates. I have some questions though:
Do we have a template for the output of the command?
I guess I have 2 use cases:
A) Type
apk add openssh
How do I show what the output of the command is?
B) Your /etc/apk/repositories file looks like this:
How do I show what the file contents look like?
- To be honest I'm not really happy about the CMD template and yes we do not have template for the output of the command. Using pre is a good choice for now. We can either tune the CMD template to mach pre or make a new template/upgrade the old CMD template to work for output as well . --K0gen 01:30, 5 May 2010 (UTC)
- I agree that CMD template could be improved. we could have something like: {{Cmd|command|output}} where output is optional. We could have a template called File to show file contents. Could initially only have pre. --Ncopa 07:26, 1 June 2010 (UTC)
- (Much later:) I refined/expanded the templates some. See http://lists.alpinelinux.org/alpine-devel/0702.html. In brief:
- continue to use {{Cmd|command}} for user input
- use <pre> or space-indented blocks to display command output, or shell sessions that include prompts and intermix user input and command output
- use {{Cat|/path/to/file|file contents}} to display file contents:
Contents of /etc/apk/repositories
How do I show what the file contents look like?
- --Dubiousjim 22:26, 21 March 2012 (UTC)
- (Much later:) I refined/expanded the templates some. See http://lists.alpinelinux.org/alpine-devel/0702.html. In brief:
- All this has now been moved to Help:Editing. --Dubiousjim 13:21, 24 March 2012 (UTC)