Difference between revisions of "Template:LSL Const"

From Second Life Wiki
Jump to navigation Jump to search
m (just my preference...)
Line 34: Line 34:
{{#vardefine:hvalue|{{{hex|}}}}}
{{#vardefine:hvalue|{{{hex|}}}}}
{{#vardefine:cvalue|{{#if:{{{ihex|}}}|{{{ihex|}}}|{{{3|}}}}}}}
{{#vardefine:cvalue|{{#if:{{{ihex|}}}|{{{ihex|}}}|{{{3|}}}}}}}
{{#vardefine:value|{{#if:{{#var:hvalue}}{{{ihex|}}}|{{{{#if:{{#var:hvalue}}{{{ihex|}}}|LSL Hex|!}}|{{#var:hvalue}}|{{#var:cvalue}}}}|{{#var:cvalue}}}}}}
{{#vardefine:value|{{#if:{{#var:hvalue}}{{{ihex|}}}|{{LSL Hex|{{#var:hvalue}}|{{#var:cvalue}}}}|{{#var:cvalue}}}}}}
{{#vardefine:comment|{{{c|}}}}}
{{#vardefine:comment|{{{c|}}}}}
{{#vardefine:type|{{{2|}}}}}
{{#vardefine:type|{{{2|}}}}}
{{#vardefine:cname|{{#if:{{{4|}}}|{{{4|{{{1}}}}}}|{{{1}}}}}}}
{{#vardefine:cname|{{#if:{{{4|}}}|{{{4|{{{1}}}}}}|{{{1}}}}}}}
}}{{{{#if:{{{nolink|}}}|HoverText|HoverLink}}|1={{{1}}}|2={{{2|}}} {{#var:cname}}{{#if:{{#var:hvalue}}|&#32;&#61; {{#var:hvalue}}}}{{#if:{{#var:cvalue}}|&#32;&#61; {{#var:cvalue}}}};{{#if:{{{c|}}}|&nbsp;&#47;&#47;{{{c|}}}}}|3={{#var:cname}}}}</includeonly>
}}{{{{#if:{{{nolink|}}}|HoverText|HoverLink}}|1={{{1}}}|2={{{2|}}} {{#var:cname}}{{#if:{{#var:hvalue}}|&#32;&#61; {{#var:hvalue}}}}{{#if:{{#var:cvalue}}|&#32;&#61; {{#var:cvalue}}}};{{#if:{{{c|}}}|&nbsp;&#47;&#47;{{{c|}}}}}|3={{#var:cname}}}}</includeonly>

Revision as of 22:51, 16 May 2012

See Template:LSL Const/docs for documentation.

Example Raw Text
name
{{LSL Const|name|type|value|hex=hex|c=comment}}
name
{{LSL Const|name|type|value|hex=hex|c=comment|nolink=*}}
Variables Values
value hex
cvalue value
hvalue hex
type type
comment comment