Template:User:Clusternote/scan century as integer

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

User:Clusternote/scan century as integer

Returns the century as <integer>, interpreted from the target text containing the format "<integer>{th|rd|st} century [BC]".

Usage

[edit]
{{ User:Clusternote/scan century as integer[text] = <target text> }}

Test

[edit]
  • {{Template:User:Clusternote/scan century as integer|Musical instruments in the 4th century BC}}
    ⇒-4
  • {{Template:User:Clusternote/scan century as integer|Musical instruments in the 4th century}}
    ⇒4

See also

[edit]