From 2574e7cd44eba6db82a24cac6151ee18a2aca9ae Mon Sep 17 00:00:00 2001 From: Daniel Schadt Date: Mon, 16 Aug 2021 15:31:52 +0200 Subject: Render {{script|...}} like we do with {{lang|...}} Even though those macros are slightly different, we can handle them in pretty much the same way (discard the meta information and just output the characters). --- wikimini/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wikimini/__init__.py b/wikimini/__init__.py index 790170f..12c3f31 100644 --- a/wikimini/__init__.py +++ b/wikimini/__init__.py @@ -162,7 +162,7 @@ def _convert(obj: Union[mwp.nodes.Node, mwp.wikicode.Wikicode]) -> str: name = str(obj.name).strip().lower() if name in {"cvt", "convert"}: return render_convert(obj) - elif name == "lang": + elif name in {"lang", "script"}: return _convert(obj.params[1].value) elif name in {"reign", "r.", "ruled", "rexit"}: return render_reign(obj) -- cgit v1.2.3