Template:CheckPages1

From Pestinfo-Wiki
Jump to: navigation, search

The template takes the following 3 parameters:

|1= 
optional previous error message(s)
|2= 
First page
|3= 
Last page

It checks whether the parameter “First page” is larger than the parameter “Last page”. If yes then an error message is returned. If the Error message (first parameter) already contains some text then the separator “;;” and the new message is appended. If there is no error parameter 1 is returned.

Usage:

{{CheckPages1|1=previous error|2=16|3=13}}
previous error;; Error of given pages: First page larger than last page (16 - 13). Please correct the input values.

{{CheckPages1|1=previous error|2=E4|3=E3}}
previous error;; Error of given pages: First page larger than last page (E4 - E3). Please correct the input values.

{{CheckPages1|1=previous error|2=12|3=13}}
previous error

Returns:

  • error message or none

Dependencies: