Difference between revisions of "Template:LSL Constant"

From Second Life Wiki
Jump to navigation Jump to search
m (same variable names as function template ~_~ (wonder if i should make templates for each so I can easily change then in the case of collisions... *can already hear the screams of torment*))
m (not sure why this wasn't inlined (i'll find out soon?), not higher parameters can clear the bugs so they don't have to double render.)
Line 54: Line 54:
{{#vardefine:name|{{#if:{{{name|}}}|{{{name|}}}|{{#var:name}}}}}}
{{#vardefine:name|{{#if:{{{name|}}}|{{{name|}}}|{{#var:name}}}}}}
{{#vardefine:value|{{#if:{{{value|}}}|{{{value|}}}|{{#var:value}}}}}}
{{#vardefine:value|{{#if:{{{value|}}}|{{{value|}}}|{{#var:value}}}}}}
{{#vardefine:caveats|{{#if:{{#var:caveats}}|
{{#var:caveats}}}}{{#if:{{{caveats|}}}|
{{{caveats|}}}}}
{{#ifeq:{{#var:mode}}|user||{{#if:{{#var:bugs}}|<h3 style="display:inline; line-height:2em;">Important Issues </h3>~ {{JiraSearch/1|1={{{keywords|}}} {{#var:name}}|2=Search JIRA for related Bugs}}
{{{!}} style="font-size:80%; line-height:1.1em;"
{{#var:bugs}}
{{!}}}|{{PBR}}{{JiraSearch/1|1={{{keywords|}}} {{#var:name}}|2=Search JIRA for related Bugs}}}}}}}}


}}<includeonly>{{#if:
}}<includeonly>{{#if:
Line 99: Line 90:
== Caveats ==
== Caveats ==
<div style="padding: 0.5em">
<div style="padding: 0.5em">
{{#var:caveats}}
{{#if:{{#var:caveats}}|
{{#var:caveats}}}}{{#if:{{{caveats|}}}|
{{{caveats|}}}}}
{{#ifeq:{{#var:mode}}|user||{{#if:{{#var:bugs}}|<h3 style="display:inline; line-height:2em;">Important Issues </h3>~ {{JiraSearch/1|1={{{keywords|}}} {{#var:name}}|2=Search JIRA for related Bugs}}
{{{!}} style="font-size:80%; line-height:1.1em;"
{{#var:bugs}}
{{!}}}|{{PBR}}{{JiraSearch/1|1={{{keywords|}}} {{#var:name}}|2=Search JIRA for related Bugs}}}}}}
</div></div>}}<div id="box">
</div></div>}}<div id="box">
== Related Articles ==
== Related Articles ==

Revision as of 15:52, 7 April 2010

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: [[{{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}}

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}}

Issues

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

Source

{{var:location}}

Footnotes

    {{var:footnotes}}