Template:Console/doc: Difference between revisions

From Wiki³
mNo edit summary
Line 1: Line 1:
== Usage ==
== Usage ==
  <nowiki>{{Console|
  <nowiki>{{</nowiki>Console{{!}}
  root=true|</nowiki><span style="float:right">{{redBold|*}}</span>
  root=true{{!}} ''(default: false)''{{redBold|*}}
  1=''Command''<nowiki>|</nowiki>
prompt=false{{!}} ''(default: true)''{{redBold|*}}
  2=''Command''<nowiki>|</nowiki>
  1=''Command''{{!}}
  3=''Command''<nowiki>|</nowiki>
  2=''Command''{{!}}
  4=''Command''<nowiki>|</nowiki>
  3=''Command''{{!}}
  4=''Command''{{!}}
  5=''Command''
  5=''Command''
  <nowiki>}}</nowiki>
  <nowiki>}}</nowiki>
Line 21: Line 22:


'''Color Preview'''
'''Color Preview'''
{{BBS|1=<mark class="black">███</mark> <mark class="red">███</mark> <mark class="green">███</mark> <mark class="yellow">███</mark> <mark class="blue">███</mark> <mark class="magenta">███</mark> <mark class="cyan">███</mark> <mark class="white">███</mark><br/><mark class="black2">███</mark> <mark class="red2">███</mark> <mark class="green2">███</mark> <mark class="yellow2">███</mark> <mark class="blue2">███</mark> <mark class="magenta2">███</mark> <mark class="cyan2">███</mark> <mark class="white2">███</mark>}}<noinclude>
{{Console|prompt=false|1=<mark class="black">███</mark> <mark class="red">███</mark> <mark class="green">███</mark> <mark class="yellow">███</mark> <mark class="blue">███</mark> <mark class="magenta">███</mark> <mark class="cyan">███</mark> <mark class="white">███</mark><br/><mark class="black2">███</mark> <mark class="red2">███</mark> <mark class="green2">███</mark> <mark class="yellow2">███</mark> <mark class="blue2">███</mark> <mark class="magenta2">███</mark> <mark class="cyan2">███</mark> <mark class="white2">███</mark>}}<noinclude>
[[Category:Templates]]
[[Category:Templates]]
</noinclude>
</noinclude>

Revision as of 17:07, 10 July 2017

Usage

{{Console|
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.

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

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