Template:Console/doc: Difference between revisions

From Wiki³
(Created page with "== Usage == <nowiki>{{Console| root=true|</nowiki><span style="float:right">{{redBold|*}}</span><nowiki> 1=''command''| 2=''command''| 3=''command''| 4=''command''| 5='...")
 
Line 1: Line 1:
== Usage ==
== Usage ==
  <nowiki>{{Console|
  <nowiki>{{Console|
  root=true|</nowiki><span style="float:right">{{redBold|*}}</span><nowiki>
  root=true|</nowiki><span style="float:right">{{redBold|*}}</span>
  1=''command''|
  1=''Command''<nowiki>|</nowiki>
  2=''command''|
  2=''Command''<nowiki>|</nowiki>
  3=''command''|
  3=''Command''<nowiki>|</nowiki>
  4=''command''|
  4=''Command''<nowiki>|</nowiki>
  5=''command''<nowiki>
  5=''Command''
}}</nowiki>
<nowiki>}}</nowiki>
&nbsp; {{redBold|&#42;}} Optional field
&nbsp; {{redBold|&#42;}} Optional field



Revision as of 15:42, 10 July 2017

Usage

{{Console|
 root=true|*
1=Command|
2=Command|
3=Command|
4=Command|
5=Command
}}

  * Optional field

Preview

This preview is with root enabled.

root ~ # rm -rf /

This preview is without specifying the root argument.

# sudo pacman -Syu

Colors

Colors can also be added within the console template. Use the <mark> HTML5 tag 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 the number '2' to the end of the color name (eg. 'blue2')

Color Preview

███ ███ ███ ███ ███ ███ ███ ███
███ ███ ███ ███ ███ ███ ███ ███