Help:Contents

From WikiManual
Revision as of 11:35, 13 October 2005 by Griz (talk | contribs) (Wiki Code)
Jump to: navigation, search

Wiki Code

This took me a bit to figure out.

all code simply starts with a space at the start of the line


Here's another way:
Use <pre> and </pre> to bracket your code.
This precludes one having to enter a space at the beginning of every line.
An example:

A handy method for eventually unfixing the stuck bot is:

'will normally unfix bot by restoring .fixpos to zero
'typically I place this in most bots to prevent possible attack and accidental fixing
cond
start
.fixpos *.fixed mult dec
stop

This will also disable any HTML code/tags within the 'box'
allowing one to list them as instructions without activating the tag.
example:

 <b><i><u> have no effect within the <nowiki><pre>
tags.</nowiki> </pre>


Indenting

One may indent using one or more colons at the beginning of a line ...
So this:

:this is one colon
::two
:::three ... etc.

results in:

this is one colon
two
three ... etc.

this also precludes having to place <br> at the end of a line to break it.


Placing Comments in the Edit Window

 
 using <!-- and --> one can place comments in the edit which will not be visible on the page.
 like so: <!-- place any comments/code examples/reminders here -->