#pragma section-numbers off #acl AdminGroup:read,write,admin,revert Trusted:read Known:read All:read ##language:en
This page tries to use each supported markup element at least once.
'''Index''' [[TableOfContents(2)]]
Index
Contents
Headers
Header 2
Header 3
Header 4
Header 5
Font styles
Normal text, ''emphasized'', '''strong''', __underline__, ,,subscript,,, ^superscript^,
`typewriter` and {{{typewriter}}}.
Normal text, emphasized, strong, underline, subscript, superscript, typewriter and typewriter.
Syntax Highlighting
1 # python code 2 print code.colorize("abc", 1 + 1)
Smileys
| Markup | Display | Filename | Markup | Display | Filename | Markup | Display | Filename | ||
| (!) | idea.png | (./) | checkmark.png | /!\ | alert.png | |||||
| :( | sad.png | :) | smile.png | :)) | smile3.png | |||||
| :-( | sad.png | :-) | smile.png | :-)) | smile3.png | |||||
| :-? | tongue.png | :D | biggrin.png | :\ | ohwell.png | |||||
| :o | redface.png | ;) | smile4.png | ;-) | smile4.png | |||||
| <!> | attention.png | <:( | frown.png | >:> | devil.png | |||||
| B) | smile2.png | B-) | smile2.png | X-( | angry.png | |||||
| {*} | star_on.png | {1} | prio1.png | {2} | prio2.png | |||||
| {3} | prio3.png | {OK} | thumbs-up.png | {X} | icon-error.png | |||||
| {i} | icon-info.png | {o} | star_off.png | |) | tired.png | |||||
| |-) | tired.png |
Hyperlinks
Internal
* MoinMoin * MoinMoin/TextFormatting * MoinMoin/InstallDocs * ../InstallDocs * /SubPage * Self:InterWiki * [wiki:Self:Wiki%20Policy policy page] (aliased reference)
policy page (aliased reference)
[#anchorname Anchor Link]
(See the anchor macro below, which this link points to.)
External
* http://moin.sourceforge.net/ * [http://moin.sourceforge.net/] * [http://moin.sourceforge.net/ MoinMoin Sourceforge Homepage] * [^http://moin.sourceforge.net/ MoinMoin Sourceforge Homepage - in new window] * [http://moin.sourceforge.net/moinmoin.gif] * http://moin.sourceforge.net/moinmoin.gif * [http://moin.sourceforge.net/moinmoin.gif moinmoin.gif] * MeatBall:InterWiki * wiki:MeatBall/InterWiki * [wiki:MeatBall/InterWiki] * [wiki:MeatBall/InterWiki InterWiki page on MeatBall] * [file://servername/full/path/to/file/filename%20with%20spaces.txt Click here to read filename with spaces.txt] * jh@web.de
[^http://moin.sourceforge.net/ MoinMoin Sourceforge Homepage - in new window]
Escaping WikiNames
!WikiName
WikiName
Referencing a WikiName which contains special characters
Some wiki page names contain certain characters (including spaces) which require special treatment in order to link to them properly. The character in question must be replaced by an escape code. Because the name may then look strange (e.g. Wiki_20Policy), it is wise to alias it as shown above, e.g.:
[wiki:Self:Wiki_20Policy Wiki Policy] which looks like: Wiki Policy
Character |
Character definition |
Escape code |
|
space |
_20 |
- |
dash |
_2d |
/ |
backslash |
use '/' or _2f |
Escaping Special Characters
`''Some ["text"]''`
''Some ["text"]''
Breaks
To display verse or similar text that has line breaks within a paragraph, use the
macro, e.g.:
This sentence shows[[BR()]] a break in a line.
This sentence shows
a break in a line.
Blockquote
This is indented Even more
- This is indented
- Even more
Lists
Bulleted list
* item 1 * item 2, with gap * item 3 * item 3.1
- item 1
- item 2, with gap
- item 3
- item 3.1
Numbered list
1. item 1 1. item 2
- item 1
- item 2
Roman numeral lists
Lowercase
i. item 1 i. item 1a i. item 1b i. item 2 i. item 2a i. item 2b i. item 2c i. item 2d i. item 2e i. item 2f
- item 1
- item 1a
- item 1b
- item 2
- item 2a
- item 2b
- item 2c
- item 2d
- item 2e
- item 2f
Uppercase
I. item 1 I. item 1a I. item 1b I. item 2 I. item 2a I. item 2b I. item 2c I. item 2d I. item 2e I. item 2f
- item 1
- item 1a
- item 1b
- item 2
- item 2a
- item 2b
- item 2c
- item 2d
- item 2e
- item 2f
Lettered list
a. item 1 a. item 1a a. item 1b a. item 2 a. item 2a a. item 2b
- item 1
- item 1a
- item 1b
- item 2
- item 2a
- item 2b
Combined lists
1. item 1 i. item 1a 1. item 1b * item 2 * item 2a * item 2b I. item 3 i. item 3a i. item 3b
- item 1
- item 1a
- item 1b
- item 2
- item 2a
- item 2b
- item 3
- item 3a
- item 3b
Descriptions + Definitions
Term:: Description Label:: Definition
- Term
- Description
- Label
- Definition
Code display
line 1 indented 4 characters
Tables
General table layout and HTML like options
||||||<tablewidth="80%">'''Heading'''|| ||cell 1||cell2||cell 3|| ||<rowspan=2> spanning rows||||<bgcolor='#E0E0FF'> spanning 2 columns|| ||<rowbgcolor="#FFFFE0">cell2||cell 3||
Heading
cell 1
cell2
cell 3
spanning rows
spanning 2 columns
cell2
cell 3
Cell width
|| narrow ||<:99%> wide ||
narrow
wide
Spanning rows and columns
||<|2> 2 rows || row 1 || || row 2 || ||<-2> row 3 over 2 columns ||
2 rows
row 1
row 2
row 3 over 2 columns
Alignment
||<(> left ||<^|3> top ||<v|3> bottom || ||<:> centered || ||<)> right ||
left
top
bottom
centered
right
Colors
||<#FF8080> red ||<#80FF80> green ||<#8080FF> blue ||
red
green
blue
CSV Tables
| Col1 | Col3 | Col4 |
| 1 | 3 | 4 |
| a | c | d |
Col1 Col3 Col4 1 3 4 a c d
Variable substitution
The values of these variables are placed only when the page being edited is saved. They will not appear during page preview. Saved template and form definition pages do not expand variables, either, but anything else will, unless you escape it with six quotes between the first @ and the rest of it.
@PAGE@ (lists the name of the current page)
example: SyntaxReference
@DATE@ (lists current date in system format)
example: 2004-08-14
@TIME@ (lists current date and time in user's format)
example: 2004-08-14 01:13:32
@USERNAME@ (lists user's name, or her domain/IP)
example: MayLith
@USER@ (creates a signature: "-- loginname")
example: -- MayLith
@SIG@ (creates a dated signature: "-- loginname date time")
example: -- MayLith 2004-08-14 01:13:32
@MAILTO@ (creates a mailto, works if an email address has been given; I've crippled mine manually.)
example: MayLith
Rules
--- (not a rule) ---- ----- ------ ------- -------- --------- ---------- -------------------------------------------- (not thicker than 10)
--- (not a rule)
(not thicker than 10)
Macros
[[Anchor(anchorname)]] '''[[PageCount]]''' pages [[RandomPage]]
6421 pages IdeaArchive/Items/Usable Mushrooms
(Temp) chatter
MayLith: Re: referencing special wiki names: It seems that both % and _ work. I haven't yet found information anywhere regarding this, so I don't know whether there is any difference between them. Guidance would be appreciated.
NeilStevens: Well, there are technical reasons behind that, but I don't see the benefit of bringing it up. We *could* do a complicated song and dance about the formal standards of URLs, or just stick with telling people about the one method documented to work and move on.
MayLith: I'm not trying to nitpick or make things more complex than necessary. I happened over the fact purely by chance, since I haven't found info on wiki linking/aliasing anywhere that is more detailed (or at least more understandable) than what is on this page. I can whip up a decent basic website, but I don't know the formal standards. So, if you could please indicate the format that is standard and edit this page to reflect that, great.
Or, tell me and I'll do it. I admit to curiosity about the hows and whys, though; if you would privately point me towards appropriate URL(s), I would like to learn.
NeilStevens: Well, representing non-alphanumeric characters with percents is in the URL standard, I'm sure. Check the RFCs or the W3C webpage.
The underscore method would be the one implemented by the wiki, and the one that's probably more reliable to use.
MayLith: Why is there a difference in reliability? (Or is that one of those dissertation type answers?
) I reworded "Referencing a WikiName which contains special characters" subsection.
ToME Wiki