-
(I want to count them) |
Beta Was this translation helpful? Give feedback.
Answered by
earwig
Dec 23, 2022
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:
|
Beta Was this translation helpful? Give feedback.
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]]
.)