Replies: 1 comment
|
Here's a start: def is_file(link):
return link.title.lstrip().lower().startswith(('file:', 'image:'))
files = mwparserfromhell.parse(text).filter_wikilinks(matches=is_file)
len(files)There are some considerations:
|
0 replies
Answer selected by
dpriskorn
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here's a start:
There are some considerations:
{{Infobox person |image=Example.jpg }}includes[[File:Example.jpg]].)