Difference between revisions of "Template:LSL Constant"

From Second Life Wiki
Jump to navigation Jump to search
m (x_x)
(I hope this doesn't break anything)
Line 61: Line 61:
   {{#if:{{{value|}}}|{{#vardefine:value|{{{value|}}}}}}}
   {{#if:{{{value|}}}|{{#vardefine:value|{{{value|}}}}}}}
}}
}}
{{#vardefine:comment|{{{comment|}}}{{#var:comment}}}}
{{#vardefine:sig|{{{type}}} {{{name}}} = {{#if:{{#var:hvalue}}|{{#var:hvalue}}|{{#var:value}}}};{{#if:{{{comment|}}}|//{{{comment}}}}}}}
{{#vardefine:sig|{{#var:type}} {{#var:name}} = {{#if:{{#var:hvalue}}|{{#var:hvalue}}|{{#var:value}}}};{{#if:{{#var:comment}}|//{{#var:comment}}}}}}
{{#if:{{{dvalue|}}}|{{#vardefine:value|{{{dvalue|}}}}}}}
{{#if:{{{dvalue|}}}|{{#vardefine:value|{{{dvalue|}}}}}}}
{{#if:{{{desc|}}}|{{#vardefine:desc|{{{desc|}}}}}}}


{{#vardefine:article_type|constant}}
{{#vardefine:article_type|constant}}
Line 75: Line 73:
{{{issues|}}}}}
{{{issues|}}}}}


{{#vardefine:sort|{{lcfirst:{{#var:name}}}}}}
{{#vardefine:sort|{{lcfirst:{{{name}}}}}}}


{{#vardefine:self|{{{self|}}}{{#var:self}}}}
{{#vardefine:self|{{{self|}}}{{#var:self}}}}
Line 88: Line 86:


}}<div id="RealTitleBanner" style="display:none;">
}}<div id="RealTitleBanner" style="display:none;">
<span id="RealTitle">{{#if:{{NAMESPACE}}|{{NAMESPACE}}:}}{{#var:name}}</span></div> __NOEDITSECTION__  {{DEFAULTSORT:{{#var:sort}}}} {{#if:{{#var:self}}||[[Category:LSL Constants{{#var:lang}}|{{#var:name}}]][[Category:LSL {{ucfirst:{{#var:type}}}}{{#var:lang}}|{{#var:name}}]]{{#ifexpr:{{#var:BugCounter|0}} > 0|[[Category:LSL topics with bugs{{#var:lang}}]]}}}}  
<span id="RealTitle">{{#if:{{NAMESPACE}}|{{NAMESPACE}}:}}{{{name}}}</span></div> __NOEDITSECTION__  {{DEFAULTSORT:{{#var:sort}}}} {{#if:{{#var:self}}||[[Category:LSL Constants{{#var:lang}}|{{{name}}}]][[Category:LSL {{ucfirst:{{{type}}}}}{{#var:lang}}|{{{name}}}]]{{#ifexpr:{{#var:BugCounter|0}} > 0|[[Category:LSL topics with bugs{{#var:lang}}]]}}}}  
</includeonly>{{#var:header}}
</includeonly>{{#var:header}}
{{RightToc|font-size:80%}}
{{RightToc|font-size:80%}}
<div id="box"><h2 style="display:none"> Description </h2>{{#ifexpr:{{#var:BugCounter|0}} > 0|<div class="mw-headline" style="float:right; margin: 5px 0.5em 0 0.5em;">{{LSL_Bug_Icon}}</div>}}<span id="{{anchorencode:Description}}" class="mw-headline" style="display:block; padding-bottom:0.17em; padding-top:0.5em; background:transparent none repeat scroll 0% 0%; color:#546368; font-family:Arial,Helvetica,Sans-Serif; background-color:#F4F8FB; border-bottom:1px dotted #AAAAAA; font-size:120%; font-weight:bold; margin:0pt; padding:0.2em 0.5em; text-align:left;"> Constant: [[{{#var:type}}{{#var:lang}}|{{#var:type}}]] {{HoverLink|1={{#var:name}}{{#var:lang}}|2={{#var:comment}}|3={{#var:name}}}} = {{#var:value}}; </span>
<div id="box"><h2 style="display:none"> Description </h2>{{#ifexpr:{{#var:BugCounter|0}} > 0|<div class="mw-headline" style="float:right; margin: 5px 0.5em 0 0.5em;">{{LSL_Bug_Icon}}</div>}}<span id="{{anchorencode:Description}}" class="mw-headline" style="display:block; padding-bottom:0.17em; padding-top:0.5em; background:transparent none repeat scroll 0% 0%; color:#546368; font-family:Arial,Helvetica,Sans-Serif; background-color:#F4F8FB; border-bottom:1px dotted #AAAAAA; font-size:120%; font-weight:bold; margin:0pt; padding:0.2em 0.5em; text-align:left;"> Constant: [[{{{type}}}{{#var:lang}}|{{{type}}}]] {{HoverLink|1={{{name}}}{{#var:lang}}|2={{#var:comment}}|3={{{name}}}}} = {{#var:value}}; </span>
<div style="padding: 0.5em">{{#if:{{{float|}}}{{#var:float}}|<div style="float:right;">
<div style="padding: 0.5em">{{#if:{{{float|}}}{{#var:float}}|<div style="float:right;">
{{{float|}}}{{#var:float}}
{{{float|}}}{{#var:float}}
</div>}}
</div>}}
The {{#var:type}} constant {{#var:name}} has the value {{#var:value}}{{#if:{{#var:desc}}|<br/><br/>
The {{{type}}} constant {{{name}}} has the value {{#var:value}}{{#if:{{{desc|}}}{{#var:desc}}|<br/><br/>
{{{desc|}}}
{{#var:desc}}|[[Category:LSL FixMe{{#var:lang}}]]}}
{{#var:desc}}|[[Category:LSL FixMe{{#var:lang}}]]}}
</div></div>
</div></div>

Revision as of 15:27, 12 January 2012

See Template:LSL Constant/docs for documentation.

{{LSL Constant
|name
|type
|value
|desc
|examples
|events
|functions
|location
|history
|comment
|cat1
|cat2
|cat3
|cat4
|cat5
|cat6
}}

Example

{{var:header}}

Description

Constant: [[{{{type}}}|{{{type}}}]] [[{{{name}}}|{{{name}}}]] = {{var:value}};

{{var:float}}

The {{{type}}} constant {{{name}}} has the value {{var:value}}

{{var:desc}}

{{var:pa}}{{var:pb}}{{var:pc}}{{var:pd}}

Caveats

Related Articles

Constants

{{var:constants}}

Functions

{{var:functions}}

Events

{{var:events}}

Articles

{{var:articles}}

Examples

{{var:examples}}

Notes

{{var:notes}}

Deep Notes

{{var:deepnotes}}

History

{{var:history}}

All Issues

~ Search JIRA for related Issues {{var:issues}}

Source

{{var:location}}

Footnotes

    {{var:footnotes}}

Signature