Mostly Harmless
Difference between revisions of "Unreal Wiki:Sandbox"
From Unreal Wiki, The Unreal Engine Documentation Site
m |
|||
Line 6: | Line 6: | ||
* This doesn't even apply #replace: [[{{#replace:a,b,c|,|]], [[}}]] | * This doesn't even apply #replace: [[{{#replace:a,b,c|,|]], [[}}]] | ||
* This works, but is very ugly: {{#replace:{{#replace:@@{{#replace:a,b,c|,|~~, @@}}~~ | ~ | ] }} | @ | [ }} | * This works, but is very ugly: {{#replace:{{#replace:@@{{#replace:a,b,c|,|~~, @@}}~~ | ~ | ] }} | @ | [ }} | ||
− | * Still ugly, but | + | * Still ugly, but definitely better: [[{{#replace:a,b,c|,|{{concat|]|], [|[}}}}]] |
[http://wiki.beyondunreal.com:8080/w/extensions/uscript.php.txt UScript highlighter] - powered by a slightly modified version of [[mediawikiwiki:Extension:SyntaxHighlight_GeSHi|Extension:SyntaxHighlight_GeSHi]]. A class for all source blocks has been added (highlighted-source), and the indent parameter has been added so you can specify how many spaces to expand tabs to. Larger test here: [[Project:Sandbox/UScript Test]] | [http://wiki.beyondunreal.com:8080/w/extensions/uscript.php.txt UScript highlighter] - powered by a slightly modified version of [[mediawikiwiki:Extension:SyntaxHighlight_GeSHi|Extension:SyntaxHighlight_GeSHi]]. A class for all source blocks has been added (highlighted-source), and the indent parameter has been added so you can specify how many spaces to expand tabs to. Larger test here: [[Project:Sandbox/UScript Test]] | ||
Line 43: | Line 43: | ||
+++sdfgsdfg | +++sdfgsdfg | ||
++sdgsdfgs | ++sdgsdfgs | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |
Revision as of 06:54, 6 March 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 definitely better: a, b, c
UScript highlighter - powered by a slightly modified version of Extension:SyntaxHighlight_GeSHi. A class for all source blocks has been added (highlighted-source), and the indent parameter has been added so you can specify how many spaces to expand tabs to. Larger test here: Project:Sandbox/UScript Test
-
class TestCommandlet extends Commandlet;
-
-
function int Main(string Args)
-
{
-
DynamicLoadObject(Args, class'Class');
-
-
return 0;
-
}
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:
erergtsdg
dfgsdfg
dfgsdfg
sdfgsdfgdfg
sdfgsdfgsdfg
sdfgdsfgsdfg
sdfgs dfgsdfgsdfg
dsfgdsfg
sdfgsdfg
sdgsdfgs
dfgsdfg
dfgsdfg
sdfgsdfgdfg
sdfgsdfgsdfg
sdfgdsfgsdfg
sdfgs dfgsdfgsdfg
dsfgdsfg
sdfgsdfg
sdgsdfgs