Jump to content
Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Weekday in month/ordinal/doc

Template page

Purpose

This internal helper converts written or suffixed ordinals into the signed numbers used by Template:Weekday in month. Numeric input passes through unchanged.

Usage

Parameter 1 accepts a number, first through fifth, 1st through 5th, last, or the second through fifth-from-last forms. Text matching is case-insensitive. Last occurrences map to negative values from −1 through −5.

Unrecognized nonnumeric text produces an empty value. Use the public wrapper for calendar calculations.

See also