Last edited one year ago

PC$

1. Usage

The PC$ template is used to prefix a command that must be executed on an host PC, with an host-specific prompt.
Thanks to the pc-prompt class defined in MediaWiki:Common.css, a double (or triple) click to select the command doesn't select the prompt.

Usage:  {{PC$}}
Warning DB.png Important
Do not insert any space between "{{PC$}}" and the command.

2. Basic examples

You type You get
ls test command executed on the host PC
{{PC$}}ls test<br>
test1.txt test2.txt

ls test
test1.txt test2.txt

3. More examples

You type You get
2 commands executed on the host PC and preformatted text block (space at the beginning of each line)
 {{PC$}}ls test
 test1.txt test2.txt
 {{PC$}}cat test/test1.txt
 This is a test
ls test
test1.txt test2.txt
cat test/test1.txt
This is a test
Command executed on the host PC and preformatted text block (space at the beginning of each line)
 {{PC$}}ls test
 test1.txt test2.txt
ls test
test1.txt test2.txt
Long command executed on the host PC and preformatted text block (space at the beginning of each line)
 {{PC$}}this is a so long command executed on the host PC that a horizontal scrolling bar is needed
this is a so long command executed on the host PC that a horizontal scrolling bar is needed
Template used within another public message box template
{{Info |
Message before the command
 {{PC$}}ls test
 test1.txt test2.txt
Message after the command
}}
Info white.png Information

Message before the command

ls test
test1.txt test2.txt

Message after the command

Template used within another protected message box template
{{InternalInfo |
Message before the command
 {{PC$}}ls test
 test1.txt test2.txt
Message after the command
}}

4. Maintenance

This template is a template common to all ST wikis.
Modifications must be done into the WikiModel. They must be reviewed by all ST wikis maintainers.
When approved, the template can be pushed/merged towards all ST wikis.

5. Code

No categories assignedEdit