Worst-case scenario: the UEd Goblin wipes the map and burns down your house.

Difference between revisions of "Unreal Wiki:Sandbox"

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
Line 8: Line 8:
 
* Still ugly, but a bit better: {{concat|[|[{{#replace:a,b,c|,|{{concat|]|], [|[}}}}]|]}}
 
* Still ugly, but a bit better: {{concat|[|[{{#replace:a,b,c|,|{{concat|]|], [|[}}}}]|]}}
  
[http://wiki.beyondunreal.com:8080/w/extensions/uscript.php.gz Current UScript highlighter]
+
[http://wiki.beyondunreal.com:8080/w/extensions/uscript.php.gz Current UScript highlighter] - powered by [[mediawikiwiki:Extension:SyntaxHighlight_GeSHi|Extension:SyntaxHighlight_GeSHi]]
 
<uscript line>
 
<uscript line>
 
class TestCommandlet extends Commandlet;
 
class TestCommandlet extends Commandlet;
Line 23: Line 23:
 
<source lang=perl>
 
<source lang=perl>
 
my $line = <>;
 
my $line = <>;
chomd $line;
+
chomp $line;
 
if ($line =~ /^y/i) {
 
if ($line =~ /^y/i) {
 
     print "You answered yes!\n";
 
     print "You answered yes!\n";
Line 31: Line 31:
 
}
 
}
 
</source>
 
</source>
 +
 +
Custom code for tree parser, please abuse:
 +
+dfgsdfg
 +
++dfgsdfg
 +
+sdfgsdfgdfg
 +
++sdfgsdfgsdfg
 +
++sdfgdsfgsdfg
 +
+++sdfgs  dfgsdfgsdfg
 +
+dsfgdsfg
 +
++sdfgsdfg
 +
+sdgsdfgs

Revision as of 02:14, 18 February 2008

Do not edit the area above the separator line, please.


  • This correctly replaces, but for obvious reasons doesn't produce links correctly: a, [b]], [c]]
  • This doesn't even apply #replace: [[{{#replace:a,b,c|,|]], [[}}]]
  • This works, but is very ugly: a, b, c
  • Still ugly, but a bit better: a, b, c

Current UScript highlighter - powered by Extension:SyntaxHighlight_GeSHi

  1. class TestCommandlet extends Commandlet;
  2.  
  3. function int Main(string Args)
  4. {
  5.   DynamicLoadObject(Args, class'Class');
  6.  
  7.   return 0;
  8. }

Other languages available as well:

my $line = <>;
chomp $line;
if ($line =~ /^y/i) {
    print "You answered yes!\n";
}
else {
    print "You answered no!\n";
}

Custom code for tree parser, please abuse:

dfgsdfg
\- dfgsdfg
sdfgsdfgdfg
+- sdfgsdfgsdfg
\- sdfgdsfgsdfg
   \- sdfgs dfgsdfgsdfg
dsfgdsfg
\- sdfgsdfg
sdgsdfgs