Difference between revisions of "Template:Automatic archive navigator/Calc"
Jump to navigation
Jump to search
imported>HJ Mitchell m (Protected Template:Automatic archive navigator/Calc: batch protection of templates on database report per WP:HRT using TW ([edit=autoconfirmed] (indefinite) [move) |
imported>AGK m (Protected Template:Automatic archive navigator/Calc: Highly-visible template (thousands of transclusions) ([edit=autoconfirmed] (indefinite) [move=sysop] (indefinite))) |
||
| (2 intermediate revisions by 2 users not shown) | |||
| 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> | ||
Latest revision as of 11:05, 23 April 2012
This function is used by {{Aan/Next}} to work out if a given string begins with "Archive". Returns 1 if true, null if not.