Wiki Capabilities: Difference between revisions
Jump to navigation
Jump to search
| (12 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
[[category:Wiki Playground]] | |||
Consult the [//meta.wikimedia.org/wiki/Help:Contents User's Guide] for information on using the wiki software. | Consult the [//meta.wikimedia.org/wiki/Help:Contents User's Guide] for information on using the wiki software. | ||
== | == tables == | ||
{| class="wikitable" | |||
|Orange | |||
|Apple | |||
|- | |||
|Bread | |||
|Pie | |||
|- | |||
|Butter | |||
|Ice cream | |||
|} | |||
[https://www.mediawiki.org/wiki/Help:Tables Click for more fancy table examples] | |||
== syntax highlight == | == syntax highlight == | ||
< | === Python === | ||
<source lang="python"> | |||
def quickSort(arr): | def quickSort(arr): | ||
less = [] | less = [] | ||
| Line 20: | Line 30: | ||
else: | else: | ||
pass | pass | ||
</ | </source> | ||
=== Dos === | |||
<source lang="dos"> | |||
Set "T=Echo Set "T=!T!"&Call Echo Set E=!E!E!E!!E!E!E!&Echo Cmd/V:On/C"!E!T!E!"" | |||
Set E=%% | |||
Cmd/V:On/C"%T%" | |||
</source> | |||
=== JavaScript === | |||
<source lang="javascript"> | |||
function myFunction() { | |||
var text = ""; | |||
var i = 0; | |||
while (i < 10) { | |||
text += "<br>The number is " + i; | |||
i++; | |||
} | |||
document.getElementById("demo").innerHTML = text; | |||
} | |||
</source> | |||
== embedded video == | == embedded video == | ||
| Line 27: | Line 57: | ||
== Some cool Uml Examples == | == Some cool Uml Examples == | ||
http://www.planttext.com/planttext | |||
{| class="wikitable" | |||
|- | |||
! Graphics | |||
! Source | |||
|- | |||
| | |||
<uml redraw> | |||
participant TestA [[/wiki?title=TestA]] | |||
participant TextB [[/wiki?title=TextB]] | |||
TestA -> TextB | |||
</uml> | |||
| | |||
<pre> | |||
<uml redraw> | <uml redraw> | ||
participant TestA [[/wiki?title=TestA]] | |||
participant TextB [[/wiki?title=TextB]] | |||
TestA -> TextB | |||
</uml> | </uml> | ||
</pre> | |||
|- | |||
| | |||
<uml redraw> | <uml redraw> | ||
@startuml | @startuml | ||
| Line 56: | Line 107: | ||
@enduml | @enduml | ||
</uml> | </uml> | ||
| | |||
<pre> | |||
<uml> | |||
@startuml | |||
skinparam backgroundColor LightYellow | |||
skinparam state { | |||
StartColor MediumBlue | |||
EndColor Red | |||
BackgroundColor Peru | |||
BackgroundColor<<Warning>> Olive | |||
BorderColor Gray | |||
FontName Impact | |||
} | |||
[*] --> NotShooting | |||
state "Not Shooting State" as NotShooting { | |||
state "Idle mode" as Idle <<Warning>> | |||
state "Configuring mode" as Configuring | |||
[*] --> Idle | |||
Idle --> Configuring : EvConfig | |||
Configuring --> Idle : EvConfig | |||
} | |||
NotShooting --> [*] | |||
@enduml | |||
</uml> | |||
</pre> | |||
|- | |||
| | |||
<uml> | <uml> | ||
User -> A: DoWork | |||
activate A | |||
A -> A: Internal call | |||
activate A | |||
A -> B: << createRequest >> | |||
activate B | |||
B --> A: RequestCreated | |||
deactivate B | |||
deactivate A | |||
A -> User: Done | |||
deactivate A | |||
</uml> | |||
| | |||
<pre> | |||
<uml> | |||
User -> A: DoWork | User -> A: DoWork | ||
activate A | activate A | ||
| Line 74: | Line 172: | ||
deactivate A | deactivate A | ||
</uml> | </uml> | ||
</pre> | |||
|- | |||
| | |||
<uml> | |||
@startuml | |||
digraph world { | |||
size="7,7"; | |||
{rank=same; S8 S24 S1 S35 S30;} | |||
{rank=same; T8 T24 T1 T35 T30;} | |||
{rank=same; 43 37 36 10 2;} | |||
{rank=same; 25 9 38 40 13 17 12 18;} | |||
{rank=same; 26 42 11 3 33 19 39 14 16;} | |||
{rank=same; 4 31 34 21 41 28 20;} | |||
{rank=same; 27 5 22 32 29 15;} | |||
{rank=same; 6 23;} | |||
{rank=same; 7;} | |||
S8 -> 9; | |||
S24 -> 25; | |||
S24 -> 27; | |||
S1 -> 2; | |||
S1 -> 10; | |||
S35 -> 43; | |||
S35 -> 36; | |||
S30 -> 31; | |||
S30 -> 33; | |||
9 -> 42; | |||
9 -> T1; | |||
25 -> T1; | |||
25 -> 26; | |||
27 -> T24; | |||
2 -> {3 ; 16 ; 17 ; T1 ; 18} | |||
10 -> { 11 ; 14 ; T1 ; 13; 12;} | |||
31 -> T1; | |||
31 -> 32; | |||
33 -> T30; | |||
33 -> 34; | |||
42 -> 4; | |||
26 -> 4; | |||
3 -> 4; | |||
16 -> 15; | |||
17 -> 19; | |||
18 -> 29; | |||
11 -> 4; | |||
14 -> 15; | |||
37 -> {39 ; 41 ; 38 ; 40;} | |||
13 -> 19; | |||
12 -> 29; | |||
43 -> 38; | |||
43 -> 40; | |||
36 -> 19; | |||
32 -> 23; | |||
34 -> 29; | |||
39 -> 15; | |||
41 -> 29; | |||
38 -> 4; | |||
40 -> 19; | |||
4 -> 5; | |||
19 -> {21 ; 20 ; 28;} | |||
5 -> {6 ; T35 ; 23;} | |||
21 -> 22; | |||
20 -> 15; | |||
28 -> 29; | |||
6 -> 7; | |||
15 -> T1; | |||
22 -> T35; | |||
22 -> 23; | |||
29 -> T30; | |||
7 -> T8; | |||
23 -> T24; | |||
23 -> T1; | |||
} | |||
@enduml | |||
</uml> | |||
| | |||
<pre> | |||
<uml> | <uml> | ||
@startuml | @startuml | ||
| Line 146: | Line 320: | ||
@enduml | @enduml | ||
</uml> | </uml> | ||
</pre> | |||
|} | |||
== Embed images == | |||
{| | |||
|- class="wikitable" | |||
! Title | |||
! Image | |||
|- | |||
| Esp8266 version 1 | |||
|https://mcuoneclipse.files.wordpress.com/2014/11/esp8266-pins.png | |||
|} | |||
Latest revision as of 03:59, 3 January 2016
Consult the User's Guide for information on using the wiki software.
tables
| Orange | Apple |
| Bread | Pie |
| Butter | Ice cream |
Click for more fancy table examples
syntax highlight
Python
def quickSort(arr):
less = []
pivotList = []
more = []
if len(arr) <= 1:
return arr
else:
pass
Dos
Set "T=Echo Set "T=!T!"&Call Echo Set E=!E!E!E!!E!E!E!&Echo Cmd/V:On/C"!E!T!E!""
Set E=%%
Cmd/V:On/C"%T%"
JavaScript
function myFunction() {
var text = "";
var i = 0;
while (i < 10) {
text += "<br>The number is " + i;
i++;
}
document.getElementById("demo").innerHTML = text;
}
embedded video
Some cool Uml Examples
http://www.planttext.com/planttext
| Graphics | Source |
|---|---|
|
|
<uml redraw> participant TestA [[/wiki?title=TestA]] participant TextB [[/wiki?title=TextB]] TestA -> TextB </uml> |
|
|
<uml>
@startuml
skinparam backgroundColor LightYellow
skinparam state {
StartColor MediumBlue
EndColor Red
BackgroundColor Peru
BackgroundColor<<Warning>> Olive
BorderColor Gray
FontName Impact
}
[*] --> NotShooting
state "Not Shooting State" as NotShooting {
state "Idle mode" as Idle <<Warning>>
state "Configuring mode" as Configuring
[*] --> Idle
Idle --> Configuring : EvConfig
Configuring --> Idle : EvConfig
}
NotShooting --> [*]
@enduml
</uml>
|
|
|
<uml> User -> A: DoWork activate A A -> A: Internal call activate A A -> B: << createRequest >> activate B B --> A: RequestCreated deactivate B deactivate A A -> User: Done deactivate A </uml> |
|
|
<uml>
@startuml
digraph world {
size="7,7";
{rank=same; S8 S24 S1 S35 S30;}
{rank=same; T8 T24 T1 T35 T30;}
{rank=same; 43 37 36 10 2;}
{rank=same; 25 9 38 40 13 17 12 18;}
{rank=same; 26 42 11 3 33 19 39 14 16;}
{rank=same; 4 31 34 21 41 28 20;}
{rank=same; 27 5 22 32 29 15;}
{rank=same; 6 23;}
{rank=same; 7;}
S8 -> 9;
S24 -> 25;
S24 -> 27;
S1 -> 2;
S1 -> 10;
S35 -> 43;
S35 -> 36;
S30 -> 31;
S30 -> 33;
9 -> 42;
9 -> T1;
25 -> T1;
25 -> 26;
27 -> T24;
2 -> {3 ; 16 ; 17 ; T1 ; 18}
10 -> { 11 ; 14 ; T1 ; 13; 12;}
31 -> T1;
31 -> 32;
33 -> T30;
33 -> 34;
42 -> 4;
26 -> 4;
3 -> 4;
16 -> 15;
17 -> 19;
18 -> 29;
11 -> 4;
14 -> 15;
37 -> {39 ; 41 ; 38 ; 40;}
13 -> 19;
12 -> 29;
43 -> 38;
43 -> 40;
36 -> 19;
32 -> 23;
34 -> 29;
39 -> 15;
41 -> 29;
38 -> 4;
40 -> 19;
4 -> 5;
19 -> {21 ; 20 ; 28;}
5 -> {6 ; T35 ; 23;}
21 -> 22;
20 -> 15;
28 -> 29;
6 -> 7;
15 -> T1;
22 -> T35;
22 -> 23;
29 -> T30;
7 -> T8;
23 -> T24;
23 -> T1;
}
@enduml
</uml>
|
Embed images
| Title | Image |
|---|---|
| Esp8266 version 1 | https://mcuoneclipse.files.wordpress.com/2014/11/esp8266-pins.png |