Difference between revisions of "Template:LSL Hex/Parse"

From Second Life Wiki
Jump to: navigation, search
Line 1: Line 1:
<includeonly>{{#vardefine:len|{{#expr:{{#len:{{{1|}}}}}-{{#ifeq:{{lc:{{#sub:{{{1|}}}00|0|2}}}}|0x|2|0}}}}}}{{#expr: {{#ifexpr:{{#var:len}} > 0|         {{#pos:0123456789abcdef|{{#sub:{{{1|}}}|-1|1}}}}
+
<includeonly>{{#vardefine:len|{{#expr:{{#len:{{{1|}}}}}-{{#ifeq:{{lc:{{#sub:{{{1|}}}00|0|2}}}}|0x|2|0}}}}}}
{{#ifexpr:{{#var:len}} > 1| + 16 * ( {{#pos:0123456789abcdef|{{#sub:{{{1|}}}|-2|1}}}}
+
{{#expr:{{#ifexpr:{{#var:len}} > 0|       {{#pos:0123456789abcdef|{{#sub:{{{1|}}}|-1|1}}}}
{{#ifexpr:{{#var:len}} > 2| + 16 * ( {{#pos:0123456789abcdef|{{#sub:{{{1|}}}|-3|1}}}}
+
{{#ifexpr:{{#var:len}} > 1| + 16 * {{#expr:{{#pos:0123456789abcdef|{{#sub:{{{1|}}}|-2|1}}}}
{{#ifexpr:{{#var:len}} > 3| + 16 * ( {{#pos:0123456789abcdef|{{#sub:{{{1|}}}|-4|1}}}}
+
{{#ifexpr:{{#var:len}} > 2| + 16 * {{#expr:{{#pos:0123456789abcdef|{{#sub:{{{1|}}}|-3|1}}}}
{{#ifexpr:{{#var:len}} > 4| + 16 * ( {{#pos:0123456789abcdef|{{#sub:{{{1|}}}|-5|1}}}}
+
{{#ifexpr:{{#var:len}} > 3| + 16 * {{#expr:{{#pos:0123456789abcdef|{{#sub:{{{1|}}}|-4|1}}}}
{{#ifexpr:{{#var:len}} > 5| + 16 * ( {{#pos:0123456789abcdef|{{#sub:{{{1|}}}|-6|1}}}}
+
{{#ifexpr:{{#var:len}} > 4| + 16 * {{#expr:{{#pos:0123456789abcdef|{{#sub:{{{1|}}}|-5|1}}}}
{{#ifexpr:{{#var:len}} > 6| + 16 * ( {{#pos:0123456789abcdef|{{#sub:{{{1|}}}|-7|1}}}}
+
{{#ifexpr:{{#var:len}} > 5| + 16 * {{#expr:{{#pos:0123456789abcdef|{{#sub:{{{1|}}}|-6|1}}}}
{{#ifexpr:{{#var:len}} > 7| + 16 *   {{#pos:0123456789abcdef|{{#sub:{{{1|}}}|-8|1}}}}
+
{{#ifexpr:{{#var:len}} > 6| + 16 * {{#expr:{{#pos:0123456789abcdef|{{#sub:{{{1|}}}|-7|1}}}}
}} ) }} ) }} ) }} ) }} ) }} ) }} }} }}</includeonly><noinclude>
+
{{#ifexpr:{{#var:len}} > 7| + 16 * {{#pos:0123456789abcdef|{{#sub:{{{1|}}}|-8|1}}}}
 +
}} }} }} }} }} }} }} }} }} }} }} }} }} | 0 }} }}</includeonly><noinclude>
 
{{{{FULLPAGENAME}}|10|}}
 
{{{{FULLPAGENAME}}|10|}}
  
 
{{{{FULLPAGENAME}}|0x10|}}
 
{{{{FULLPAGENAME}}|0x10|}}
 
</noinclude>
 
</noinclude>

Revision as of 01:12, 12 February 2007

16

16