Difference between revisions of "Template:Automatic archive navigator/Calc"
Jump to navigation
Jump to search
imported>Soap m (Unprotected Template:Automatic archive navigator/Calc: Unprotection, Consensus at ANI seems to be that protection should not be applied, despite high level of transclusions. . using TW) |
imported>WOSlinker (no need to use Ifequal template) |
||
| Line 3: | Line 3: | ||
-->{{#ifexpr:{{str len|{{{1}}} }}>8|<!-- | -->{{#ifexpr:{{str len|{{{1}}} }}>8|<!-- | ||
see if prefix matches "Archive" | see if prefix matches "Archive" | ||
| − | -->{{# | + | -->{{#ifeq:{{str sub|{{{1}}}|0|7}}|Archive|1|}}|<!-- |
-->}}</includeonly><noinclude> | -->}}</includeonly><noinclude> | ||
This function is used by {{tl|Aan/Next}} to work out if a given string begins with "Archive". Returns 1 if true, null if not. | This function is used by {{tl|Aan/Next}} to work out if a given string begins with "Archive". Returns 1 if true, null if not. | ||
</noinclude> | </noinclude> | ||
Revision as of 14:40, 28 November 2010
This function is used by {{Aan/Next}} to work out if a given string begins with "Archive". Returns 1 if true, null if not.