Difference between revisions of "Template:LSL Generic"

From Second Life Wiki
Jump to navigation Jump to search
(Step 1, initial modernization. Later steps will add newer sections etc. This is being updated so the few articles that use it don't have to be hand rolled)
Line 1: Line 1:
__NOTOC__ <noinclude>
__NOTOC__ <noinclude>
See [[{{FULLPAGENAME}}/docs]] for documentation.
See [[{{FULLPAGENAME}}/docs]] for documentation.{{#if:


<!--{{#vardefine:also_header|header}}
{{#vardefine:also_header|header}}
{{#vardefine:also_events|{{!}}events}}
{{#vardefine:also_events|{{!}}events}}
{{#vardefine:also_tests|{{!}}tests}}
{{#vardefine:also_tests|{{!}}tests}}
Line 8: Line 8:
{{#vardefine:also_functions|{{!}}functions}}
{{#vardefine:also_functions|{{!}}functions}}
{{#vardefine:also_footer|footer}}
{{#vardefine:also_footer|footer}}
{{#vardefine:spec|spec}}-->
{{#vardefine:examples|examples}}
{{{{FULLPAGENAME}}|}}
{{#vardefine:constants_nb|constants_nb}}
{{#vardefine:notes|notes}}
{{#vardefine:caveats|caveats}}
{{#vardefine:spec|spec}}
{{#vardefine:header_title|header_title}}
{{#vardefine:header_text|header_text}}
{{#vardefine:header_floater|header_floater}}


</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:{{ucfirst:{{#var:name}}}}|0|1}}|{{#sub:{{#var:name}}|0|1}}|0|1}}|{{lowercase}}}} {{#if:{{#var:P_Rendered}}||
<!-- -->
 
}}</noinclude><onlyinclude>{{#if:
 
{{#vardefine:t|{{#pos:{{lc:{{PAGENAMEE}}}}|{{lc:{{#var:name}}}}}}}}
 
}}{{#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}}}}
{{#vardefine:P_Rendered|t}} {{#if:{{#var:self}}|| __NOEDITSECTION__ }} {{#var:header}}
{{#vardefine:P_Rendered|t}} {{#if:{{#var:self}}|| __NOEDITSECTION__ }} {{#var:header}}
{{{!}} width="100%"
<div id="box">
{{!}}-
{{!}} valign="top" {{!}} <div id="box">
<h2>{{#var:header_title}}</h2>
<h2>{{#var:header_title}}</h2>
<div style="padding: 0.5em">{{#if:{{#var:header_floater}}|<div id="box" style="float:right;">{{#var:header_floater}}</div>}}
<div style="padding: 0.5em">{{#if:{{#var:header_floater}}|<div id="box" style="float:right;">{{#var:header_floater}}</div>}}
{{#var:header_text}}
{{#var:header_text}}
{{#if:{{#var:header_floater}}|<div style="clear:right;" ></div>}}
{{#if:{{#var:header_floater}}|<div style="clear:right;" ></div>}}
</div></div>
</div></div>{{#if:{{#var:spec}}|<div id="box">
{{#if:{{#var:spec}}|{{!}}-
<h2>Specification</h2>
{{!}}<div id="box">
<h2>{{#if:{{#var:T_Specification}}|{{#var:T_Specification}}|Specification}}</h2>
<div style="padding: 0.5em">
<div style="padding: 0.5em">
{{#var:spec}}
{{#var:spec}}
</div></div>}}
</div></div>}}{{#if:{{#var:constants_nb}}{{#var:constants}}|
{{!}}-
{{#var:constants_nb}}{{#if:{{#var:constants}}|  
{{#if:{{#var:constants_nb}}{{#var:constants}}|
{{!}}{{#var:constants_nb}}{{#if:{{#var:constants}}|  
<div id="box"><h2>{{#if:{{#var:T_Constants}}|{{#var:T_Constants}}|Constants}}</h2>
<div id="box"><h2>{{#if:{{#var:T_Constants}}|{{#var:T_Constants}}|Constants}}</h2>
{{#var:constants}}
{{#var:constants}}
</div>}}}}
</div>}}}}{{#if:{{#var:caveats}}|
{{!}}-
<div id="box"><h2>Caveats</h2>
{{#if:{{#var:caveats}}|
{{!}}<div id="box"><h2>{{#if:{{#var:T_Caveats}}|{{#var:T_Caveats}}|Caveats}}</h2>
<div style="padding: 0.5em">
<div style="padding: 0.5em">
{{#var:caveats}}
{{#var:caveats}}
</div></div>}}
</div></div>}}{{#if:{{#if:{{#var:deprecated}}||t}}{{#var:examples}}|
{{!}}-
<div id="box"><h2>Examples</h2>
{{#if:{{#if:{{#var:deprecated}}||t}}{{#var:examples}}|
{{!}}<div id="box"><h2>{{#if:{{#var:T_Examples}}|{{#var:T_Examples}}|Examples}}</h2>
<div style="padding: 0.5em">
<div style="padding: 0.5em">
{{#var:examples}}
{{#var:examples}}
</div></div>}}
</div></div>}}{{#if:{{#var:helpers}}|
{{!}}-
<div id="box"><h2>Useful Snippets</h2>
{{#if:{{#var:helpers}}|
{{!}}<div id="box"><h2>{{#if:{{#var:T_Useful_Snippets}}|{{#var:T_Useful_Snippets}}|Useful Snippets}}</h2>
<div style="padding: 0.5em">
<div style="padding: 0.5em">
{{#var:helpers}}
{{#var:helpers}}
</div></div>}}
</div></div>}}{{#if:{{#var:notes}}|
{{!}}-
<div id="box"><h2>Notes</h2>
{{#if:{{#var:notes}}|
{{!}}<div id="box"><h2>{{#if:{{#var:T_Notes}}|{{#var:T_Notes}}|Notes}}</h2>
<div style="padding: 0.5em">
<div style="padding: 0.5em">
{{#var:notes}}
{{#var:notes}}
</div></div>}}
</div></div>}}{{#if:{{#var:also_footer}}{{#var:also_functions}}{{#var:also_events}}{{#var:also_articles}}{{#var:also_tests}}{{#var:also_header}}|
{{!}}-
<div id="box"><h2>See Also</h2>
{{#if:{{#var:also_footer}}{{#var:also_functions}}{{#var:also_events}}{{#var:also_articles}}{{#var:also_tests}}{{#var:also_header}}|
{{!}}<div id="box"><h2>{{#if:{{#var:T_See_Also}}|{{#var:T_See Also}}|See Also}}</h2>
<div style="padding: 0.5em">
<div style="padding: 0.5em">
{{#if:{{#var:also_header}}|
{{#if:{{#var:also_header}}|
{{#var:also_header}}}}{{#if:{{#var:also_events}}|
{{#var:also_header}}}}{{#if:{{#var:also_events}}|
<h3>{{#if:{{#var:T_Also_Events}}|{{#var:T_Also_Events}}|Events}}</h3>
<h3>Events</h3>
{{{!}}
{{{!}}
{{#var:also_events}}
{{#var:also_events}}
{{!}}} }}{{#if:{{#var:also_functions}}|
{{!}}} }}{{#if:{{#var:also_functions}}|
<h3>{{#if:{{#var:T_Also_Functions}}|{{#var:T_Also_Functions}}|Functions}}</h3>
<h3>Functions</h3>
{{{!}}
{{{!}}
{{#var:also_functions}}
{{#var:also_functions}}
{{!}}} }}{{#if:{{#var:also_tests}}|
{{!}}} }}{{#if:{{#var:also_tests}}|
<h3>{{#if:{{#var:T_Also_Tests}}|{{#var:T_Also_Tests}}|Tests}}</h3>
<h3>Tests</h3>
{{{!}}
{{{!}}
{{#var:also_tests}}
{{#var:also_tests}}
{{!}}} }}{{#if:{{#var:also_articles}}|
{{!}}} }}{{#if:{{#var:also_articles}}|
<h3>{{#if:{{#var:T_Also_Articles}}|{{#var:T_Also_Articles}}|Articles}}</h3>
<h3>Articles</h3>
{{{!}}
{{{!}}
{{#var:also_articles}}
{{#var:also_articles}}
{{!}}} }}
{{!}}} }}
{{#if:{{#var:also_footer}}|<br/>{{#var:also_footer}}}}
{{#if:{{#var:also_footer}}|{{PBR}}{{#var:also_footer}}}}
</div></div>}}
</div></div>}}{{#if:{{#var:location}}|
{{!}}-
{{#if:{{#var:location}}|
{{!}}
<div id="box">
<div id="box">
<h2>{{#if:{{#var:T_Source_Location}}|{{#var:T_Source_Location}}|Source Location}}</h2>
<h2>Source Location</h2>
<div style="padding: 0.5em">
<div style="padding: 0.5em">
{{#var:location}}
{{#var:location}}
</div></div>}}
</div></div>}}
{{!}}}
{{#var:footer}}<span id="sort" style="visibility:hidden">{{#var:sort}}</span>}}</onlyinclude>
{{#var:footer}}<span id="sort" style="visibility:hidden">{{#var:sort}}</span>}}</includeonly>

Revision as of 20:43, 2 February 2010

See Template:LSL Generic/docs for documentation.

header_title

header_floater

header_text

Specification

spec

constants_nb

Caveats

caveats

Examples

examples

Notes

notes

See Also

header

Events

events

Functions

functions

Tests

tests

Articles

articles

footer