Trails:

Cyberspace of Shujun LI >> JsWikiCommands

This is a list of most formatting commands that the local edition of JsWiki support. Note that some commands may not be available at the original edition. I have made some customizations for my own use.

Please note that this page is not compliant with XHTML 1.0 standard, because some bad commands are deliberately used to demonstrate the corresponding wrong outputs.

Basics

*Italic*, **Bold**, **''Italic Bold''**, ***Italic Bold* and Bold**\n
''斜体'','''粗体''','''*粗斜体*''','''''粗斜体''和粗体'''
Italic, Bold, Italic Bold, Italic Bold and Bold
斜体粗体粗斜体粗斜体和粗体

Note: Use "***test***" and "'''''test'''''" will generate invalid XHTML codes like "<strong><em>test</strong></em>", though the display might be correct.
__下划线__ --删除线--
下划线 删除线
<font color="red">Red</font>
Red
<p align="center">Center</p>

Center

<p align="right">Right</p>

Right

<font size="1">Size=1</font>\n
<font size="2">Size=2</font>\n
<font size="3">Size=3</font>\n
<font size="4">Size=4</font>\n
<font size="5">Size=5</font>\n
<font size="6">Size=6</font>\n
<font size="7">Size=7</font>
Size=1
Size=2
Size=3
Size=4
Size=5
Size=6
Size=7
<font style="font-size: 50px; font-weight: bold; font-style: italic; font-family: 华文行楷; color: rgb(255, 255, 0);">测试</font>
测试

Headers

Header
===============

Header

=Header=
==header==
===sub-header===
====sub-sub-header====
=====sub-sub-sub-header=====

Header

header

sub-header

sub-sub-header

sub-sub-sub-header

Images

|| 代码 || \:\D || \:\) || \:\( || \:\o || \:shock\: || \:\? || 8\) || \:lol\: || \:wink\: || \:roll\: || \:twisted\: || \:evil\: || \:cry\: || \:\oops\: || \:\P || \:\x || \:!\: || \:\?\: || \:i\: || \:arrow\: || \:\| ||
|| 图案 ||  :D || :) || :( || :o || :shock: || :? || 8) || :lol: || :wink: || :roll: || :twisted: || :evil: || :cry: || :oops: || :P || :x || :!: || :?: || :i: || :arrow: || :| ||
  代码    :D    :)    :(    :o    :shock:    :?    8)    :lol:    :wink:    :roll:    :twisted:    :evil:    :cry:    :oops:    :P    :x    :!:    :?:    :i:    :arrow:    :|  
  图案    emotion icon    emotion icon    emotion icon    emotion icon    emotion icon    emotion icon    emotion icon    emotion icon    emotion icon    emotion icon    emotion icon    emotion icon    emotion icon    emotion icon    emotion icon    emotion icon    emotion icon    emotion icon    emotion icon    emotion icon    emotion icon  
!http://www.hooklee.com/images/Wikipedia.gif!
![维基百科](/images/Wikipedia.gif "Wikipedia")
维基百科

Links and Anchors

