Difference between revisions of "Template:LSL Constant"

From Second Life Wiki
Jump to navigation Jump to search
(Lets see how things go with deepnotes, the constants template really needed modernizing)
 
Line 1: Line 1:
__NOTOC__ {{Multi-lang}}{{LSL Header}}<noinclude>
__NOTOC__ <noinclude>
See [[{{#var:langbase}}/docs{{#var:lang}}]] for documentation.
See [[{{FULLPAGENAME}}/docs]] for documentation.
{{#if:
{{#vardefine:type|<nowiki>{{var:type}}</nowiki>}}
{{#vardefine:type|<nowiki>{{var:type}}</nowiki>}}
{{#vardefine:comment|<nowiki>{{var:comment}}</nowiki>}}
{{#vardefine:name|<nowiki>{{var:name}}</nowiki>}}
{{#vardefine:name|<nowiki>{{var:name}}</nowiki>}}
{{#vardefine:value|<nowiki>{{var:value}}</nowiki>}}
{{#vardefine:value|<nowiki>{{var:value}}</nowiki>}}
{{#vardefine:type|<nowiki>{{var:type}}</nowiki>}}
{{#vardefine:type|<nowiki>{{var:type}}</nowiki>}}
{{#vardefine:links|<nowiki>{{var:links}}</nowiki>}}
{{#vardefine:examples|<nowiki>{{var:examples}}</nowiki>}}
{{#vardefine:examples|<nowiki>{{var:examples}}</nowiki>}}
{{#vardefine:caveats|<nowiki>{{var:caveats}}</nowiki>}}
{{#vardefine:desc|<nowiki>{{var:desc}}</nowiki>}}
{{#vardefine:functions|{{!}}<nowiki>{{var:functions}}</nowiki>}}
{{#vardefine:constants|{{!}}<nowiki>{{var:constants}}</nowiki>}}
{{#vardefine:events|{{!}}<nowiki>{{var:events}}</nowiki>}}
{{#vardefine:location|<nowiki>{{var:location}}</nowiki>}}
{{#vardefine:articles|<nowiki>{{var:articles}}</nowiki>}}
{{#vardefine:pa|<nowiki>{{var:pa}}</nowiki>}}
{{#vardefine:pb|<nowiki>{{var:pb}}</nowiki>}}
{{#vardefine:pc|<nowiki>{{var:pc}}</nowiki>}}
{{#vardefine:pd|<nowiki>{{var:pd}}</nowiki>}}
{{#vardefine:float|<nowiki>{{var:float}}</nowiki>}}
{{#vardefine:issues|<nowiki>{{var:issues}}</nowiki>}}
{{#vardefine:notes|<nowiki>{{var:notes}}</nowiki>}}
{{#vardefine:footnotes|{{!}}<nowiki>{{var:footnotes}}</nowiki>}}
{{#vardefine:history|<nowiki>{{var:history}}</nowiki>}}
{{#vardefine:deepnotes|<nowiki>{{var:deepnotes}}</nowiki>}}
}}
<pre>
{{LSL Constant
|name
|type
|value
|desc
|examples
|events
|functions
|location
|history
|comment
|cat1
|cat2
|cat3
|cat4
|cat5
|cat6
}}
</pre>
=Example=
=Example=
</noinclude>{{#if:
</noinclude>{{{!}} width="100%"
{{#vardefine:type|{{#if:{{{type|}}}|{{{type|}}}|{{#var:type}}}}}}
{{!}}<div id="box">
{{#vardefine:name|{{#if:{{{name|}}}|{{{name|}}}|{{#var:name}}}}}}
== [[{{{type|{{#var:type}}}}}]] {{{name|{{#var:name}}}}} = {{{value|{{#var:value}}}}}; ==
{{#vardefine:value|{{#if:{{{value|}}}|{{{value|}}}|{{#var:value}}}}}}
<div style="padding: 0.5em">
}}<includeonly>{{#if:
{{{desc|{{#var:desc}}}}}
{{#vardefine:comment|{{{comment|}}}{{#var:comment}}}}
{{#vardefine:sort|{{lcfirst:{{#var:name}}}}}}
{{#vardefine:self|{{{self|}}}{{#var:self}}}}
}}<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}}]]}}
</includeonly>{{RightToc|font-size:80%}}
<div id="box"><h2 style="display:none"> Description </h2><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 style="padding: 0.5em">{{#if:{{{float|}}}{{#var:float}}|<div style="float:right;">
{{{float|}}}{{#var:float}}
</div>}}
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></div>
</div></div>
{{#if:{{{pa|}}}{{#var:pa}}|
{{!}}-
{{{pa|}}}{{#var:pa}}
{{!}}<div id="box">
}}{{#if:{{{pb|}}}{{#var:pb}}|
== Functions and Events ==
{{{pb|}}}{{#var:pb}}
}}{{#if:{{{pc|}}}{{#var:pc}}|
{{{pc|}}}{{#var:pc}}
}}{{#if:{{{pd|}}}{{#var:pd}}|
{{{pd|}}}{{#var:pd}}
}}{{#if:{{{caveats|}}}{{#var:caveats}}|
<div id="box">
== Caveats ==
<div style="padding: 0.5em">
<div style="padding: 0.5em">
{{{caveats|}}}{{#var:caveats}}
</div></div>}}
<div id="box">
== Related Articles ==
<div style="padding: 0.5em">
{{#if:{{{constants|}}}{{#var:constants}}|<h3>Constants</h3>
{{{!}}
{{{!}}
{{{constants|}}}{{#var:constants}}
{{{links|{{#var:links}}}}}
{{!}}} }}{{#if:{{{functions|}}}{{#var:functions}}|<h3>Functions</h3>
{{!}}}
{{{!}}
</div></div>
{{{functions|{{#var:functions}}}}}
{{!}}-
{{!}}} }}{{#if:{{{events|}}}{{#var:events}}|<h3>Events</h3>
{{!}}<div id="box">
{{{!}}
{{{events|}}}{{#var:events}}
{{!}}} }}{{#if:{{{articles|}}}{{#var:articles}}|<h3>Articles</h3>
{{{!}}
{{{articles|}}}{{#var:articles}}
{{!}}} }}</div></div>{{#if:{{{examples|}}}{{#var:examples}}|
<div id="box">
== Examples ==
== Examples ==
<div style="padding: 0.5em">
<div style="padding: 0.5em">
{{{examples|}}}{{#var:examples}}
{{{examples|{{#var:examples}}}}}
</div></div>}}{{#if:{{{helpers|}}}{{#var:helpers}}|
</div></div>
<div id="box">
== Useful Snippets ==
<div style="padding: 0.5em">
{{{helpers|}}}{{#var:helpers}}
</div></div>}}{{#if:{{{notes|}}}{{#var:notes}}|
<div id="box">
== Notes ==
<div style="padding: 0.5em">
{{{notes|}}}{{#var:notes}}
</div></div>}}{{#if:{{{history|}}}{{#var:history}}{{{issues|}}}{{#var:issues}}{{{location|}}}{{#var:location}}{{#var:footnotes}}{{{dn_general|}}}{{#var:dn_general}}{{{mono|}}}{{#var:mono}}{{{lso|}}}{{#var:lso}}|
<div id="box">
== Deep Notes ==
<div style="padding: 0.5em">
{{{deepnotes|}}}{{#var:deepnotes}}
{{#if:{{{mono|}}}{{#var:mono}}|
<h4> Mono VM Notes </h4>
{{{mono|}}}{{#var:mono}}
}}{{#if:{{{lso|}}}{{#var:lso}}|
<h4> LSO VM Notes </h4>
{{{lso|}}}{{#var:lso}}
}}{{#if:{{{history|}}}{{#var:history}}|
<h4> History </h4>
{{{history|}}}{{#var:history}}
}}{{#if:{{{issues|}}}{{#var:issues}}|
<h4> Issues </h4>
{{{!}}
{{{issues|}}}{{#var:issues}}
{{!}}}
{{!}}}
}}{{#if:{{{location|}}}{{#var:location}}|
<h4> Source </h4>
{{{location|}}}{{#var:location}}
}}{{#if:{{#var:footnotes}}|
<h4 style="margin-bottom:0;"> Footnotes </h4>
{{Footnotes}}
}}
</div></div>}}{{#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 13:35, 27 February 2007

See Template:LSL Constant/docs for documentation.




Example

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

Functions and Events

{{var:links}}

Examples

{{var:examples}}