Difference between revisions of "Template:LSL Function"

From Second Life Wiki
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}}}}


{{#vardefine:newbie|{{#if:{{#var:newbie}}|{{#var:newbie}}|{{#if:{{{newbie|}}}|{{{newbie|}}}|{{#var:langbase}}/Newbie Notes{{#var:lang}}}}}}}}
{{#if:{{#var:newbie}}||
{{#vardefine:newbie|{{#if:{{{newbie|}}}|{{{newbie|}}}|{{#var:langbase}}/Newbie Notes{{#var:lang}}}}}}
}}


{{#vardefine:PBR|{{#if:{{#var:spec}}{{{spec|}}}|{{PBR}}}}}}
{{#if:{{#var:spec}}{{{spec|}}}|
{{#vardefine:spec|{{#var:spec}}{{#var:PBR}}
{{#vardefine:spec|{{#var:spec}}{{PBR}}
{{{spec|}}}{{#var:PBR}}}}
{{{spec|}}}{{PBR}}}}
}}


{{#vardefine:PBR|{{#if:{{#var:constants_nb}}{{{constants|}}}|{{PBR}}}}}}
{{#if:{{#var:constants_nb}}{{{constants|}}}|
{{#vardefine:constants_nb|{{#var:constants_nb}}{{#var:PBR}}
{{#vardefine:constants_nb|{{#var:constants_nb}}{{PBR}}
{{{constants|}}}{{#var:PBR}}}}
{{{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}}}}}}}}


{{#vardefine:PBR|{{#if:{{#var:examples}}{{{examples|}}}|{{PBR}}}}}}
{{#if:{{#var:examples}}{{{examples|}}}|
{{#vardefine:examples|{{#var:examples}}{{#var:PBR}}
{{#vardefine:examples|{{#var:examples}}{{PBR}}
{{{examples|}}}{{#var:PBR}}}}
{{{examples|}}}{{PBR}}}}
}}


{{#vardefine:simple-examples|{{#var:simple-examples}}
{{#vardefine:simple-examples|{{#var:simple-examples}}
Line 83: Line 88:
{{{complex-examples|}}}}}
{{{complex-examples|}}}}}


{{#vardefine:PBR|{{#if:{{#var:helpers}}{{{helpers|}}}|{{PBR}}}}}}
{{#if:{{#var:helpers}}{{{helpers|}}}|
{{#vardefine:helpers|{{#var:helpers}}{{#var:PBR}}
{{#vardefine:helpers|{{#var:helpers}}{{PBR}}
{{{helpers|}}}{{#var:PBR}}}}
{{{helpers|}}}{{PBR}}}}
}}


{{#vardefine:PBR|{{#if:{{#var:also_header}}{{{also_header|}}}|{{PBR}}}}}}
{{#if:{{#var:also_header}}{{{also_header|}}}|
{{#vardefine:also_header|{{#var:also_header}}{{#var:PBR}}
{{#vardefine:also_header|{{#var:also_header}}{{PBR}}
{{{also_header|}}}{{#var:PBR}}}}
{{{also_header|}}}{{PBR}}}}
}}


{{#vardefine:also_constants|{{#var:also_constants}}
{{#vardefine:also_constants|{{#var:also_constants}}
Line 106: Line 113:
{{{also_library|}}}}}
{{{also_library|}}}}}


{{#vardefine:PBR|{{#if:{{#var:also_footer}}{{{also_footer|}}}|{{PBR}}}}}}
{{#if:{{#var:also_footer}}{{{also_footer|}}}|
{{#vardefine:also_footer|{{#var:also_footer}}{{#var:PBR}}
{{#vardefine:also_footer|{{#var:also_footer}}{{PBR}}
{{{also_footer|}}}{{#var:PBR}}}}
{{{also_footer|}}}{{PBR}}}}
}}


{{#vardefine:PBR|{{#if:{{#var:notes}}{{{notes|}}}|{{PBR}}}}}}
{{#if:{{#var:notes}}{{{notes|}}}|
{{#vardefine:notes|{{#var:notes}}{{#var:PBR}}
{{#vardefine:notes|{{#var:notes}}{{PBR}}
{{{notes|}}}{{#var:PBR}}}}
{{{notes|}}}{{PBR}}}}
}}


{{#vardefine:PBR|{{#if:{{#var:history}}{{{history|}}}|{{PBR}}}}}}
{{#if:{{#var:history}}{{{history|}}}|
{{#vardefine:history|{{#var:history}}{{#var:PBR}}
{{#vardefine:history|{{#var:history}}{{PBR}}
{{{history|}}}{{#var:PBR}}}}
{{{history|}}}{{PBR}}}}
}}


{{#vardefine:PBR|{{#if:{{#var:deepnotes}}{{{deepnotes|}}}|{{PBR}}}}}}
{{#if:{{#var:deepnotes}}{{{deepnotes|}}}|
{{#vardefine:deepnotes|{{#var:deepnotes}}{{#var:PBR}}
{{#vardefine:deepnotes|{{#var:deepnotes}}{{PBR}}
{{{deepnotes|}}}{{#var:PBR}}}}
{{{deepnotes|}}}{{PBR}}}}
}}


{{#vardefine:PBR|{{#if:{{#var:mono}}{{{mono|}}}|{{PBR}}}}}}
{{#if:{{#var:mono}}{{{mono|}}}|
{{#vardefine:mono|{{#var:mono}}{{#var:PBR}}
{{#vardefine:mono|{{#var:mono}}{{PBR}}
{{{mono|}}}{{#var:PBR}}}}
{{{mono|}}}{{PBR}}}}
}}


{{#vardefine:PBR|{{#if:{{#var:lso}}{{{lso|}}}|{{PBR}}}}}}
{{#if:{{#var:lso}}{{{lso|}}}|
{{#vardefine:lso|{{#var:lso}}{{#var:PBR}}
{{#vardefine:lso|{{#var:lso}}{{PBR}}
{{{lso|}}}{{#var:PBR}}}}
{{{lso|}}}{{PBR}}}}
}}


{{#vardefine:issues|{{#var:issues}}
{{#vardefine:issues|{{#var:issues}}
Line 136: Line 149:
{{{also_tests|}}}}}
{{{also_tests|}}}}}


{{#vardefine:PBR|{{#if:{{#var:location}}{{{location|}}}|{{PBR}}}}}}
{{#if:{{#var:location}}{{{location|}}}|
{{#vardefine:location|{{#var:location}}{{#var:PBR}}
{{#vardefine:location|{{#var:location}}{{PBR}}
{{{location|}}}{{#var:PBR}}}}
{{{location|}}}{{PBR}}}}
}}


{{#vardefine:PBR|{{#if:{{#var:messaging}}{{{messaging|}}}|{{PBR}}}}}}
{{#if:{{#var:messaging}}{{{messaging|}}}|
{{#vardefine:messaging|{{#var:messaging}}{{#var:PBR}}
{{#vardefine:messaging|{{#var:messaging}}{{PBR}}
{{{messaging|}}}{{#var:PBR}}}}
{{{messaging|}}}{{PBR}}}}
}}


}}{{#if:{{#var:self}}|| __NOEDITSECTION__
}}{{#if:{{#var:self}}|| __NOEDITSECTION__

Revision as of 14:44, 8 March 2010