Template:User:Clusternote/scan century as integer/IsCenturyBC

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

User:Clusternote/scan century as integer/IsCenturyBC

Return 1 if the target string contains the substring that matches "<integer>{th|rd|st} century BC".
Otherwise, return empty.

Usage[edit]

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

Test[edit]

  • {{code|{{Template:User:Clusternote/scan century as integer/IsCenturyBC|Musical instruments in the 4th century BC}}
    ⇒1
  • {{code|{{Template:User:Clusternote/scan century as integer/IsCenturyBC|Musical instruments in the 4th century}}

See also[edit]