Template:Console

From Wiki³
{{#ifeq:{{{root}}}|true|root@archiso ~ # |# {{{1}}}{{#if:|
# {{{2}}}{{#if:|
# {{{3}}}{{#if:|
# {{{4}}}{{#if:|
# {{{5}}}


Usage

{{Console
|title=Title (used to show filenames) *
|root=true (default: false) *
|prompt=false (default: true) *
|1=Command
|2=Command
|3=Command
|4=Command
|5=Command
}}

  * Optional field

Preview

This preview is with root enabled.

{{#ifeq:true|true|root@archiso ~ # |# rm -rf /{{#if:|
root@archiso ~ # {{#if:|
root@archiso ~ # {{#if:|
root@archiso ~ # {{#if:|
root@archiso ~

This preview is without specifying the root argument.

{{#ifeq:{{{root}}}|true|root@archiso ~ # |# sudo pacman -Syu{{#if:|
# {{{2}}}{{#if:|
# {{{3}}}{{#if:|
# {{{4}}}{{#if:|
# {{{5}}}

This last preview is without a prompt at all, using color and a title.

{{#ifeq:{{{root}}}|true|root@archiso ~ # |Woo! Hello World!{{#if:|
{{{2}}}{{#if:|
{{{3}}}{{#if:|
{{{4}}}{{#if:|
{{{5}}}

Colors

Colors can also be added within the console template. Use the color templates provided in order to specify which color.
Valid colors: Black, Red, Green, Yellow, Blue, Magenta, Cyan, White
If you wish to use the highlighted version, add 'Bold' to the end of the color name (eg. 'BlueBold')

Color Preview

{{#ifeq:{{{root}}}|true|root@archiso ~ # |███ ███ ███ ███ ███ ███ ███ ███
███ ███ ███ ███ ███ ███ ███ ███{{#if:|
{{{2}}}{{#if:|
{{{3}}}{{#if:|
{{{4}}}{{#if:|
{{{5}}}