Difference between revisions of "Template:LSL Generic"

From Second Life Wiki
Jump to navigation Jump to search
Line 1: Line 1:
__NOTOC__ <noinclude>
__NOTOC__ <noinclude>
<pre>
See [[{{FULLPAGENAME}}/docs]] for documentation.
{{LSL Generic
</noinclude><includeonly>{{#vardefine:t|{{#pos:{{lc:{{PAGENAMEE}}}}|{{lc:{{#var:name}}}}}}}}{{#vardefine:t|{{#if:{{#var:t}}|{{#var:t}}|-1}}}}{{#ifexpr:not {{#var:t}} and {{#ifeq:{{#sub:{{lcfirst:{{#var:name}}}}|0|1}}|{{#sub:{{#var:name}}|0|1}}|0|1}}|{{lowercase}}}} {{#if:{{#var:P_Rendered}}||
|header_title
{{#vardefine:P_Rendered|t}} {{#if:{{#var:self}}|| __NOEDITSECTION__ }} <!-- {{lowercase|{{PAGENAME}}}} -->
|header_text
{{{!}} width="100%"
|header_floater
{{!}}-
|footer
{{!}} valign="top" {{!}} <div id="box">
|deprecated
== {{#var:header_title}} ==
|constants
<div style="padding: 0.5em">{{#if:{{#var:header_floater}}|<div id="box" style="float:right;">{{#var:header_floater}}</div>}}
|spec
{{#var:header_text}}
|caveats
{{#if:{{#var:header_floater}}|<div style="clear:right;" ></div>}}
|examples
|helpers
|also_header
|also_functions
|also_articles
|also_footer
|notes
|mode
|template
|location
}}
</pre>
</noinclude><includeonly> {{#if:{{{self|}}}|| __NOEDITSECTION__ }} {{#if:{{{depreciated|}}}{{{deprecated|}}}|
<div id="box" style="background:red;">
&nbsp;&nbsp;'''Deprecated {{{type}}}'''
<div style="padding: 0.5em;background:#ffffff;">
''(This {{{type}}} has been deprecated{{#ifeq:{{{depreciated|}}}{{{deprecated|}}}|none|.|, please use {{LSLG|{{{depreciated|}}}{{{deprecated|}}}}} instead.)}}''</div></div>{{#if:{{{self|}}}|| {{LSLC|Deprecated|{{{sort|}}}}} }} |}}{{#ifeq:{{{mode|}}}|request|
<div id="box" style="background:red;">
&nbsp;&nbsp;'''LSL Feature Request'''
<div style="padding: 0.5em;background:#ffffff;">
''This {{{type}}} does not exist and is a feature request.''</div></div> {{#if:{{{self|}}}|| {{LSLC|WishList|{{{sort|}}}}} }}}}{{#ifeq:{{{mode|}}}|god|
<div id="box" style="background:yellow;">
&nbsp;&nbsp;'''Requires God Mode'''
<div style="padding: 0.5em;background:#ffffff;">
''(This {{{type}}} can only be executed in God Mode.)''</div></div>{{#if:{{{self|}}}|| {{LSLC|God_Mode|{{{sort|}}} }}}}}} <!-- {{lowercase|{{{1}}}}} -->
{| width="100%"
|-
| valign="top" | <div id="box">
== {{{header_title|}}} ==
<div style="padding: 0.5em">{{#if:{{{header_floater|}}}|<div id="box" style="float:right;">{{{header_floater|}}}</div>}}
{{{header_text|}}}
{{#if:{{{header_floater|}}}|<div style="clear:right;" ></div>}}
</div></div>
</div></div>
|-
{{!}}-
|{{ #if: {{{spec|}}} |  
{{!}}{{ #if: {{#var:spec}} |  
<div id="box">
<div id="box">
== Specification ==
== {{#if:{{#var:T_Specification}}|{{#var:T_Specification}}|Specification}} ==
<div style="padding: 0.5em">
<div style="padding: 0.5em">
{{{spec}}}
{{#var:spec}}
</div>
</div></div>
</div>
}}
| }}
{{!}}-
|-
{{!}}{{ #if: {{#var:constants_nb}} | {{#var:constants_nb}}| }}{{ #if: {{#var:constants}} |  
|{{ #if: {{{constants_nb|}}} | {{{constants_nb}}}| }}{{ #if: {{{constants|}}} |  
<div id="box">
<div id="box">
== Constants ==
== {{#if:{{#var:T_Constants}}|{{#var:T_Constants}}|Constants}} ==
{{{constants}}}
{{#var:constants}}
</div>
</div>
| }}
}}
|-
{{!}}-
|<div id="box">
{{!}}<div id="box">
== Caveats ==
== {{#if:{{#var:T_Caveats}}|{{#var:T_Caveats}}|Caveats}} ==
<div style="padding: 0.5em">
<div style="padding: 0.5em">
{{#if:{{{depreciated|}}}{{{deprecated|}}}|* This {{{type}}} has been deprecated{{#ifeq:{{{depreciated|}}}{{{deprecated|}}}|none||, please use {{LSLG|{{{depreciated|}}}{{{deprecated|}}}}} instead}}.<br />|}}{{#ifeq:{{{mode|}}}|god|* This {{{type}}} can only be executed in God Mode.<br />|}}{{#if: {{{depreciated|}}}{{{deprecated|}}}{{{caveats|}}}{{#ifeq:{{{mode|}}}|god|god|}} | {{{caveats|}}} | * None known.}}
{{#var:caveats}}
</div>
</div></div>
</div>
{{!}}-
|-
{{!}}{{ #if: {{#if:{{#var:deprecated}}||t}}{{#var:examples}} |
|{{ #if: {{#if:{{{depreciated|}}}{{{deprecated|}}}||t}}{{{examples|}}} |
<div id="box">
<div id="box">
== Examples ==
== {{#if:{{#var:T_Examples}}|{{#var:T_Examples}}|Examples}} ==
<div style="padding: 0.5em">
<div style="padding: 0.5em">
{{ #if: {{{examples|}}} | {{{examples|}}} | }}
{{ #if: {{#var:examples}} | {{#var:examples}} | }}
</div>
</div>
</div>
</div>
|}}
}}
|-
{{!}}-
|{{ #if: {{{helpers|}}} |  
{{!}}{{ #if: {{#var:helpers}} |  
<div id="box">
<div id="box">
== Useful Snippets ==
== {{#if:{{#var:T_Useful_Snippets}}|{{#var:T_Useful_Snippets}}|Useful Snippets}} ==
<div style="padding: 0.5em">
<div style="padding: 0.5em">
{{{helpers}}}
{{#var:helpers}}
</div>
</div>
</div>
</div>
| }}
}}
|-
{{!}}-
|{{ #if: {{#if:{{{depreciated|}}}{{{deprecated|}}}||t}}{{{notes|}}} |
{{!}}{{ #if: {{#if:{{#var:deprecated}}||t}}{{#var:notes}} |
<div id="box">
<div id="box">
== Notes ==
== {{#if:{{#var:T_Notes}}|{{#var:T_Notes}}|Notes}} ==
<div style="padding: 0.5em">
<div style="padding: 0.5em">
{{ #if: {{{notes|}}} | {{{notes|}}} | }}
{{ #if: {{#var:notes}} | {{#var:notes}} }}
</div>
</div>
</div>
</div>
|}}
}}
|-
{{!}}-
|{{ #if: {{{also_footer|}}}{{{also_functions|}}}{{{also_events|}}}{{{also_articles|}}}{{{also_tests|}}}{{{also_header|}}} {{#ifexist:{{PAGENAME}}/test|a|{{#ifexist:{{PAGENAME}} test|a}}}}|  
{{!}}{{ #if: {{#var:also_footer}}{{#var:also_functions}}{{#var:also_events}}{{#var:also_articles}}{{#var:also_tests}}{{#var:also_header}}|  
<div id="box">
<div id="box">
== See Also ==
== {{#if:{{#var:T_See Also}}|{{#var:T_See Also}}|See Also}} ==
<div style="padding: 0.5em">
<div style="padding: 0.5em">
{{ #if: {{{also_header|}}} | {{{also_header}}}<br /> |}}{{ #if: {{{also_events|}}} |
{{ #if: {{#var:also_header}} | {{#var:also_header}}<br /> |}}{{ #if: {{#var:also_events}} |
<ul><li> Events </li></ul>
<ul><li> Events </li></ul>
<dl><dd>
<dl><dd>
{{{also_events|}}}</dl> | }}{{ #if: {{{also_functions|}}} |
{{#var:also_events}}</dl> | }}{{ #if: {{#var:also_functions}} |
<ul><li> Functions </li></ul>
<ul><li> Functions </li></ul>
<dl><dd>
<dl><dd>
{{{also_functions|}}}</dl> | }}{{ #if: {{{also_tests|}}}{{#ifexist:{{PAGENAME}}/test|a|{{#ifexist:{{PAGENAME}} test|a}}}} |
{{#var:also_functions}}</dl> | }}{{ #if: {{#var:also_tests}} |
<ul><li> Tests </li></ul>
<ul><li> Tests </li></ul>
<dl><dd>
<dl><dd>
{{#ifexist:{{PAGENAME}}/test|*{{LSLG|{{{1|}}}/test|{{{1|}}} conformance script}}|{{#ifexist:{{PAGENAME}} test|*{{LSLG|{{{1|}}} test|{{{1|}}} conformance script}}}}}}
{{#var:also_tests}}</dl> | }}{{ #if: {{#var:also_articles}} |
{{{also_tests|}}}</dl> | }}{{ #if: {{{also_articles|}}} |
<ul><li> Articles </li></ul>
<ul><li> Articles </li></ul>
<dl><dd>
<dl><dd>
{{{also_articles}}}</dl> | }} {{{also_footer|}}}
{{#var:also_articles}}</dl> | }} {{#var:also_footer}}
</div>
</div></div>
</div>
}}
| }}
{{!}}-
|-
{{!}}{{#if:{{#var:location}}|
|{{#if:{{{location|}}}|
<div id="box">
<div id="box">
== Source Location ==
== {{#if:{{#var:T_Source_Location}}|{{#var:T_Source_Location}}|Source Location}} ==
<div style="padding: 0.5em">
<div style="padding: 0.5em">
{{{location|}}}
{{#var:location}}
</div>
</div></div>
</div>
}}
}}
|}
{{!}}}
{{{footer|}}}</includeonly>
{{#var:footer}} }}</includeonly>

Revision as of 12:33, 20 February 2007

See Template:LSL Generic/docs for documentation.