Difference between revisions of "Template:LSL Function/negative index"
Jump to navigation
Jump to search
Line 11: | Line 11: | ||
</noinclude>{{#vardefine:also_articles|{{#var:also_articles}} | </noinclude>{{#vardefine:also_articles|{{#var:also_articles}} | ||
{{#ifeq:{{{1|{{#var:ni_mode}}}}}|true|{{LSL_DefineRow||{{LSLGC|Negative_Index}}|}}}}}} {{#vardefine:header_footnote|{{#if:{{#var:header_footnote}}|{{#var:header_footnote}}<br/>}}{{#if: {{{1|{{#var:ni_mode}}}}}| {{#if:{{{2|{{#var:ni_p1}}}}}|'''{{{2|{{#var:ni_p1}}}}}'''{{#if:{{{3|{{#var:ni_p2}}}}}|{{#if:{{{4|{{#var:ni_p3}}}}}|, '''{{{3|{{#var:ni_p2}}}}}''' & '''{{{4|{{#var:ni_p3}}}}}'''| & '''{{{3|{{#var:ni_p2}}}}}'''}}}}|This function}} {{#ifeq:{{{1|{{#var:ni_mode}}}}}|false| ''does not'' support | support{{#if:{{{3|{{#var:ni_p2}}}}}||s}} {{#ifeq:{{NAMESPACE}}|Template||{{#if:{{#var:self}}||{{LSLC|Negative Index}}}}}}}} {{LSLGC|Negative Index|negative indexes}}. | {{#ifeq:{{{1|{{#var:ni_mode}}}}}|true|{{LSL_DefineRow||{{LSLGC|Negative_Index}}|}} {{#if:{{{2|{{#var:ni_p1}}}}}|{{{{#if:{{{2|{{#var:ni_p1}}}}}|LSL_Function/negative_index/{{#if:{{{3|{{#var:ni_p2}}}}}|range|single}}|None}}|{{{2|{{#var:ni_p1}}}}}|{{{3|{{#var:ni_p2}}}}}|{{{4|{{#var:ni_p3}}}}}}}}}}}}} {{#vardefine:header_footnote|{{#if:{{#var:header_footnote}}|{{#var:header_footnote}}<br/>}}{{#if: {{{1|{{#var:ni_mode}}}}}| {{#if:{{{2|{{#var:ni_p1}}}}}|'''{{{2|{{#var:ni_p1}}}}}'''{{#if:{{{3|{{#var:ni_p2}}}}}|{{#if:{{{4|{{#var:ni_p3}}}}}|, '''{{{3|{{#var:ni_p2}}}}}''' & '''{{{4|{{#var:ni_p3}}}}}'''| & '''{{{3|{{#var:ni_p2}}}}}'''}}}}|This function}} {{#ifeq:{{{1|{{#var:ni_mode}}}}}|false| ''does not'' support | support{{#if:{{{3|{{#var:ni_p2}}}}}||s}} {{#ifeq:{{NAMESPACE}}|Template||{{#if:{{#var:self}}||{{LSLC|Negative Index}}}}}}}} {{LSLGC|Negative Index|negative indexes}}.}}}} | ||
<noinclude> | <noinclude> | ||
==Debugging== | ==Debugging== |
Revision as of 17:54, 6 March 2007
Format:
{{LSL Function/negative index|boolean|p1|p2|p3}}
Exclude p1, p2, or p3 if not used.
Debugging
Test | ||||
• | Negative_Index |
{{#var:header_footnote}}
This function supports negative indexes.