User:Astronouth7303/extensions

 
A proposal to move this page to MediaWiki.org was rejected.

These are some extensions I've written, most of which are parser hooks.

General extensions

edit

Hide

edit

Allows for the <hide> tag, which just outputs &nbsp;.

Nowrap

edit

Allows for a block of text not be wrapped, by using <p style="white-space: nowrap;">.

Similar 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

edit

Causes the page to be reparsed, useful to use instead of null edits.

BrickWiki extensions

edit

These 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

edit

Parses 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:

  1. 0Arch 1 x 3
  2. 13620240 6000-200006box5.dat
  3. 436302410 26246 14246 102410
  4. 212102410 302410
  5. 336302410 040 102410
  6. 521024-10 1424-6 2624-6 3024-10
  7. 0

Swaths

edit

This will output a swath showing the name and color of a given LDraw color.

Sample input:

<swath>5</swath>

Sample output:

#5: Dark Pink
 


FURC extensions

edit

These are extensions I've written for FURCwiki.

RandomQuote

edit

inserts 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

edit

Highlights some code using PHP's highlight_string().