Template:User:Clusternote/scan century as integer/IsCenturyBC
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]- Template:User:Clusternote/scan century as integer/str find numeric
- Template:User:Clusternote/scan century as integer/str get number
- Template:User:Clusternote/scan century as integer
- Template:User:Clusternote/scan century as integer/format century from integer
- Template:User:Clusternote/scan century as integer/IsCenturyBC