Difference between revisions of "Template:LSL Function/negative index"
Jump to navigation
Jump to search
m |
|||
Line 10: | Line 10: | ||
{{#vardefine:ni_p3|p3}}--> | {{#vardefine:ni_p3|p3}}--> | ||
</noinclude>{{if: | </noinclude>{{#if: | ||
{{#vardefine:also_articles|{{#var:also_articles}} | {{#vardefine:also_articles|{{#var:also_articles}} | ||
{{#ifeq:{{{1|{{#var:ni_mode}}}}}|true|{{LSL_DefineRow||{{LSLGC|Negative_Index}}|}} {{#vardefine:t|{{#ifeq:{{{1|{{#var:ni_mode}}}}}|true|{{#if:{{{2|{{#var:ni_p1}}}}}|LSL_Function/negative_index/{{#if:{{{3|{{#var:ni_p2}}}}}|range|single}}}}}}}}{{#if:{{{2|{{#var:ni_p1}}}}}|{{{{#var:t}}|{{{2|{{#var:ni_p1}}}}}|{{{3|{{#var:ni_p2}}}}}|{{{4|{{#var:ni_p3}}}}}}}}}}}}} | {{#ifeq:{{{1|{{#var:ni_mode}}}}}|true|{{LSL_DefineRow||{{LSLGC|Negative_Index}}|}} {{#vardefine:t|{{#ifeq:{{{1|{{#var:ni_mode}}}}}|true|{{#if:{{{2|{{#var:ni_p1}}}}}|LSL_Function/negative_index/{{#if:{{{3|{{#var:ni_p2}}}}}|range|single}}}}}}}}{{#if:{{{2|{{#var:ni_p1}}}}}|{{{{#var:t}}|{{{2|{{#var:ni_p1}}}}}|{{{3|{{#var:ni_p2}}}}}|{{{4|{{#var:ni_p3}}}}}}}}}}}}} |
Revision as of 11:27, 5 June 2007
Format:
{{LSL Function/negative index|boolean|p1|p2|p3}}
Exclude p1, p2, or p3 if not used.
Debugging
Test |
{{#var:header_footnote}}
number does not support negative indexes.