Difference between revisions of "Template:LSL Constant"

From Second Life Wiki
Jump to navigation Jump to search
m
m
(11 intermediate revisions by the same user not shown)
Line 7: Line 7:
{{#vardefine:desc|<nowiki>{{var:desc}}</nowiki>}}
{{#vardefine:desc|<nowiki>{{var:desc}}</nowiki>}}
{{#vardefine:rvalue|<nowiki>{{var:rvalue}}</nowiki>}}
{{#vardefine:rvalue|<nowiki>{{var:rvalue}}</nowiki>}}
{{#vardefine:type|<nowiki>{{var:type}}</nowiki>}}
{{#vardefine:examples|<nowiki>{{var:examples}}</nowiki>}}
{{#vardefine:examples|<nowiki>{{var:examples}}</nowiki>}}
{{#vardefine:caveats|<nowiki>{{var:caveats}}</nowiki>}}
{{#vardefine:caveats|<nowiki>{{var:caveats}}</nowiki>}}
Line 33: Line 32:
|name
|name
|type
|type
|subtype
|value
|value
|desc
|desc
Line 89: Line 89:


}}<div style="display:none" class="hidden-text" id="hidden-text">{{#var:hidden-text}}</div><div id="RealTitleBanner" style="display:none;">
}}<div style="display:none" class="hidden-text" id="hidden-text">{{#var:hidden-text}}</div><div id="RealTitleBanner" style="display:none;">
<span id="RealTitle">{{#if:{{NAMESPACE}}|{{NAMESPACE}}:}}{{{name}}}</span></div> __NOEDITSECTION__  {{DEFAULTSORT:{{#var:sort}}}} {{#if:{{#var:self}}{{#pos:{{#var:moded}}|r}}{{#pos:{{#var:moded}}|u}}||[[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}}]]}}}}  
<span id="RealTitle">{{#if:{{NAMESPACE}}|{{NAMESPACE}}:}}{{{name}}}</span></div> __NOEDITSECTION__  {{DEFAULTSORT:{{#var:sort}}}} {{#if:{{#var:self}}{{#pos:{{#var:moded}}|r}}{{#pos:{{#var:moded}}|u}}||[[Category:LSL Constants{{#var:lang}}|{{{name}}}]][[Category:LSL {{ucfirst:{{{type}}}}}{{#var:lang}}|{{{name}}}]]{{#if:{{{subtype|}}}|[[Category:LSL {{ucfirst:{{{type}}}}}/{{{subtype}}}/Values{{#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%}}
Line 96: Line 96:
{{{float|}}}{{#var:float}}
{{{float|}}}{{#var:float}}
</div>}}
</div>}}
The {{{type}}} constant {{{name}}} has the value {{#var:rvalue}}{{#if:{{{desc|}}}{{#var:desc}}|<br/><br/>
The{{#if:{{{subtype|}}}|&#32;[[:Category:LSL {{ucfirst:{{{type}}}}}/{{{subtype}}}{{#var:lang}}|{{{subtype}}}]]}} {{{type}}} {{#if:{{{subtype|}}}|[[:Category:LSL {{ucfirst:{{{type}}}}}/{{{subtype}}}/Values{{#var:lang}}|constant]]|constant}} {{{name}}} has the value {{#var:rvalue}}{{#if:{{{desc|}}}{{#var:desc}}|<br/><br/>
{{{desc|}}}
{{{desc|}}}
{{#var:desc}}|[[Category:LSL FixMe{{#var:lang}}]]}}
{{#var:desc}}|[[Category:LSL FixMe{{#var:lang}}]]}}
Line 166: Line 166:
</div>{{#if:{{{history|}}}{{#var:history}}|
</div>{{#if:{{{history|}}}{{#var:history}}|
<h4> History </h4><div>
<h4> History </h4><div>
{{{!}}
{{{history|}}}{{#var:history}}
{{{history|}}}{{#var:history}}
{{!}}}
</div>}}
</div>}}
{{Anchor|Issues}}{{LSL_Generic/Issues}}{{#if:{{#var:also_tests}}|
{{Anchor|Issues}}{{LSL_Generic/Issues}}{{#if:{{#var:also_tests}}|
Line 182: Line 184:
{{Collapsible_Table|collapsed=*|table-style=width:100%;|title-style=text-align:left;|title=<h4 style="margin-top:0;">Signature</h4>|content={{!}}
{{Collapsible_Table|collapsed=*|table-style=width:100%;|title-style=text-align:left;|title=<h4 style="margin-top:0;">Signature</h4>|content={{!}}
{{#tag:pre|{{#var:signature}}|id="lsl-signature"}}}}
{{#tag:pre|{{#var:signature}}|id="lsl-signature"}}}}
{{#if:{{{haiku|}}}<noinclude>*</noinclude>|{{Collapsible_Table|collapsed=*|table-class=haiku|table-style=width:100%;display:none;|title-style=text-align:left;|title=<h4 style="margin-top:0;">Haiku</h4>|content={{!}}
{{#if:{{{haiku|}}}<noinclude>*</noinclude>|{{Collapsible_Table|table-class=haiku|table-style=width:100%;|title-style=text-align:left;|title=<h4 style="margin-top:0;">Haiku</h4>|content={{!}}
{{{haiku}}}
{{{haiku}}}
}}|<includeonly>[[Category:Articles in need of haiku]]</includeonly>}}
}}<includeonly>[[Category:Articles with haiku]]</includeonly>|<includeonly>[[Category:Articles in need of haiku]]</includeonly>}}
</div></div>{{#if:{{#var:self}}|| {{#if:{{#pos:{{#var:moded}}|r}}{{#pos:{{#var:moded}}|u}}|| {{#if:{{#pos:{{#var:moded}}|f}}|[[Category:LSL Keywords/Pre-release{{#var:lang}}]]|[[Category:LSL Keywords/All{{#var:lang}}]]{{#ifexpr:{{#var:BugCounter|0}} > 0|[[Category:LSL topics with bugs{{#var:lang}}]] [[Category:LSL topics with the most bugs{{#var:lang}}| {{#pad:{{#expr:100-{{#var:BugCounter|0}}}}|2|0}}{{PAGENAME}}]]}}}} {{#if:{{#var:examples}}||[[Category:LSL Needs Example{{#var:lang}}]]}} }} {{#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}}]]}} {{#if:{{{cat7|}}}|[[Category:LSL {{{cat7|}}}{{#var:lang}}]]}} {{#if:{{{cat8|}}}|[[Category:LSL {{{cat8|}}}{{#var:lang}}]]}} }}
</div></div>{{#if:{{#var:self}}|| {{#if:{{#pos:{{#var:moded}}|r}}{{#pos:{{#var:moded}}|u}}|| {{#if:{{#pos:{{#var:moded}}|f}}|[[Category:LSL Keywords/Pre-release{{#var:lang}}]]|[[Category:LSL Keywords/All{{#var:lang}}]]{{#ifexpr:{{#var:BugCounter|0}} > 0|[[Category:LSL topics with bugs{{#var:lang}}]] [[Category:LSL topics with the most bugs{{#var:lang}}| {{#pad:{{#expr:100-{{#var:BugCounter|0}}}}|2|0}}{{PAGENAME}}]]}}}} {{#if:{{{examples|}}}{{#var:examples}}||[[Category:LSL Needs Example{{#var:lang}}]]}} }} {{#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}}]]}} {{#if:{{{cat7|}}}|[[Category:LSL {{{cat7|}}}{{#var:lang}}]]}} {{#if:{{{cat8|}}}|[[Category:LSL {{{cat8|}}}{{#var:lang}}]]}} }}

Revision as of 20:41, 22 September 2015

See Template:LSL Constant/docs for documentation.

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

Example

{{var:header}}

Description

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

{{var:float}}

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

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


Haiku

{{{haiku}}}