Template:Console: Difference between revisions

From Wiki³
mNo edit summary
mNo edit summary
 
Line 2: Line 2:
{{#if:{{{title|}}}|<div class="template-console-title">{{BlueBold|'''filename''':}} {{{title}}}</div>|}}
{{#if:{{{title|}}}|<div class="template-console-title">{{BlueBold|'''filename''':}} {{{title}}}</div>|}}
<table>
<table>
<tr><td colspan="2" class="template-console" style="{{#ifeq:{{{powershell}}}|true|background-color:#012456;color:#eee;|}}">{{#ifeq:{{{root}}}|true|<mark class="red2">root</mark>@archiso <mark class="white2">~</mark> &#35;&nbsp;|{{#ifeq:{{{prompt}}}|false||&#35;&nbsp;}}}}{{{1}}}{{#if:{{{2|}}}|<br/>{{#ifeq:{{{root}}}|true|<mark class="red2">root</mark>@archiso <mark class="white2">~</mark> &#35;&nbsp;|{{#ifeq:{{{prompt}}}|false||&#35;&nbsp;}}}}{{{2}}}|}}{{#if:{{{3|}}}|<br/>{{#ifeq:{{{root}}}|true|<mark class="red2">root</mark>@archiso <mark class="white2">~</mark> &#35;&nbsp;|{{#ifeq:{{{prompt}}}|false||&#35;&nbsp;}}}}{{{3}}}|}}{{#if:{{{4|}}}|<br/>{{#ifeq:{{{root}}}|true|<mark class="red2">root</mark>@archiso <mark class="white2">~</mark> &#35;&nbsp;|{{#ifeq:{{{prompt}}}|false||&#35;&nbsp;}}}}{{{4}}}|}}{{#if:{{{5|}}}|<br/>{{#ifeq:{{{root}}}|true|<mark class="red2">root</mark>@archiso <mark class="white2">~</mark> &#35;&nbsp;|{{#ifeq:{{{prompt}}}|false||&#35;&nbsp;}}}}{{{5}}}|}}</td></tr>
<tr><td colspan="2" class="template-console" style="{{#ifeq:{{{powershell}}}|true|background-color:#012456;color:#eee;|}}">{{#ifeq:{{{root}}}|true|<mark class="red2">root</mark> <mark class="white2">~</mark> &#35;&nbsp;|{{#ifeq:{{{prompt}}}|false||&#35;&nbsp;}}}}{{{1}}}{{#if:{{{2|}}}|<br/>{{#ifeq:{{{root}}}|true|<mark class="red2">root</mark> <mark class="white2">~</mark> &#35;&nbsp;|{{#ifeq:{{{prompt}}}|false||&#35;&nbsp;}}}}{{{2}}}|}}{{#if:{{{3|}}}|<br/>{{#ifeq:{{{root}}}|true|<mark class="red2">root</mark> <mark class="white2">~</mark> &#35;&nbsp;|{{#ifeq:{{{prompt}}}|false||&#35;&nbsp;}}}}{{{3}}}|}}{{#if:{{{4|}}}|<br/>{{#ifeq:{{{root}}}|true|<mark class="red2">root</mark> <mark class="white2">~</mark> &#35;&nbsp;|{{#ifeq:{{{prompt}}}|false||&#35;&nbsp;}}}}{{{4}}}|}}{{#if:{{{5|}}}|<br/>{{#ifeq:{{{root}}}|true|<mark class="red2">root</mark> <mark class="white2">~</mark> &#35;&nbsp;|{{#ifeq:{{{prompt}}}|false||&#35;&nbsp;}}}}{{{5}}}|}}</td></tr>
</table></div><noinclude><br />
</table></div><noinclude><br />
{{documentation}}
{{documentation}}
[[Category:Templates]]
[[Category:Templates]]
</noinclude>
</noinclude>

Latest revision as of 03:18, 30 September 2018

# {{{1}}}


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.

root ~ # rm -rf /

This preview is without specifying the root argument.

# sudo pacman -Syu

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

filename: moo.txt
Woo! Hello World!

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

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