Template:Evenodd
Jump to navigation
Jump to search
Want an adless experience? Log in or Create an account.
odd
Purpose
Each time this template is used within a given page, it toggles the variable "evenodd" between "even" and "odd", returning the resulting value. This can be used to dynamically switch between two different displays, such as rows in a list.
Usage
Simply call this template with {{Evenodd}} each time the return value should be the opposite of what it was the last time it was called.
When first called, it returns "odd", unless "even" is passed to the named parameter "init": {{Evenodd| init=even }}