This site is supported by donations to The OEIS Foundation.

Template:Sequence of the Day (yesterday, tomorrow)

From OeisWiki
Jump to: navigation, search

alt = This template is under construction...
This template is under construction.            

Please do not use this unfinished and/or still unreliable template.            



Use the {{Sequence of the Day (yesterday, tomorrow)}} OEIS Wiki utility template to get navigation links to yesterday's SoD and tomorrow's SoD.

Usage

In a page whose name begins with "Sequence of the Day for " (without quotes) followed by Month Monthday (e.g. September 3)

{{Sequence of the Day (yesterday, tomorrow)}}

or

{{SoD (prev, next)}}

Examples

Examples with valid arguments

{{SoD (prev, next)|Sequence of the Day for August 23}} gives

{|
|- style="height:30px"
| [[Template:Sequence of the Day for {{#iferror: Monthnum error: invalid input | Date error: Argument must be Monthday Month Year | {{#ifexpr: August >

   Expression error: Unexpected >= operator.
   |  Date error: Monthday cannot exceed number of days of Month Year 
   | Expression error: Unrecognized word "august". 2024 | Yesterday's SOTD]] * [[Template:Sequence of the Day for {{#iferror:  Monthnum error: invalid input

| Date error: Argument must be Monthday Month Year | {{#ifexpr: August >

   Expression error: Unexpected >= operator.
   |  Date error: Monthday cannot exceed number of days of Month Year 
   | Expression error: Unrecognized word "august". 2024 | Tomorrow's SOTD]]

|-
|}

{{SoD (prev, next)|Sequence of the Day for September 1}}

{|
|- style="height:30px"
| [[Template:Sequence of the Day for {{#iferror: 01 | Date error: Argument must be Monthday Month Year | {{#ifexpr: September >

   Expression error: Unexpected >= operator.
   |  Date error: Monthday cannot exceed number of days of Month Year 
   | Expression error: Unrecognized word "september". 2024 | Yesterday's SOTD]] * [[Template:Sequence of the Day for {{#iferror: 01

| Date error: Argument must be Monthday Month Year | {{#ifexpr: September >

   Expression error: Unexpected >= operator.
   |  Date error: Monthday cannot exceed number of days of Month Year 
   | Expression error: Unrecognized word "september". 2024 | Tomorrow's SOTD]]

|-
|}

Examples with invalid arguments (returns error message)

{{SoD (prev, next)}} gives

Sequence of the Day (yesterday, tomorrow) error: Argument must begin with "Sequence of the Day for "

{{SoD (prev, next)|Sequence of the Day of August 23}} gives

Sequence of the Day (yesterday, tomorrow) error: Argument must begin with "Sequence of the Day for "

Code

{{#ifeq: {{#sub: {{{1| {{PAGENAME}} }}} | 0 | 24 }} | Sequence of the Day for
| {{#sub: {{{1| {{PAGENAME}} }}} | 24 }}
| {{error| Sequence of the Day (yesterday, tomorrow) error: Argument must begin with "Sequence of the Day for " }}
}}

See also