Difference between revisions of "Template:Prompt"

From VideoLAN Wiki
Jump to navigation Jump to search
(Create page, all my work. I got the idea from here)
 
(Template:$ and Template:% redirect here but Template:> and Template:# would not be possible)
 
Line 9: Line 9:
 
Links to [[Command-line interface]] like {{tl|%}} but more flexible.
 
Links to [[Command-line interface]] like {{tl|%}} but more flexible.
  
Technical restrictions forbid page names of <code>&gt;</code> and <code>#</code>, but we can redirect <code>$</code> and <code>%</code> here.
+
<code>$</code> and <code>%</code> redirect here but technical restrictions forbid page names of <code>&gt;</code> and <code>#</code>.
  
 
Different styles are available:
 
Different styles are available:

Latest revision as of 19:49, 6 March 2019

$

Links to Command-line interface like {{%}} but more flexible.

$ and % redirect here but technical restrictions forbid page names of > and #.

Different styles are available:

  • cmd: Windows Command Prompt called cmd.exe or cmd
  • bash: Bourne, Bash and Korn. Linux/Unix/macOS use bash as their default login shell
  • csh: C Shell
  • root: The root user as shown on a *nix system

Usage:

{{ prompt }}

Examples:

{{ prompt | cmd }}

>

{{ prompt | bash }}

$

{{ prompt | csh }}

%

{{ prompt | root }}

#