Template:User:Clusternote/scan century as integer/format century from integer

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

User:Clusternote/scan century as integer/format century from integer

Returns the <string> expressing the century, from an <integer> expressing century
  i.e. input 0 returns "0th century", input -4 returns "4th century BC", etc.
If the input parameter was not the <number>, empty is returned.

Usage[edit]

{{ User:Clusternote/scan century as integer/format century from integer<century as integer> }}

Test[edit]

  • {{Template:User:Clusternote/scan century as integer/format century from integer|-4}}
    ⇒4th century BC
  • {{Template:User:Clusternote/scan century as integer/format century from integer|{{Template:User:Clusternote/scan century as integer|Musical instruments in the 4th century BC}}}}
    ⇒4th century BC
  • {{Template:User:Clusternote/scan century as integer/format century from integer|{{Template:User:Clusternote/scan century as integer|Musical instruments in the 4.5th century BC}}}}
    ⇒4th century

See also[edit]