Difference between revisions of "Template:Automatic archive navigator/Calc"

From blackwiki
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>AGK
m (Protected Template:Automatic archive navigator/Calc: Highly-visible template (thousands of transclusions) (‎[edit=autoconfirmed] (indefinite) ‎[move=sysop] (indefinite)))
 
(One intermediate revision by one other user 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"  
   -->{{#if:{{ifequal|{{str sub|{{{1}}}|0|7}}|Archive}}|1|}}|<!--
+
   -->{{#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.