1816
RAWR-Designs / Re: New template in the works.
« on: December 13, 2007, 12:31:33 PM »Quote
{{if|{{is substring|127.0.0.|%ip%}}|{{$update-mod}}}}
{{if|{{is substring|10.0.0.|%ip%}}|{{$update-mod}}}}
{{if|{{is substring|10.1.1.|%ip%}}|{{$update-mod}}}}
{{if|{{is substring|192.168|%ip%}}|{{$update-mod}}}}
replace it by
Quote
{{if |{{match address|%ip%|127.0.0.;10.0.0.;10.1.1.;192.168.}}| {{\ $update-mod /}} /if}}'127.0.0.;10.0.0.;10.1.1.;192.168.' is passed to hfs as one parameter (as a mask).
new usage : '{{\ ' macro ' /}}' at the place of {{macro}} when you use macros into a if even you get some error ( look at wiki about this) http://www.rejetto.com/wiki/index.php?title=HFS:_Template_macros#Problem