Terminal
{{{text}}}
Note: This template has been transferred from tswiki:Template:Terminal.
Parameters
Template parameters[Edit template data]
Parameter | Description | Type | Status |
---|
text | text | The text to display in the terminal window.
| String | required |
---|
skin | skin | Sets the appearance of the terminal window. One of 'noborder', 'win' or 'mac'.
| String | optional |
---|
style | style | Extra CSS style options for the title.
| String | optional |
---|
icon | icon | Icon to display in the title. - Default
- (Depends on the skin parameter)
| String | optional |
---|
title | title | Title to display. - Default
- (either Terminal or Command Prompt depending on skin)
| String | optional |
---|
height | height | Height of main text - Default
- 30em
| String | optional |
---|
textstyle | textstyle | Extra CSS Style options for main text.
| String | optional |
---|
Skins
The |skin=
parameter sets the look of the terminal window:
Markup |
Renders as
|
Default
{{terminal|text=hello}}
|
Terminal
hello
|
win
{{terminal|text=hello|skin=win}}
|
|
mac
{{terminal|text=hello|skin=mac}}
|
|
noborder
{{terminal|text=hello|skin=noborder}}
|
|
|
|
Examples
- login
Terminal
login as: dispenser
Authenticating with public key "rsa-key-20080514"
Passphrase for key "rsa-key-20080514":
Did you know...
... that if you don't read the rules, you will be haunted by the ghost
of Noel Edmunds until the day you die?
http://meta.wikimedia.org/wiki/Toolserver/Rules
... that our trained monkeys have written lots of helpful but confusingly
organised documentation for users?
http://meta.wikimedia.org/wiki/Toolserver/For_users (or type "faq")
... that we also have a server that doesn't crash every other day and
run like a snail who overdosed on sleeping pills?
http://meta.wikimedia.org/wiki/Toolserver/Stable_server
... that making your home world-writeable is a BAD idea?
Last login: Sun Aug 09 5:34:56 2020 from loop-10-165-250-71.tbeakm.aret.rastryn
.net
Your account will expire on Sunday, 8 December 2024.
dispenser@nightshade:~$ █
- Sample sql queries
Terminal
dispenser@nightshade:~$ sql enwiki_p
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 5926554
Server version: 5.0.64 Source distribution
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> DESCRIBE
-> user_groups;
+----------+-----------------+------+-----+---------+-------+
| Field | Type | Null | Key | Default | Extra |
+----------+-----------------+------+-----+---------+-------+
| ug_user | int(5) unsigned | NO | | 0 | |
| ug_group | char(16) | NO | | | |
+----------+-----------------+------+-----+---------+-------+
2 rows in set (0.00 sec)
mysql> SELECT count(*) FROM user_groups WHERE ug_group="sysop";
+----------+
| count(*) |
+----------+
| 2 |
+----------+
1 row in set (0.03 sec)
mysql> SELECT * from site_stats;
+-----------+----------------+----------------+------------------+--------------
-+----------+-----------+-----------+
| ss_row_id | ss_total_views | ss_total_edits | ss_good_articles | ss_total_page
| ss_users | ss_admins | ss_images |
+-----------+----------------+----------------+------------------+--------------
-+----------+-----------+-----------+
| 1 | 63208805 | 8947 | 75 | 1273
| 133 | 496 | 39 |
+-----------+----------------+----------------+------------------+--------------
-+----------+-----------+-----------+
1 row in set (0.00 sec)
mysql> quit
Bye
dispenser@nightshade:~$ █