[hooklee](http://www.hooklee.com "hooklee")
hooklee
[ChinaTeX](default.asp?t=TeX%2FLaTeX#ChinaTeX "ChinaTeX")
ChinaTeX
[!http://www.hooklee.com/images/Wikipedia.gif!](http://www.hooklee.com "Wikipedia")
[#Anchor] Here is the position of an anchor named "Anchor".
Here is the position of an anchor named "Anchor".

WikiWords

[[WikiWord]] [[JsWikiCommands#Images]]
WikiWord? JsWikiCommands
[[Wikipedia:FrontPage]] [[HookWiki:JsWiki]] [[Allwiki:FrontPage#.E4.BD.BF.E7.94.A8.E6.8A.80.E5.B7.A7]] [[iTwiki:CPU]] [[wikiHow:Eat]]
FrontPage JsWiki Allwiki:FrontPage? iTwiki:CPU? Eat
[[Display Name]](WikiWord) [[JsWikiCommands - Links]](JsWikiCommands#Links)
Display Name? JsWikiCommands - Links

Item Lists

* Test
* Test
* Test
# Test
# Test
# Test
  1. Test
  2. Test
  3. Test
2. Test
4. Test\n\n
  对齐的问题
7. Test
8. Test
  1. Test
  2. Test

    对齐的问题
  3. Test
  4. Test
<ol start="2">
<li>Test</li>
<li value="4">Test\n\n
对齐的问题</li>
<li value="7">Test</li>
<li>Test</li>
</ol>
  1. Test
  2. Test

    对齐的问题
  3. Test
  4. Test
- Test
- Test
- Test
* Test\n
  More details ...
  # Test\n
    More details ...
    1. Test\n
      More details ...
      - Test\n
         More details ...

Tables

|| Test || Test || Test ||
|| Test ||
|| || Test ||
|| || || Test ||
|| Test || Test || Test ||
  Test    Test    Test  
  Test  
     Test  
        Test  
  Test    Test    Test  
|| **Photo** || **ID** ||
|| !/images/Wikipedia.gif! || Wikipedia ||
  Photo    ID  
     Wikipedia  
<table cellpadding="4" class="noborder" align="center"><tr><td align="center">**Photo**</td><td align="center">**ID**</td></tr>
<tr><td>!/images/Wikipedia.gif!</td><td align="center">Wikipedia</td></tr></table>
PhotoID
Wikipedia
<div align="right"><table cellpadding="4" class="profile"><tr><td align="center">**Photo**</td><td align="center">**ID**</td></tr>
<tr><td>!/images/Wikipedia.gif!</td><td align="center">Wikipedia</td></tr></table></div>
PhotoID
Wikipedia
<table cellpadding="4" class="profile" align="right"><tr><td align="center">**Photo**</td><td align="center">**ID**</td></tr>
<tr><td>!/images/Wikipedia.gif!</td><td align="center">Wikipedia</td></tr></table>
PhotoID
Wikipedia

Special Codes

|JsWiki|
JsWiki
\[\{\(\\\`\|\'\*\-\_\<\>\=\#\!\"\)\]\}\.\ \ \ \:\?\x\o\P\D
[{(\`|'*-_<>=#!")}].   :?xoPD
{{{#Java 
    import java.io.*;
    import javax.mail.*;
    import javax.mail.internet.*;
    import javax.activation.*;
    
    public class SendApp {
        public static void send(String smtpHost, int smtpPort,
                                String from, String to,
                                String subject, String content)
                throws AddressException, MessagingException {
            // Create a mail session
            java.util.Properties props = new java.util.Properties();
            props.put("mail.smtp.host", smtpHost);
            props.put("mail.smtp.port", ""+smtpPort);
            ...
                                                             }
         ...
                         }
    // Special characters: /[]{}()*+-=!\
}}}
    import java.io.*;
    import javax.mail.*;
    import javax.mail.internet.*;
    import javax.activation.*;
    
    public class SendApp {
        public static void send(String smtpHost, int smtpPort,
                                String from, String to,
                                String subject, String content)
                throws AddressException, MessagingException {
            // Create a mail session
            java.util.Properties props = new java.util.Properties();
            props.put("mail.smtp.host", smtpHost);
            props.put("mail.smtp.port", ""+smtpPort);
            ...
                                                             }
         ...
                         }
    // Special characters: /[]{}()*+-=!\

Footnotes

According to the "small world" theorem [11] and the results obtained in [[22](http://www.shan3.com)], we can get ...\n\n

fn11. http://www.hooklee.com\n
fn99. http://www.wikipedia.org
According to the "small world" theorem 11 and the results obtained in [22], we can get ...

[11]  http://www.hooklee.com
[22] http://www.shan3.com

Macros

<jswiki:InterWikiList()>
wikipedia  http://en.wikipedia.org/wiki/
hookwiki  http://www.hooklee.com/JsWiki/default.asp?t=
hudongwiki  http://www.hudong.com/wiki/
wikihow  http://www.wikihow.com/
jswiki  jswiki.asp?t=
<jswiki:Script(http://www.hooklee.com/xystat/xystat.asp)>
<jswiki:Redirect(重定向地址)>
This macro command cannot be displayed here, because ...
<jswiki:include(menu_HTMS.html)>

Special Escape Command "\0"

This command is useful when there are three delimiter characters of the same kind, in which the first one is actually an escape character with "\". Without the command "\0", the last delimiter character will be eated.
\*abc*def*\n
\*abc\0*def*
*abc*def*
*abcdef
\`abc`f''(x)`\n
\`abc\0`f''(x)`
`abc`f''(x)`
`abcf''(x)
\|abc|JsWiki|\n
\|abc\0|JsWiki|
|abc|JsWiki|
|abcJsWiki
**Test\***, ***A* and B**\n
**Test\***, \0***A* and B**
Test*, *A* and B
Test*, A and B

Robustness about Wiki Commands

'''Test''', ''Test'', '''''Test'''''\n
'''Test\''', ''Test\'', '''''Test\'''''\n
\'''Test''', \''Test'', \'''''Test'''''\n
''\'Test\''',\0'''\'Test\'''' '''''\'Test\''''''\n
___fsh_fksfd___\n
__\_fsh_fksfd\___\n
__\_fsh_fksfd\__\n
---fshfk-sfd---\n
--\-fshf-ksfd\---\n
--\-fshf-ksfd\--
Test, Test, Test
Test''', ''Test'', ''Test'''''
'''Test''', ''Test'', '''''Test'
'Test','Test' 'Test'
_fsh_fksfd_
_fsh_fksfd_
___fsh_fksfd__
-fshfk-sfd-
-fshf-ksfd-
---fshf-ksfd--
5*3+4*4=31; f\'\'(x)+g\'\'(x)=3*x*3+2*x-9\n
5\*3+4\*4=31; f\'\'(x)+g\'\'(x)=3\*x\*3+2\*x-9\n
*5\*3+4\*4=31; f\'\'(x)+g\'\'(x)=3\*x\*3+2\*x-9*\n
*5\*3+4\*4=31; f\'\'(x)+g\'\'(x)=3\*x\*3+2\*x-9\*\n
\*5\*3+4\*4=31; f\'\'(x)+g\'\'(x)=3\*x\*3+2\*x-9*\n
5\\*3+4\\*4=31; f\'\'(x)+g\'\'(x)=3\\*x\\*3+2\\*x-9\n
*ABC**EFG*
53+44=31; f''(x)+g''(x)=3x3+2*x-9
5*3+4*4=31; f''(x)+g''(x)=3*x*3+2*x-9
5*3+4*4=31; f''(x)+g''(x)=3*x*3+2*x-9
*5*3+4*4=31; f''(x)+g''(x)=3*x*3+2*x-9*
*5*3+4*4=31; f''(x)+g''(x)=3*x*3+2*x-9*
5\3+4\4=31; f''(x)+g''(x)=3\x\3+2\*x-9
ABCEFG
\`f''(x)+g''(x)=3*x*x+2*x-7+#(A\\B\`)`\n
`f''(x)+g''(x)=3*x*x+2*x-7+#(A\\B\`)\`\n
\``f''(x)+g''(x)=3*x*x+2*x-7+#(A\\B\`)`\n
`\`f''(x)+g''(x)=3*x*x+2*x-7+#(A\\B\`)`\n
\\`\`f''(x)+g''(x)=3*x*x+2*x-7+#(A\\B\`)`\n
`f''(x)+g''(x)``=3*x*x+2*x-7+#(A\\B\`)`
`f(x)+g(x)=3xx+2*x-7+#(A\B`)`
`f(x)+g(x)=3xx+2*x-7+#(A\B`)`
`f''(x)+g''(x)=3*x*x+2*x-7+#(A\B`)
`f''(x)+g''(x)=3*x*x+2*x-7+#(A\B`)
\`f''(x)+g''(x)=3*x*x+2*x-7+#(A\B`)
f''(x)+g''(x)=3*x*x+2*x-7+#(A\B`)
[A*Star](aa) and [A*Star](aa)\n
[A*Star\]\(aa\) and \[A*Star](aa)\n
[[A*Star\]\(aa\) and \[A*Star]](SandBox)\n
\[A*Star\]\(aa\) and \[A*Star](aa)\n
[A''Star](aa) and [A''Star](aa)\n
[A''Star\]\(aa\) and \[A''Star](aa)\n
[[A''Star\]\(aa\) and \[A''Star]](SandBox)\n
\[A''Star\]\(aa\) and \[A''Star](aa)\n
[A'''Star](aa) and [A'''Star](aa)\n
[A'''Star\]\(aa\) and \[A'''Star](aa)\n
[[A'''Star\]\(aa\) and \[A'''Star]](SandBox)\n
\[A'''Star\]\(aa\) and \[A'''Star](aa)\n
[A__Star](aa) and [A__Star](aa)\n
[A__Star\]\(aa\) and \[A__Star](aa)\n
[[A__Star\]\(aa\) and \[A__Star]](SandBox)\n
\[A__Star\]\(aa\) and \[A__Star](aa)\n
[A--Star](aa) and [A--Star](aa)\n
[A--Star\]\(aa\) and \[A--Star](aa)\n
[[A--Star\]\(aa\) and \[A--Star]](SandBox)\n
\[A--Star\]\(aa\) and \[A--Star](aa)
A*Star and A*Star
AStar](aa) and [AStar
AStar](aa) and [AStar
[AStar](aa) and [AStar](aa)
A''Star and A''Star
AStar](aa) and [AStar
AStar](aa) and [AStar
[AStar](aa) and [AStar](aa)
A'''Star and A'''Star
AStar](aa) and [AStar
AStar](aa) and [AStar
[AStar](aa) and [AStar](aa)
A__Star and A__Star
AStar](aa) and [AStar
AStar](aa) and [AStar
[AStar](aa) and [AStar](aa)
A--Star and A--Star
AStar](aa) and [AStar
AStar](aa) and [AStar
[AStar](aa) and [AStar](aa)
<a href="http://www.hooklee.com/index.asp?t=Test">Test</a>\n
<a href="http://www.hooklee.com/|indexasp?t=Test|">Test</a>\n
\|http://www.hooklee.com/\\|index/\\0default.asp?t=Test|\|\n
\|http://www.hooklee.com/\\\0|index/\\0default.asp?t=Test|\|\n
\|| f''(x)+g''(x) ||\n
\|| f''(x)+g''(x) \||\n
|| f''(x)+g''(x) |\n
\|| f''(x)+g''(x) |\n
\||| f''(x)+g''(x) |\n
\||| f''(x)+g''(x) ||\n
|:| \|:| |\:|\n
|\:\| \|\:\| \|\:|
Test
Test
|http://www.hooklee.com/|index/\0default.asp?t=Test||
|http://www.hooklee.com/\index/\0default.asp?t=Test|
| f''(x)+g''(x) |
| f''(x)+g''(x) |
|| f(x)+g(x) |
| f''(x)+g''(x)
||| f(x)+g(x) |
||| f(x)+g(x) ||
emotion icon |emotion icon :|
|:| |:| |:|
!/images/Icons/PDF.png!\n
\!/images/Icons/PDF.png!\n
\\!/images/Icons/PDF.png!\n
\!!/images/Icons/PDF.png!\n
\!!/images/Icons/PDF.png\!\n
!/images/Yahoo\!/PDF.png!\n
!/images/Yahoo\!/PDF.png\!\n
\!/images/Icons/PDF.png\!\n
!/images/Icons/PDF.png!!/images/Icons/TeX.png!)

!/images/Icons/PDF.png!
\
!
!!/images/Icons/PDF.png!

!/images/Yahoo!/PDF.png!
!/images/Icons/PDF.png!
[Test](http://www.a--b--c.com)\n
[Test](|http://www.a--b--c.com|)\n
[Test](http://www.a!b!c.com)\n
[Test](|http://www.a!b!c.com|\n
[Test](http://www.a\!b!c.com)
Test
Test
c.com" title="" target="_blank" class="offsite" rel="nofollow">Test
Test
Test
\!![XYZ](/images/Icons/PDF.png "PDF")\n
\![XYZ](/images/Icons/PDF.png "PDF")\n
\\![XYZ](/images/Icons/PDF.png "PDF")\n
\!\[XYZ\]\(/images/Icons/PDF.png "PDF"\)\n
![PDF](/images/Icons/PDF.png "PDF")![TeX](/images/Icons/TeX.png "TeX")
!XYZ
!XYZ
\XYZ
![XYZ](/images/Icons/PDF.png "PDF")
PDFTeX
[[WikiWord2]] [[Wikipedia:ABC]] [[XWikipedia:ABC1]]
WikiWord2? ABC XWikipedia:ABC1?
\[a(b-c)+#(A\B)+x\](e+f*h)\n
中国[\[\\\ *!+-=\ \]\](http://www.a.com "a")\n
中国[\[\\\ *!+-=\ \]](http://www.a.com "a")\n
中国\\\[\[\\\ *!+-=\ \]](http://www.a.com "a")\n
中国\\[\[\\\ *!+-=\ \]](http://www.a.com "a")\n
[中国](http://www.china.gov.cn)[山东](http://www.shandong.gov.cn)
[a(b-c)+#(A\B)+x](e+f*h)
中国[[\ *!+-= ]](http://www.a.com "a")
中国[\ *!+-= ]
中国\[[\ *!+-= ]](http://www.a.com "a")
中国\[\ *!+-= ]
中国山东
[The rank of the matrix *A*](http://www.a.com/a.pdf "article")\n
[The rank of the matrix **A**](http://www.a.com/a.pdf "article")\n
[The rank of the matrix ***A***](http://www.a.com/a.pdf "article")
The rank of the matrix A
The rank of the matrix A
The rank of the matrix A
a+b=e+f\n
=x^2= \n\n

a+b=e+f\n
=x^2=
a+b=e+f
=x^2=

a+b=e+f

x^2

Only one revision exists, which was created (or modified) by hooklee at Friday, November 8, 2013 4:56:19 PM.
This page was locked and can only be edited by administrators.

HomeIndexRecent ChangesPreference

Google

Google PageRank Checker
Valid XHTML 1.0 Transitional
Locations of visitors to this page
ip-location map zoom
Germany

China

GMT (London)