Skip to content

[Feature request] Add wikiexpand support to expand templates #114

@cbrender-deploy1

Description

@cbrender-deploy1

Thank you very much for your work in wikitextparser! I've been using wikitextparser for a few hours to convert wikitext to Markdown, and I've already made substantial progress using your tool.

That said, I found this tool called wikiexpand (Source code), which basically expands transclusions and magic words, thus allowing for completely offline parsing of templates. I would like to request adding it in wikitextparser.

This way, if we have a list of all templates needed for a page, we can tell it to recursively expand all the templates, instead of calling Special:ExpandTemplates.

Here are some things to note:

  • wikiexpand is dependent on mwparserfromhell, so the code must be ported/adopted to wikitextparser to remove the dependency
  • even though it still works, wikiexpand is a bit dated and unmaintained
  • a template store object to store the source code for all the templates

What do you think?

Thanks in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions