Template:Validate list/doc

From 7 Days to Die Wiki
Jump to: navigation, search
Template-badinfo.png Documentation
This template's documentation has been marked as bad. Please improve or add to it.

Description[edit source]

Validates a value against a supplied list, this is done case insensitively, and returns the version from the list, thus supplying a consistent version, that could be used as a link to a page.

Syntax[edit source]

{{Validate list
| value = 
| list = 
| value_not_found = 
| empty =

Parameters[edit source]

Parameter Default Value Description
value Value to be validated.
list A comma separated list of valid values.
value_not_found Value to return (default) if the value is not found in the list.
empty Value to be returned if the value is empty, or does not exist.

This is the documentation page, it should be transcluded into the main template page. See Template:Doc for more information.