JDOC:Local wiki extensions
m (New section: References and Footnotes) |
m (→References and Footnotes) |
||
| Line 38: | Line 38: | ||
In your article or tutorial you may want to add external links but they may clutter the text and reduce readability. In order to add a reference<ref>don't take a reference literally: it may well be any URL other than Wikipedia or Webster</ref> enclose the text in a ref element: <nowiki><ref>your reference entry</ref></nowiki>. At the end of the page add <nowiki><references /></nowiki> to display a list of all ref entries. | In your article or tutorial you may want to add external links but they may clutter the text and reduce readability. In order to add a reference<ref>don't take a reference literally: it may well be any URL other than Wikipedia or Webster</ref> enclose the text in a ref element: <nowiki><ref>your reference entry</ref></nowiki>. At the end of the page add <nowiki><references /></nowiki> to display a list of all ref entries. | ||
| + | |||
| + | <references /> | ||
Revision as of 19:23, 18 January 2008
Extensions are additions to the MediaWiki code that perform special functions.
Syntax Highlighting
The Geshi syntax-highlighter extension has been installed on this wiki. For PHP code use <source lang="php">Your PHP code here</source>. Further information can be found here.
For example, inserting the following in your wiki page:
<source lang="php"> <?php echo "Hello World\n"; ?> </source>
will result in:
<?php echo "Hello World\n"; ?>
Additional Parser Functions
The ParserFunctions extension has been added. This extension provides the following additional parser functions:-
- #expr: computes simple mathematical expressions;
- #if: if-then-else construct;
- #ifeq: compares two strings or numbers;
- #ifexists: determines if a particular page exists;
- #ifexpr: evaluates and expression and tests the result;
- #switch: switch/case statement;
- #time: time and date formatting function;
- #rel2abs: converts a relative to an absolute path;
- #titleparts: extracts parts of a page title.
Full documentation for these functions can be found here.
References and Footnotes
In your article or tutorial you may want to add external links but they may clutter the text and reduce readability. In order to add a reference[1] enclose the text in a ref element: <ref>your reference entry</ref>. At the end of the page add <references /> to display a list of all ref entries.
- ↑ don't take a reference literally: it may well be any URL other than Wikipedia or Webster