Template:Console/doc: Difference between revisions
From Wiki³
m (→Preview) |
m (→Colors) |
||
| Line 20: | Line 20: | ||
== Colors == | == Colors == | ||
Colors can also be added within the console template. Use the | Colors can also be added within the console template. Use the color templates provided in order to specify which color.<br/> | ||
Valid colors: | Valid colors: Black, Red, Green, Yellow, Blue, Magenta, Cyan, White<br/> | ||
''If you wish to use the highlighted version, add | ''If you wish to use the highlighted version, add 'Bold' to the end of the color name (eg. 'BlueBold')'' | ||
'''Color Preview''' | '''Color Preview''' | ||
{{Console|prompt=false|1= | {{Console|prompt=false|1={{Black|███}} {{Red|███}} {{Green|███}} {{Yellow|███}} {{Blue|███}} {{Magenta|███}} {{Cyan|███}} {{White|███}}<br/>{{BlackBold|███}} {{RedBold|███}} {{GreenBold|███}} {{YellowBold|███}} {{BlueBold|███}} {{MagentaBold|███}} {{CyanBold|███}} {{WhiteBold|███}}}}<noinclude> | ||
[[Category:Templates]] | [[Category:Templates]] | ||
</noinclude> | </noinclude> | ||
Revision as of 00:31, 26 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 |
This last preview is without a prompt at all, using color.
| 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
| ███ ███ ███ ███ ███ ███ ███ ███ ███ ███ ███ ███ ███ ███ ███ ███ |