User:Astronouth7303/extensions
These are some extensions I've written, most of which are parser hooks.
General extensions
editHide
editAllows for the <hide> tag, which just outputs .
Nowrap
editAllows for a block of text not be wrapped, by using <p style="white-space: nowrap;">.
PHP
editSimilar to highlight, but also links PHP functions and uses CSS classes instead of inline colors. Partially my code, and partially code from http://www.pastebin.com/.
reparse Action
editCauses the page to be reparsed, useful to use instead of null edits.
BrickWiki extensions
editThese are extensions for BrickWiki http://brickwiki . zapto . org/index.php/Main_Page. The are mostly related to LDraw. They are currently bundled together as a single extension. More complete documentation is at BrickWiki:Help:LDraw http://brickwiki . zapto . org/index.php/Help:LDraw
Note that there is a seperate stylesheet involved, so the output may not be very pretty.
LDraw highlighter
editParses and formats LDraw code into XHTML. Uses CSS classes.
Sample Input:
<ldraw>0 Arch 1 x 3 1 36 20 24 0 6 0 0 0 -20 0 0 0 6 box5.dat 4 36 30 24 10 26 24 6 14 24 6 10 24 10 2 12 10 24 10 30 24 10 3 36 30 24 10 0 4 0 10 24 10 5 2 10 24 -10 14 24 -6 26 24 -6 30 24 -10 0</ldraw>
Sample Output:
- 0Arch 1 x 3
- 13620240 6000-200006box5.dat
- 436302410 26246 14246 102410
- 212102410 302410
- 336302410 040 102410
- 521024-10 1424-6 2624-6 3024-10
- 0
Swaths
editThis will output a swath showing the name and color of a given LDraw color.
Sample input:
<swath>5</swath>
Sample output:
FURC extensions
editThese are extensions I've written for FURCwiki.
RandomQuote
editinserts the Javascript code for a random quote from ChiefDelphi, which is
<script type="text/javascript" src="http://www.chiefdelphi.com/forums/xml/spotlight_js.php"></script>
plus some styling.
highlight
editHighlights some code using PHP's highlight_string()
.