This message will disappear after all relevant tasks have been resolved.
Semantic MediaWiki
There are 1 incomplete or pending task to finish installation of Semantic MediaWiki. An administrator or user with sufficient rights can complete it. This should be done before adding new data to avoid inconsistencies.Registered User (Merge articles) |
Registered User (Merge articles) |
||
Line 5: | Line 5: | ||
Usage: <nowiki>{{</nowiki>Board$}} | Usage: <nowiki>{{</nowiki>Board$}} | ||
{{Important | Do not insert any space between "<nowiki>{{Board$}}</nowiki>" and the command.}} | |||
==Basic examples== | ==Basic examples== | ||
Line 12: | Line 14: | ||
| <code>ls test</code> command executed on the board | | <code>ls test</code> command executed on the board | ||
<pre style="white-space: pre-wrap;"> | <pre style="white-space: pre-wrap;"> | ||
{{Board$}} ls test<br> | {{Board$}}ls test<br> | ||
test1.txt test2.txt | test1.txt test2.txt | ||
</pre> | </pre> | ||
| | | | ||
{{Board$}} ls test<br> | {{Board$}}ls test<br> | ||
test1.txt test2.txt | test1.txt test2.txt | ||
|} | |} | ||
Line 26: | Line 28: | ||
| 2 commands executed on the board and preformatted text block (space at the beginning of each line) | | 2 commands executed on the board and preformatted text block (space at the beginning of each line) | ||
<pre style="white-space: pre-wrap;"> | <pre style="white-space: pre-wrap;"> | ||
{{Board$}} ls test | {{Board$}}ls test | ||
test1.txt test2.txt | test1.txt test2.txt | ||
{{Board$}} cat test/test1.txt | {{Board$}}cat test/test1.txt | ||
This is a test | This is a test | ||
</pre> | </pre> | ||
| | | | ||
{{Board$}} ls test | {{Board$}}ls test | ||
test1.txt test2.txt | test1.txt test2.txt | ||
{{Board$}} cat test/test1.txt | {{Board$}}cat test/test1.txt | ||
This is a test | This is a test | ||
|- | |- | ||
| Command executed on the board and preformatted text block (space at the beginning of each line) | | Command executed on the board and preformatted text block (space at the beginning of each line) | ||
<pre style="white-space: pre-wrap;"> | <pre style="white-space: pre-wrap;"> | ||
{{Board$}} ls test | {{Board$}}ls test | ||
test1.txt test2.txt | test1.txt test2.txt | ||
</pre> | </pre> | ||
| | | | ||
{{Board$}} ls test | {{Board$}}ls test | ||
test1.txt test2.txt | test1.txt test2.txt | ||
|- | |- | ||
| Long command executed on the board and preformatted text block (space at the beginning of each line) | | Long command executed on the board and preformatted text block (space at the beginning of each line) | ||
<pre style="white-space: pre-wrap;"> | <pre style="white-space: pre-wrap;"> | ||
{{Board$}} this is a so long command executed on the board that a horizontal scrolling bar is needed | {{Board$}}this is a so long command executed on the board that a horizontal scrolling bar is needed | ||
</pre> | </pre> | ||
| style="max-width:30em;" | | | style="max-width:30em;" | | ||
{{Board$}} this is a so long command executed on the board that a horizontal scrolling bar is needed | {{Board$}}this is a so long command executed on the board that a horizontal scrolling bar is needed | ||
|- | |- | ||
| Template used within another public message box template | | Template used within another public message box template | ||
Line 57: | Line 59: | ||
{{Info | | {{Info | | ||
Message before the command | Message before the command | ||
{{Board$}} ls test | {{Board$}}ls test | ||
test1.txt test2.txt | test1.txt test2.txt | ||
Message after the command | Message after the command | ||
Line 65: | Line 67: | ||
{{Info | | {{Info | | ||
Message before the command | Message before the command | ||
{{Board$}} ls test | {{Board$}}ls test | ||
test1.txt test2.txt | test1.txt test2.txt | ||
Message after the command | Message after the command | ||
Line 74: | Line 76: | ||
{{InternalInfo | | {{InternalInfo | | ||
Message before the command | Message before the command | ||
{{Board$}} ls test | {{Board$}}ls test | ||
test1.txt test2.txt | test1.txt test2.txt | ||
Message after the command | Message after the command | ||
Line 82: | Line 84: | ||
{{InternalInfo | | {{InternalInfo | | ||
Message before the command | Message before the command | ||
{{Board$}} ls test | {{Board$}}ls test | ||
test1.txt test2.txt | test1.txt test2.txt | ||
Message after the command | Message after the command |
Latest revision as of 17:58, 16 March 2023
1. Usage
The Board$ template is used to prefix a command that must be executed on a board, with a board-specific prompt.
Thanks to the board-prompt
class defined in MediaWiki:Common.css, a double (or triple) click to select the command doesn't select the prompt.
Usage: {{Board$}}
2. Basic examples
You type | You get |
---|---|
ls test command executed on the board
{{Board$}}ls test<br>
test1.txt test2.txt
|
ls test |
3. More examples
You type | You get |
---|---|
2 commands executed on the board and preformatted text block (space at the beginning of each line)
{{Board$}}ls test
test1.txt test2.txt
{{Board$}}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 board and preformatted text block (space at the beginning of each line)
{{Board$}}ls test
test1.txt test2.txt
|
ls test
test1.txt test2.txt
|
Long command executed on the board and preformatted text block (space at the beginning of each line)
{{Board$}}this is a so long command executed on the board that a horizontal scrolling bar is needed
|
this is a so long command executed on the board that a horizontal scrolling bar is needed
|
Template used within another public message box template
{{Info |
Message before the command
{{Board$}}ls test
test1.txt test2.txt
Message after the command
}}
|
|
Template used within another protected message box template
{{InternalInfo |
Message before the command
{{Board$}}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