Difference between revisions of "Template:LSL Function"
Jump to navigation
Jump to search
(this shouldn't have any negative effects but just in case... please look out for any.) |
m (inherit func_id if not set, simplify logic, if they are null, no point in defining) |
||
Line 4: | Line 4: | ||
{{#vardefine:article_type|function}} | {{#vardefine:article_type|function}} | ||
{{#vardefine:func_id|{{{func_id|}}}}} | {{#if:{{{func_id|}}}|{{#vardefine:func_id|{{{func_id|}}}}}}} | ||
{{#vardefine:mode|{{#var:mode}}{{{mode|}}}}} | {{#vardefine:mode|{{#var:mode}}{{{mode|}}}}} | ||
{{#vardefine:self|{{#var:self}}{{{self|}}}}} | {{#vardefine:self|{{#var:self}}{{{self|}}}}} | ||
Line 52: | Line 52: | ||
{{{func_footer|}}}{{#var:PBR}}}} | {{{func_footer|}}}{{#var:PBR}}}} | ||
{{#if:{{#var:newbie}}|| | |||
{{#vardefine:newbie|{{#if:{{{newbie|}}}|{{{newbie|}}}|{{#var:langbase}}/Newbie Notes{{#var:lang}}}}}} | |||
}} | |||
{{#if:{{#var:spec}}{{{spec|}}}| | |||
{{#vardefine:spec|{{#var:spec}}{{ | {{#vardefine:spec|{{#var:spec}}{{PBR}} | ||
{{{spec|}}}{{ | {{{spec|}}}{{PBR}}}} | ||
}} | |||
{{#if:{{#var:constants_nb}}{{{constants|}}}| | |||
{{#vardefine:constants_nb|{{#var:constants_nb}}{{ | {{#vardefine:constants_nb|{{#var:constants_nb}}{{PBR}} | ||
{{{constants|}}}{{ | {{{constants|}}}{{PBR}}}} | ||
}} | |||
{{#vardefine:bugs|{{#var:bugs}} | {{#vardefine:bugs|{{#var:bugs}} | ||
Line 73: | Line 77: | ||
{{!}}}|{{JiraSearch/1|1={{{keywords|}}} {{{func}}}|2=Search JIRA for related Bugs}}}}}}}} | {{!}}}|{{JiraSearch/1|1={{{keywords|}}} {{{func}}}|2=Search JIRA for related Bugs}}}}}}}} | ||
{{#if:{{#var:examples}}{{{examples|}}}| | |||
{{#vardefine:examples|{{#var:examples}}{{ | {{#vardefine:examples|{{#var:examples}}{{PBR}} | ||
{{{examples|}}}{{ | {{{examples|}}}{{PBR}}}} | ||
}} | |||
{{#vardefine:simple-examples|{{#var:simple-examples}} | {{#vardefine:simple-examples|{{#var:simple-examples}} | ||
Line 83: | Line 88: | ||
{{{complex-examples|}}}}} | {{{complex-examples|}}}}} | ||
{{#if:{{#var:helpers}}{{{helpers|}}}| | |||
{{#vardefine:helpers|{{#var:helpers}}{{ | {{#vardefine:helpers|{{#var:helpers}}{{PBR}} | ||
{{{helpers|}}}{{ | {{{helpers|}}}{{PBR}}}} | ||
}} | |||
{{#if:{{#var:also_header}}{{{also_header|}}}| | |||
{{#vardefine:also_header|{{#var:also_header}}{{ | {{#vardefine:also_header|{{#var:also_header}}{{PBR}} | ||
{{{also_header|}}}{{ | {{{also_header|}}}{{PBR}}}} | ||
}} | |||
{{#vardefine:also_constants|{{#var:also_constants}} | {{#vardefine:also_constants|{{#var:also_constants}} | ||
Line 106: | Line 113: | ||
{{{also_library|}}}}} | {{{also_library|}}}}} | ||
{{#if:{{#var:also_footer}}{{{also_footer|}}}| | |||
{{#vardefine:also_footer|{{#var:also_footer}}{{ | {{#vardefine:also_footer|{{#var:also_footer}}{{PBR}} | ||
{{{also_footer|}}}{{ | {{{also_footer|}}}{{PBR}}}} | ||
}} | |||
{{#if:{{#var:notes}}{{{notes|}}}| | |||
{{#vardefine:notes|{{#var:notes}}{{ | {{#vardefine:notes|{{#var:notes}}{{PBR}} | ||
{{{notes|}}}{{ | {{{notes|}}}{{PBR}}}} | ||
}} | |||
{{#if:{{#var:history}}{{{history|}}}| | |||
{{#vardefine:history|{{#var:history}}{{ | {{#vardefine:history|{{#var:history}}{{PBR}} | ||
{{{history|}}}{{ | {{{history|}}}{{PBR}}}} | ||
}} | |||
{{#if:{{#var:deepnotes}}{{{deepnotes|}}}| | |||
{{#vardefine:deepnotes|{{#var:deepnotes}}{{ | {{#vardefine:deepnotes|{{#var:deepnotes}}{{PBR}} | ||
{{{deepnotes|}}}{{ | {{{deepnotes|}}}{{PBR}}}} | ||
}} | |||
{{#if:{{#var:mono}}{{{mono|}}}| | |||
{{#vardefine:mono|{{#var:mono}}{{ | {{#vardefine:mono|{{#var:mono}}{{PBR}} | ||
{{{mono|}}}{{ | {{{mono|}}}{{PBR}}}} | ||
}} | |||
{{#if:{{#var:lso}}{{{lso|}}}| | |||
{{#vardefine:lso|{{#var:lso}}{{ | {{#vardefine:lso|{{#var:lso}}{{PBR}} | ||
{{{lso|}}}{{ | {{{lso|}}}{{PBR}}}} | ||
}} | |||
{{#vardefine:issues|{{#var:issues}} | {{#vardefine:issues|{{#var:issues}} | ||
Line 136: | Line 149: | ||
{{{also_tests|}}}}} | {{{also_tests|}}}}} | ||
{{#if:{{#var:location}}{{{location|}}}| | |||
{{#vardefine:location|{{#var:location}}{{ | {{#vardefine:location|{{#var:location}}{{PBR}} | ||
{{{location|}}}{{ | {{{location|}}}{{PBR}}}} | ||
}} | |||
{{#if:{{#var:messaging}}{{{messaging|}}}| | |||
{{#vardefine:messaging|{{#var:messaging}}{{ | {{#vardefine:messaging|{{#var:messaging}}{{PBR}} | ||
{{{messaging|}}}{{ | {{{messaging|}}}{{PBR}}}} | ||
}} | |||
}}{{#if:{{#var:self}}|| __NOEDITSECTION__ | }}{{#if:{{#var:self}}|| __NOEDITSECTION__ |
Revision as of 14:44, 8 March 2010
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
See Template:LSL Function/docs for documentation.