diff options
author | Daniel Schadt <kingdread@gmx.de> | 2021-08-16 16:22:53 +0200 |
---|---|---|
committer | Daniel Schadt <kingdread@gmx.de> | 2021-08-16 16:22:53 +0200 |
commit | 46e89b622ad24ed12a0aefad5551a4e1497e6270 (patch) | |
tree | 35dc862f7c4b13501624a9ac7ba0489850b49407 | |
parent | 1b8c98823a4ba7029065a06efdd849382ac8b15c (diff) | |
download | wikimini-46e89b622ad24ed12a0aefad5551a4e1497e6270.tar.gz wikimini-46e89b622ad24ed12a0aefad5551a4e1497e6270.tar.bz2 wikimini-46e89b622ad24ed12a0aefad5551a4e1497e6270.zip |
add {{main article|...}} as alias for {{main|...}}
-rw-r--r-- | wikimini/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wikimini/__init__.py b/wikimini/__init__.py index ca8bfab..e6bc513 100644 --- a/wikimini/__init__.py +++ b/wikimini/__init__.py @@ -191,7 +191,7 @@ def _convert(obj: Union[mwp.nodes.Node, mwp.wikicode.Wikicode]) -> str: return render_cite_book(obj) elif name.startswith("ipa"): return "pronounced [{}]".format(_convert(obj.params[0].value)) - elif name == "main": + elif name in {"main", "main article"}: return render_main(obj) else: return default(obj) |