Difference between revisions of "Help:Editing"
From SphereWiki
MrSugarCube (talk | contribs) (Created page with 'For standard wiki editing help, try [http://www.mediawiki.org/wiki/Help:Editing_pages MediaWiki's Editing Pages] help guide. In addition to the standard wiki formatting techniqu...') |
(No difference)
|
Revision as of 22:21, 1 June 2009
For standard wiki editing help, try MediaWiki's Editing Pages help guide.
In addition to the standard wiki formatting techniques, SphereWiki also uses some custom tags which are detailed below:
spherescript
The <spherescript> tag can be used to easily embed SphereScript code into a wiki page without having to cover it with wiki/html formatting tabs. There are a few option attributes which can be set to customize the output of the tag. The full syntax of the tag along with the default settings for each attribute, is:
<spherescript color="darkblue" tabs="4" mono="1"> script </spherescript>
Attribute | Meaning |
color | What colour font to use. |
tabs | How many spaces to convert tabs into. |
mono | Whether or not to use a fixed-width font |
For example:
<spherescript> [FUNCTION f_testscript] LOCAL.TEST = <R100> IF (<LOCAL.TEST> > 90) SRC.SYSMESSAGE You win this script! ELSE SRC.SYSMESSAGE Unlucky, you lost! ENDIF RETURN </spherescript>
Becomes:
[FUNCTION f_testscript] LOCAL.TEST = <R100> IF (<LOCAL.TEST> > 90) SRC.SYSMESSAGE You win this script! ELSE SRC.SYSMESSAGE Unlucky, you lost! ENDIF RETURN