Template:CheckURL

From Pestinfo-Wiki
Jump to: navigation, search

The template checks whether the content of the field 'URL for open access articles:' starts with 'http://' or 'https://' and returns an error message if it does not.

The template takes the following 2 parameters:

|1= 
Any previous error message
|2= 
The field content

Usage:

{{CheckURL|1=|2=ftp://asödlkfasdlkö}}

… results in:

URL Value Error:ftp://asödlkfasdlkö” matches not the expected URL as it does not start with either “http://” or “https://”. Please correct the entry for field “URL for open access articles:”.