Difference between revisions of "Template:LSL Generic"

From Second Life Wiki
Jump to navigation Jump to search
m
 
(32 intermediate revisions by the same user not shown)
Line 1: Line 1:
__NOTOC__ <noinclude>
__NOTOC__ <noinclude>
<pre>
See [[{{FULLPAGENAME}}/docs]] for documentation.{{#if:
{{LSL Generic
 
|name
{{#vardefine:also_header|header}}
|header_title
{{#vardefine:also_events|{{!}}events}}
|header_text
{{#vardefine:also_tests|{{!}}tests}}
|header_floater
{{#vardefine:also_articles|{{!}}articles}}
|footer
{{#vardefine:also_functions|{{!}}functions}}
|deprecated
{{#vardefine:also_footer|footer}}
|constants
{{#vardefine:examples|examples}}
|spec
{{#vardefine:constants_nb|constants_nb}}
|caveats
{{#vardefine:notes|notes}}
|examples
{{#vardefine:caveats|caveats}}
|helpers
{{#vardefine:spec|spec}}
|also_header
{{#vardefine:header_title|header_title}}
|also_functions
{{#vardefine:header_text|header_text}}
|also_articles
{{#vardefine:header_floater|header_floater}}
|also_footer
{{#vardefine:search|search}}
|notes
 
|mode
<!-- -->
|template
 
}}
}}</noinclude><onlyinclude>{{#if:
</pre>
 
</noinclude><includeonly> {{#if:{{{self|}}}|| __NOEDITSECTION__ }} {{#if:{{{depreciated|}}}{{{deprecated|}}}|
{{#vardefine:t|{{#pos:{{lc:{{PAGENAMEE}}}}|{{lc:{{#var:name}}}}}}}}
<div id="box" style="background:red;">
 
&nbsp;&nbsp;'''Deprecated {{{type}}}'''
{{#vardefine:caveats|{{#if:{{#var:caveats}}|
<div style="padding: 0.5em;background:#ffffff;">
{{#var:caveats}}}}
''(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|
{{#ifeq:{{#var:mode}}|user||{{#if:{{#var:bugs}}|<h3 style="display:inline; line-height:2em;">Important Issues </h3>{{#if:{{#var:search}}|~ {{JiraSearch/1|1={{#var:search}}|2=Search JIRA for related Bugs}}}}
<div id="box" style="background:red;">
{{{!}} style="font-size:80%; line-height:1.1em;"  
&nbsp;&nbsp;'''LSL Feature Request'''
{{#var:bugs}}
<div style="padding: 0.5em;background:#ffffff;">
{{!}}}|{{#if:{{#var:search}}|{{PBR}}{{JiraSearch/1|1={{#var:search}}|2=Search JIRA for related Bugs}}|}}}}}}}}
''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;">
}}{{#if:{{#var:P_Rendered}}||{{#ifexpr:not {{#if:{{#var:t}}|{{#var:t}}|-1}} and {{#ifeq:{{#sub:{{ucfirst:{{#var:name}}}}|0|1}}|{{#sub:{{#var:name}}|0|1}}|0|1}}|{{lowercase}}}}
&nbsp;&nbsp;'''Requires God Mode'''
{{#vardefine:P_Rendered|t}} {{#if:{{#var:self}}|| __NOEDITSECTION__ }} {{#var:header}}
<div style="padding: 0.5em;background:#ffffff;">
{{RightToc|font-size:80%}}
''(This {{{type}}} can only be executed in God Mode.)''</div></div>{{#if:{{{self|}}}|| {{LSLC|God_Mode|{{{sort|}}} }}}}}} <!-- {{lowercase|{{{1}}}}} -->
<div id="box"><h2 style="display:none"> {{#if:{{#var:alt_title}}|{{#var:alt_title}}|{{#var:header_title}}}} </h2>{{#ifexpr:{{#var:BugCounter|0}} > 0|<div class="mw-headline" style="float:right; margin: 5px 0.5em 0 0.5em;">{{LSL_Bug_Icon}}</div>}}<span id="{{anchorencode:Description}}" style="display:none"></span><span id="{{anchorencode:Summary}}" 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;"> {{#var:header_title}} </span><div style="padding: 0.5em; min-height: 5em;">{{#if:{{#var:header_floater}}|<div id="box" style="float:right;">{{#var:header_floater}}</div>}}
{| width="100%"
{{#var:header_text}}
|-
</div></div>{{#if:{{#var:spec}}|<div id="box">
| valign="top" | <div id="box">
<h2>Specification</h2>
== {{{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>
|-
|{{ #if: {{{spec|}}} |  
<div id="box">
== Specification ==
<div style="padding: 0.5em">
<div style="padding: 0.5em">
{{{spec}}}
{{#var:spec}}
</div>
</div></div>}}{{#if:{{#var:constants_nb}}{{#var:constants}}|
</div>
{{#var:constants_nb}}{{#if:{{#var:constants}}|  
| }}
<div id="box"><h2>{{#if:{{#var:T_Constants}}|{{#var:T_Constants}}|Constants}}</h2>
|-
{{#var:constants}}
|{{ #if: {{{constants_nb|}}} | {{{constants_nb}}}| }}{{ #if: {{{constants|}}} |  
</div>}}}}{{#if:{{#var:caveats}}|
<div id="box">
<div id="box"><h2>Caveats</h2>
== Constants ==
{{{constants}}}
</div>
| }}
|-
|<div id="box">
== 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>}}{{#if:{{#if:{{#var:deprecated}}||t}}{{#var:examples}}|
</div>
<div id="box"><h2>Examples</h2>
|-
|{{ #if: {{#if:{{{depreciated|}}}{{{deprecated|}}}||t}}{{{examples|}}} |
<div id="box">
== Examples ==
<div style="padding: 0.5em">
<div style="padding: 0.5em">
{{ #if: {{{examples|}}} | {{{examples|}}} | }}
{{#var:examples}}
</div>
</div></div>}}{{#if:{{#var:helpers}}|
</div>
<div id="box"><h2>Useful Snippets</h2>
|}}
|-
|{{ #if: {{{helpers|}}} |  
<div id="box">
== Helper Functions ==
<div style="padding: 0.5em">
<div style="padding: 0.5em">
{{{helpers}}}
{{#var:helpers}}
</div>
</div></div>}}{{#if:{{#var:notes}}|
</div>
<div id="box"><h2>Notes</h2>
| }}
|-
|{{ #if: {{#if:{{{depreciated|}}}{{{deprecated|}}}||t}}{{{notes|}}} |
<div id="box">
== Notes ==
<div style="padding: 0.5em">
<div style="padding: 0.5em">
{{ #if: {{{notes|}}} | {{{notes|}}} | }}
{{#var:notes}}
</div>
</div></div>}}{{#if:{{#var:also_footer}}{{#var:also_functions}}{{#var:also_events}}{{#var:also_articles}}{{#var:also_tests}}{{#var:also_header}}|
</div>
<div id="box"><h2>See Also</h2>
|}}
|-
|{{ #if: {{{also_footer|}}}{{{also_functions|}}}{{{also_events|}}}{{{also_articles|}}}{{{also_tests|}}}{{{also_header|}}} {{#ifexist:{{PAGENAME}}/test|a|{{#ifexist:{{PAGENAME}} test|a}}}}|  
<div id="box">
== 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}}|
<ul><li> Events </li></ul>
{{#var:also_header}}}}{{#if:{{#var:also_events}}|
<dl><dd>
<h3>Events</h3>
{{{also_events|}}}</dl> | }}{{ #if: {{{also_functions|}}} |
{{{!}}
<ul><li> Functions </li></ul>
{{#var:also_events}}
<dl><dd>
{{!}}} }}{{#if:{{#var:also_functions}}|
{{{also_functions|}}}</dl> | }}{{ #if: {{{also_tests|}}}{{#ifexist:{{PAGENAME}}/test|a|{{#ifexist:{{PAGENAME}} test|a}}}} |
<h3>Functions</h3>
<ul><li> Tests </li></ul>
{{{!}}
<dl><dd>
{{#var:also_functions}}
{{#ifexist:{{PAGENAME}}/test|*{{LSLG|{{{1|}}}/test|{{{1|}}} conformance script}}|{{#ifexist:{{PAGENAME}} test|*{{LSLG|{{{1|}}} test|{{{1|}}} conformance script}}}}}}
{{!}}} }}{{#if:{{#var:also_articles}}|
{{{also_tests|}}}</dl> | }}{{ #if: {{{also_articles|}}} |
<h3>Articles</h3>
<ul><li> Articles </li></ul>
{{{!}}
<dl><dd>
{{#var:also_articles}}
{{{also_articles}}}</dl> | }} {{{also_footer|}}}
{{!}}} }}
</div>
{{#if:{{#var:also_footer}}|{{PBR}}{{#var:also_footer}}}}
</div>
</div></div>}}
| }}
{{#if:{{#var:deepnotes}}{{#var:mono}}{{#var:lso}}{{#var:history}}{{#var:issues}}{{#var:search}}{{#var:location}}{{#var:also_tests}}{{#var:messaging}}{{#var:footnotes}}|<div id="box">
|}
== Deep Notes ==
{{{footer|}}}</includeonly>
<div style="padding: 0.5em"><div>
{{#var:deepnotes}}
</div>{{#if:{{#var:mono}}|
<h4> Mono VM Notes </h4><div>
{{#var:mono}}
</div>}}{{#if:{{#var:lso}}|
<h4> LSO VM Notes </h4><div>
{{#var:lso}}
</div>}}{{#if:{{#var:history}}|
<h4> History </h4><div>
{{#var:history}}
</div>}}{{#if:{{#var:issues}}|
<h4 style="display:inline; line-height:2em;">Issues </h4>{{#if:{{#var:search}}|~ {{JiraSearch/2|1={{#var:search}}|2=Search JIRA for related Issues}}}}
{{{!}} style="font-size:90%; line-height:1.1em;"
{{#var:issues}}
{{!}}}
|{{#if:{{#var:search}}|<h4>Issues</h4>
{{JiraSearch/2|1={{#var:search}}|2=Search JIRA for related Issues}}
}}}}{{#if:{{#var:also_tests}}|
<h3>Tests</h3>
{{{!}}
{{#var:also_tests}}
{{!}}}
}}{{#if:{{#var:location}}|
<h4> Source </h4><div>
{{#var:location}}
</div>}}{{#if:{{#var:messaging}}|
<h4> Messaging </h4><div>
{{#var:messaging}}
</div>}}{{#if:{{#var:footnotes}}|
<h4 style="margin-bottom:0;"> Footnotes </h4>
{{{{#if:{{#var:footnotes}}|Footnotes|!}}|}}
}}
</div></div>}}{{#if:{{#var:comments}}|<div id="box">
<h2>Comments</h2>
<div style="padding: 0.5em;">
{{#var:comments}}
</div></div>}}
{{#var:footer}}<span id="sort" style="visibility:hidden">{{#var:sort}}</span>}}</onlyinclude>

Latest revision as of 20:16, 17 December 2010

See Template:LSL Generic/docs for documentation.

header_title

header_title
header_floater

header_text

Specification

spec

constants_nb

Examples

examples

Notes

notes

See Also

header

Events

events

Functions

functions

Articles

articles

footer

Deep Notes

Issues

Search JIRA for related Issues

Tests

tests