Template:KERNEL VERSION NEWER: Difference between revisions

From Variscite Wiki
No edit summary
No edit summary
Line 1: Line 1:
Documentation for Template:KernelCompare
Usage examples:
  {{KernelCompare|5.10.72|5.4.100|>= 5.4.100|< 5.4.100}}
  {{KernelCompare|4.19.200|5.4.100}}
<!-- Begin template logic -->
<!-- 1) Parse the kernel version we're testing -->
<!-- 1) Parse the kernel version we're testing -->
{{#vardefine:TestMajor | {{#explode:{{{1}}}|.|0}} }}
{{#vardefine:TestMajor | {{#explode:{{{1}}}|.|0}} }}
Line 27: Line 18:
                                       + ({{#var:ThresholdMinor}} * 256)
                                       + ({{#var:ThresholdMinor}} * 256)
                                       + ({{#var:ThresholdPatch}} ) }} }}
                                       + ({{#var:ThresholdPatch}} ) }} }}
{{#var:TestValue}}
{{#var:ThresholdValue}}


<!-- 3) Compare and display results -->
<!-- 3) Compare and display results -->

Revision as of 20:52, 21 February 2025







Expression error: Unexpected < operator.