Difference between revisions of "Template:LSL Constant"

From Second Life Wiki
Jump to navigation Jump to search
m
Line 16: Line 16:
{{#vardefine:pb|<nowiki>{{var:pb}}</nowiki>}}
{{#vardefine:pb|<nowiki>{{var:pb}}</nowiki>}}
{{#vardefine:pc|<nowiki>{{var:pc}}</nowiki>}}
{{#vardefine:pc|<nowiki>{{var:pc}}</nowiki>}}
{{#vardefine:pd|<nowiki>{{var:pd}}</nowiki>}}
{{#vardefine:float|<nowiki>{{var:float}}</nowiki>}}
}}
}}
<pre>
<pre>
Line 49: Line 51:
}}<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:name}}]][[Category:LSL {{ucfirst:{{#var:type}}}}|{{#var:name}}]]}}  
<span id="RealTitle">{{#if:{{NAMESPACE}}|{{NAMESPACE}}:}}{{#var:name}}</span></div> __NOEDITSECTION__  {{DEFAULTSORT:{{#var:sort}}}} {{#if:{{#var:self}}||[[Category:LSL Constants|{{#var:name}}]][[Category:LSL {{ucfirst:{{#var:type}}}}|{{#var:name}}]]}}  
</includeonly>{{{!}} width="100%"
</includeonly>
{{!}}<div id="box">
<div id="box">
== [[{{#var:type}}]] {{HoverLink|1={{#var:name}}|2={{#var:comment}}}} = {{#var:value}}; ==
== [[{{#var:type}}{{#var:lang}}|{{#var:type}}]] {{HoverLink|1={{#var:name}}{{#var:lang}}|2={{#var:comment}}|3={{#var:name}}}} = {{#var:value}}; ==
<div style="padding: 0.5em">{{#if:{{{float|}}}|<div style="float:right;">
<div style="padding: 0.5em">{{#if:{{{float|}}}{{#var:float}}|<div style="float:right;">
{{{float|}}}
{{{float|}}}{{#var:float}}
</div>}}
</div>}}
The {{#var:type}} constant {{#var:name}} has the value {{#var:value}}{{#if:{{{desc|}}}{{#var:desc}}|<br/><br/>{{{desc|}}}{{#var:desc}}}}
The {{#var:type}} constant {{#var:name}} has the value {{#var:value}}{{#if:{{{desc|}}}{{#var:desc}}|<br/><br/>
{{{desc|}}}{{#var:desc}}|[[Category:LSL FixMe{{#var:lang}}]]}}
<div style="clear:right; height:0; width:0;"></div>
</div></div>
</div></div>
{{!}}-
{{#if:{{{pa|}}}{{#var:pa}}|
{{#if:{{{pa|}}}{{#var:pa}}|{{!}}
{{{pa|}}}{{#var:pa}}
{{{pa|}}}{{#var:pa}}}}
}}{{#if:{{{pb|}}}{{#var:pb}}|
{{!}}-
{{{pb|}}}{{#var:pb}}
{{#if:{{{pb|}}}{{#var:pb}}|{{!}}
}}{{#if:{{{pc|}}}{{#var:pc}}|
{{{pb|}}}{{#var:pb}}}}
{{{pc|}}}{{#var:pc}}
{{!}}-
}}{{#if:{{{pd|}}}{{#var:pd}}|
{{#if:{{{pc|}}}{{#var:pc}}|{{!}}
{{{pd|}}}{{#var:pd}}
{{{pc|}}}{{#var:pc}}}}
}}<div id="box">
{{!}}-
{{!}}<div id="box">
== Related Functions, Events & Constants ==
== Related Functions, Events & Constants ==
<div style="padding: 0.5em">
<div style="padding: 0.5em">
Line 83: Line 85:
{{{articles|}}}{{#var:articles}}
{{{articles|}}}{{#var:articles}}
{{!}}} }}</div></div>
{{!}}} }}</div></div>
{{!}}-
{{#if:{{{examples|}}}{{#var:examples}}|
{{#if:{{{examples|}}}{{#var:examples}}|
{{!}}<div id="box">
<div id="box">
== Examples ==
== Examples ==
<div style="padding: 0.5em">
<div style="padding: 0.5em">
{{{examples|}}}{{#var:examples}}
{{{examples|}}}{{#var:examples}}
</div></div>}}
</div></div>
{{!}}-
}}{{#if:{{{location|}}}{{#var:location}}|
{{#if:{{{location|}}}{{#var:location}}|
<div id="box">
{{!}}<div id="box">
== Source Location ==
== Source Location ==
<div style="padding: 0.5em">
<div style="padding: 0.5em">
{{{location|}}}{{#var:location}}
{{{location|}}}{{#var:location}}
</div></div>}}
</div></div>
{{!}}-
}}{{#if:{{{history|}}}{{#var:history}}|
{{#if:{{{history|}}}{{#var:history}}|
{{!}}
<div id="box">
<div id="box">
<h2>{{#if:{{#var:T_History}}|{{#var:T_History}}|History}}</h2>
<h2>{{#if:{{#var:T_History}}|{{#var:T_History}}|History}}</h2>
Line 105: Line 103:
{{{history|}}}{{#var:history}}
{{{history|}}}{{#var:history}}
</div></div>}}
</div></div>}}
{{!}}} {{#if:{{{cat1|}}}|[[Category:LSL {{{cat1|}}}]]}} {{#if:{{{cat2|}}}|[[Category:LSL {{{cat2|}}}]]}} {{#if:{{{cat3|}}}|[[Category:LSL {{{cat3|}}}]]}} {{#if:{{{cat4|}}}|[[Category:LSL {{{cat4|}}}]]}} {{#if:{{{cat5|}}}|[[Category:LSL {{{cat5|}}}]]}} {{#if:{{{cat6|}}}|[[Category:LSL {{{cat6|}}}]]}}
{{#if:{{{cat1|}}}|[[Category:LSL {{{cat1|}}}{{#var:lang}}]]}} {{#if:{{{cat2|}}}|[[Category:LSL {{{cat2|}}}{{#var:lang}}]]}} {{#if:{{{cat3|}}}|[[Category:LSL {{{cat3|}}}{{#var:lang}}]]}} {{#if:{{{cat4|}}}|[[Category:LSL {{{cat4|}}}{{#var:lang}}]]}} {{#if:{{{cat5|}}}|[[Category:LSL {{{cat5|}}}{{#var:lang}}]]}} {{#if:{{{cat6|}}}|[[Category:LSL {{{cat6|}}}{{#var:lang}}]]}}

Revision as of 11:45, 15 April 2008

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:type}}|{{var:type}}]] [[{{var:name}}|{{var:name}}]] = {{var:value}};

{{var:float}}

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

{{var:desc}}

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

Related Functions, Events & Constants

Constants

{{var:constants}}

Functions

{{var:functions}}

Events

{{var:events}}

Examples

{{var:examples}}

Source Location

{{var:location}}