Template:Daily choice

From GodWiki
Jump to: navigation, search

Error: {{{1}}} not found.

Documentation  Documentation

Given a list of up to ten unnamed parameters, {{Daily choice}} will rotate through each parameter each day in turn.

Optional parameters

|offset=n
If provided, n will be added to {{CURRENTDAY}} before modulo arithmetic.

Unnamed parameters

Up to ten unnamed parameters can be supplied.

|1..10= 
If parameters are manually numbered and any are missing, an error will be displayed on days where the missing parameters are selected, and the last parameter(s) will never be chosen. Easier to leave them unnumbered.

Example of use

Depending on the day, this wikitext:

Today I had {{Daily choice|an apple|an orange|a banana|grapes}} for lunch.

will produce one of these sentences:

  • Today I had an apple for lunch.
  • Today I had an orange for lunch.
  • Today I had a banana for lunch.
  • Today I had grapes for lunch.