Difference between revisions of "Template:LSL Sort"
Jump to navigation
Jump to search
Windy Schor (talk | contribs) |
|||
(3 intermediate revisions by one other user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#vardefine:sort|{{#if:{{#var:sort}}|{{#var:sort}}|{{#ifeq:{{lc:{{#sub:{{PAGENAMEE}}|0|6}}}}|lsl_ll|{{#sub:{{PAGENAMEE}}|6}}|{{#ifeq:{{lc:{{#sub:{{PAGENAMEE}}|0|4}}}}|lsl_|{{#sub:{{PAGENAMEE}}|4}}|{{#ifeq:{{lc:{{#sub:{{PAGENAMEE}}|0|2}}}}|ll|{{#sub:{{PAGENAMEE}}|2}}|{{PAGENAMEE}}}}}}}}}}}}</includeonly><noinclude> | <includeonly>{{#vardefine:sort|{{#if:{{#var:sort}}|{{#var:sort}}|{{#ifeq:{{lc:{{#sub:{{PAGENAMEE}}______|0|6}}}}|lsl_ll|{{#sub:{{PAGENAMEE}}|6}}|{{#ifeq:{{lc:{{#sub:{{PAGENAMEE}}____|0|4}}}}|lsl_|{{#sub:{{PAGENAMEE}}|4}}|{{#ifeq:{{lc:{{#sub:{{PAGENAMEE}}__|0|2}}}}|ll|{{#sub:{{PAGENAMEE}}|2}}|{{PAGENAMEE}}}}}}}}}}}}</includeonly><noinclude> | ||
Only include if the sort variable hasn't been defined. Use the bit of code below to do that. | Only include if the sort variable hasn't been defined. Use the bit of code below to do that. | ||
<pre> | <pre> | ||
{{#if:{{{{#if:{{#var:sort}}|!|LSL_Sort}}|}}}} | {{#if:{{{{#if:{{#var:sort}}|!|LSL_Sort}}|}}}} | ||
</pre> | </pre> | ||
This is done so that if your page doesn't use this alg, it won't be affected if this page is updated. | |||
{{#if:{{{{#if:{{#var:sort}}|!|LSL_Sort}}|}}}} | {{#if:{{{{#if:{{#var:sort}}|!|LSL_Sort}}|}}}} | ||
{{#var:sort}} | {{#var:sort}} | ||
</noinclude> | </noinclude> |
Latest revision as of 07:54, 16 July 2008
Only include if the sort variable hasn't been defined. Use the bit of code below to do that.
{{#if:{{{{#if:{{#var:sort}}|!|LSL_Sort}}|}}}}
This is done so that if your page doesn't use this alg, it won't be affected if this page is updated.
Sort