help(view) [version: 24] |
View | Edit | History | Last Change |
Contents
Help
Wiki Formating
| Description | You type | You get |
|---|---|---|
| Applies anywhere | ||
| Italic text | ''italic'' | italic |
| Bold text | '''bold''' | bold |
| Bold & italic text | '''''bold & italic''''' | bold & italic |
| internal link | [/rules/] [/rules/ Rules section] |
/rules/ Rules section |
| external link | [http://www.google.com] [http://www.google.com Google link] |
http://www.google.com Google link |
| Applies only on a separate line | ||
| Headings with various levels | = Level 1 = == Level 2 == === Level 3 === ==== Level 4 ==== ===== Level 5 ===== |
Level 1Level 2Level 3Level 4Level 5 |
| Bullet list | * one * two ** two point one ** two point two * three |
|
| Numbered list | # one # two ## two point one ## two point two # three |
|
Note: the layout of that help section is based on the cheatsheet at wikipedia.org.
Wiki Macros
Macros are a useful and easy way to display some dynamic data or multimedia. The syntax is always
or
Note that macro names are case-sensitive.
Font
You can use this macro anywhere.
Syntax: Font: size | color | text
You can use Font to colour and resize parts of your text without having to go into HTML processors. Specify color and/or size and don't specify anything or use a new Font macro call to end an existing one.
If a text argument is given, then only the text given is coloured and you don't have to end the colouring with another Font macro.
Examples:
Another [[Font: 5em | #0b0]] simple [[Font]] test!
Yet [[Font: 12px | #00f]] another [[Font: 16px | #08f]] simple [[Font]] test!
A simple test.
Another simple test.
Yet another simple test.
Image
You must use this macro on a separate line.
Syntax: Image: url | left/right | 100px/80% | comment
Image allows you to add images to the wiki page, you can either use an absolute or relative url:
[[Image: /graphics/dracis_logo_new_at.png]]
or reference images uploaded to the wiki or myprofile. If there were a wiki image called test_image and a profile image with the hash 969C191E, for instance, you would use:
[[Image: myprofile:969C191E]]
Additionally, you can use arguments like left and right to position your image, or digits and unit to size it, e.g. 200px, 50%.
Last but not least, you can add a comment, if you want. It'll be put under the image and can contain wiki formating.
Note: if no comment is given, then there will be no subscription for URL images and wiki images, but it will use the "title - comment" from images in your own gallery.
Profile
You can use this macro anywhere.
Syntax: Profile: age/avatar/gender/money/name
Profile allows you to reference data from your profile, consider, for instance, this snippet and what it produces:
I have [[Profile: money]] in my Dracis account. My avatar is [[Profile: avatar]].
My profile name is Oliver. I am male. I am 31 years and 200 days old. I have 167,639 Ð in my Dracis account. My avatar is
.
NumberOfGames
You can use this macro anywhere.
Syntax: NumberOfGames: all/tl/wh/sp/...
NumberOfGames allows you to display the number of games you've played on Dracis, either on all servers (the default), or specifically for one game code.
I have played a total of 2,794 games. Including 164 Spades games.
YouTube
You must use this macro on a separate line.
Syntax: YouTube: code | left/center/right
You can add a youtube video you like (or perhaps even made) on wiki pages, including your profile page. You simply need the youtube code from the URL, for instance: to add the url http://youtube.com/watch?v=X6etg_fX1Pw, you only need the X6etg_fX1Pw part and do:
You can use the additional arguments left, center, right. Much like you would with Image.
TOC
You must use this macro on a separate line.
Syntax: TOC
TOC stands for table of contents and produces the little page outline you see in the top right of this page.
Wiki Processors
You must start and end processors on separate lines.
Another useful tool is processors, which can be used to display raw code, as I did with the examples up there, you start them with {{{ and end them with }}} on separate lines.
Example:
This is monospaced and spaces are preserved.
more spaces.
}}}
produces:
more spaces.
The default processor does just that, put everything between {{{ and }}} on screen as it is, that's useful to display source code for HTML, wiki, or even programming languages. You can also change the type of processor, as the next section explains.
HTML processor
If you specify #!html as first line after the {{{, then the processor allows you to include raw HTML code.
Example:
#!html
<span style="color:#f00">Red text with a raw HTML span.</span>
}}}
produces:
Red text with a raw HTML span.Note: You can use macros inside HTML processors.
You can NOT use <style> or <script> tags in the HTML processor. This is to prevent people from exploiting them and making their profiles potentially dangerous. However, you can include style sheets with the CSS processor.
CSS processor
If you specify #!css as first line after the {{{, then the processor allows you to include raw HTML code.
Example:
#!css
.wiki_content { background: #000; color: #fff; } }}}
Will make the entire wiki block black and set the text colour to white.
Note: You can NOT use macros in CSS processors.
[[TOC]]
= Help =
== Wiki Formating ==
{{{
#!html
<table cellspacing="2">
<tr>
<th width="25%">Description</th>
<th width="50%">You type</th>
<th width="25%">You get</th>
</tr>
<tr>
<td class="fullspan" colspan="3">Applies anywhere</td>
</tr>
<tr>
<td>Italic text</td>
<td>''italic''</td>
<td><i>italic</i></td>
</tr>
<tr><td class="separator" colspan="3"></td></tr>
<tr>
<td>Bold text</td>
<td>'''bold'''</td>
<td><b>bold</b></td>
</tr>
<tr><td class="separator" colspan="3"></td></tr>
<tr>
<td>Bold & italic text</td>
<td>'''''bold & italic'''''</td>
<td><i><b>bold & italic</b></i></td>
</tr>
<tr><td class="separator" colspan="3"></td></tr>
<tr>
<td>internal link</td>
<td>[/rules/]<br/>[/rules/ Rules section]</td>
<td><a href="/rules/">/rules/</a><br/><a href="/rules/">Rules section</a></td>
</tr>
<tr><td class="separator" colspan="3"></td></tr>
<tr>
<td>external link</td>
<td>[http://www.google.com]<br/>[http://www.google.com Google link]</td>
<td><a href="http://www.google.com">http://www.google.com</a><br/><a href="http://www.google.com">Google link</a></td>
</tr>
<tr>
<td class="fullspan" colspan="3">Applies only on a separate line</td>
</tr>
<tr>
<td>Headings with various levels</td>
<td>= Level 1 =<br/>== Level 2 ==<br/>=== Level 3 ===<br/>==== Level 4 ====<br/>===== Level 5 =====</td>
<td><h1>Level 1</h1>
<h2>Level 2</h2>
<h3>Level 3</h3>
<h4>Level 4</h4>
<h5>Level 5</h5></td>
</tr>
<tr><td class="separator" colspan="3"></td></tr>
<tr>
<td>Bullet list</td>
<td>* one<br/>
* two<br/>
** two point one<br/>
** two point two<br/>
* three</td>
<td>
<ul><li>one </li>
<li>two <ul>
<li>two point one </li>
<li>two point two </li></ul>
</li>
<li>three </li></ul>
</td>
</tr>
<tr><td class="separator" colspan="3"></td></tr>
<tr>
<td>Numbered list</td>
<td># one<br/>
# two<br/>
## two point one<br/>
## two point two<br/>
# three</td>
<td>
<ol>
<li>one </li>
<li>two <ol>
<li>two point one </li>
<li>two point two </li></ol>
</li>
<li>three </li></ol>
</td>
</tr>
<tr><td class="separator" colspan="3"></td></tr>
</table>
}}}
'''Note''': the layout of that help section is based on the
[http://en.wikipedia.org/wiki/Wikipedia:Cheatsheet cheatsheet] at
[http://en.wikipedia.org/ wikipedia.org].
== Wiki Macros ==
Macros are a useful and easy way to display some dynamic data or multimedia. The syntax is always
{{{
[[MacroName]]
}}}
or
{{{
[[MacroName: argument | argument | ...)]]
}}}
Note that macro names are __case-sensitive__.
=== Font ===
''You can use this macro anywhere.''
'''Syntax''': Font: size | color | text
You can use ''Font'' to colour and resize parts of your text without having to go into HTML processors. Specify color and/or size and don't specify anything or use a new Font macro call to end an existing one.
If a text argument is given, then only the text given is coloured and you don't have to end the colouring with another ''Font'' macro.
Examples:
{{{
A [[Font: red | 20px | simple]] test!
Another [[Font: 5em | #0b0]] simple [[Font]] test!
Yet [[Font: 12px | #00f]] another [[Font: 16px | #08f]] simple [[Font]] test!
}}}
A [[Font: red | 20px]] simple [[Font]] test.
Another [[Font: 5em | #0b0]] simple [[Font]] test.
Yet [[Font: 12px | #00f]] another [[Font: 16px | #08f]] simple [[Font]] test.
=== Image ===
''You must use this macro on a separate line.''
'''Syntax''': Image: url | left/right | 100px/80% | comment
''Image'' allows you to add images to the wiki page, you can either use an absolute or relative url:
[[Image: /graphics/dracis_logo_new_at.png]]
{{{
[[Image: http://www.dracis.com/graphics/dracis_logo_new_at.png]]
[[Image: /graphics/dracis_logo_new_at.png]]
}}}
or reference images uploaded to the __wiki__ or __myprofile__. If there were a
wiki image called '''test_image''' and a profile image with the hash '''969C191E''', for instance, you
would use:
{{{
[[Image: wiki:test_image]]
[[Image: myprofile:969C191E]]
}}}
Additionally, you can use arguments like '''left''' and '''right''' to position your image,
or digits and unit to size it, e.g. '''200px''', '''50%'''.
{{{
[[Image: myprofile:969C191E | left | 200px]]
}}}
Last but not least, you can add a comment, if you want. It'll be put under the image and can contain
wiki formating.
[[Image: myprofile:969C191E | right | 75px | This is '''me'''!]]
{{{
[[Image: myprofile:969C191E | right | 75px | This is '''me'''!]]
}}}
'''Note''': if no comment is given, then there will be no subscription for URL images and wiki
images, but it will use the "'''title''' - comment" from images in your own gallery.
=== Profile ===
''You can use this macro anywhere.''
'''Syntax''': Profile: age/avatar/gender/money/name
''Profile'' allows you to reference data from your profile, consider, for instance, this snippet and what it produces:
{{{
My profile name is [[Profile: name]]. I am [[Profile: gender]]. I am [[Profile: age]] old.
I have [[Profile: money]] in my Dracis account. My avatar is [[Profile: avatar]].
}}}
My profile name is [[Profile: name]]. I am [[Profile: gender]]. I am [[Profile: age]] old. I have [[Profile: money]] in my Dracis account. My avatar is [[Profile: avatar]].
=== NumberOfGames ===
''You can use this macro anywhere.''
'''Syntax''': NumberOfGames: all/tl/wh/sp/...
''NumberOfGames'' allows you to display the number of games you've played on Dracis, either on '''all''' servers (the default), or
specifically for one game code.
{{{
I have played a total of [[NumberOfGames: all]] games. Including [[NumberOfGames: sp]] Spades games.
}}}
I have played a total of [[NumberOfGames: all]] games. Including [[NumberOfGames: sp]] Spades games.
=== YouTube ===
''You must use this macro on a separate line.''
'''Syntax''': YouTube: code | left/center/right
You can add a youtube video you like (or perhaps even made) on wiki pages, including your profile page. You simply need the youtube code from the URL, for instance: to add the url [http://youtube.com/watch?v=X6etg_fX1Pw], you only need the '''X6etg_fX1Pw''' part and do:
{{{
[[YouTube: X6etg_fX1Pw | right]]
}}}
[[YouTube: X6etg_fX1Pw | right]]
You can use the additional arguments '''left''', '''center''', '''right'''. Much like you would with '''Image'''.
=== TOC ===
''You must use this macro on a separate line.''
'''Syntax''': TOC
''TOC'' stands for '''table of contents''' and produces the little page outline you see in the top right of this page.
{{{
[[TOC]]
}}}
== Wiki Processors ==
''You must start and end processors on separate lines.''
Another useful tool is ''processors'', which can be used to display raw code, as I did with the examples up there, you start them with {{{ and
end them with }}} on separate lines.
Example:
{{{
#!html
<div class="processor">
{{{<br/>
This is monospaced and spaces are preserved.<br/>
more spaces.<br/>
}}}<br/>
</div>
}}}
produces:
{{{
This is monospaced and spaces are preserved.
more spaces.
}}}
The default processor does just that, put everything between {{{ and }}} on screen as it is, that's useful to display source code for HTML, wiki, or even programming languages. You can also change the type of processor, as the next section explains.
=== HTML processor ===
If you specify '''#!html''' as __first__ line after the {{{, then the processor allows you to include raw HTML code.
Example:
{{{
#!html
<div class="processor">
{{{<br/>
#!html<br/>
<span style="color:#f00">Red text with a raw HTML span.</span><br/>
}}}<br/>
</div>
}}}
produces:
{{{
#!html
<span style="color:#f00">Red text with a raw HTML span.</span>
}}}
'''Note''': You can use ''macros'' inside HTML processors.
''You can '''NOT''' use <style> or <script> tags in the HTML processor. This is to prevent people from exploiting them and making their profiles potentially dangerous.
However, you can include style sheets with the CSS processor.
=== CSS processor ===
If you specify '''#!css''' as __first__ line after the {{{, then the processor allows you to include raw HTML code.
Example:
{{{
#!html
<div class="processor">
{{{<br/>
#!css<br/>
.wiki_content {
background: #000;
color: #fff;
}
}}}<br/>
</div>
}}}
Will make the entire wiki block black and set the text colour to white.
'''Note''': You can NOT use ''macros'' in CSS processors.