Skip to content

Use Lua to Python to handle templates ? #2520

@lasconic

Description

@lasconic

Following up on : #2504 (comment)

I tried to render the place template from https://en.wiktionary.org/wiki/FYROM with WTP.

{{place|en|@acronym of:former Yugoslav Republic of Macedonia|@former long form of:North Macedonia|country|r/Southeast Europe|*on the [[Balkan Peninsula]]}}

result :

<span class='form-of-definition use-with-mention'>[[Appendix:Glossary#acronym|Acronym]] of <span class='form-of-definition-link'><i class="Latn mention" lang="en">[[:former Yugoslav Republic of Macedonia#English|former Yugoslav Republic of Macedonia]]</i></span></span>, <span class='form-of-definition use-with-mention'>former long form of <span class='form-of-definition-link'><i class="Latn mention" lang="en">[[:North Macedonia#English|North Macedonia]]</i></span></span>: a [[country]] in <span class="Latn" lang="en">[[:Southeast Europe#English|Southeast Europe]]</span> on the [[Balkan Peninsula]][[Category:English acronyms|WORD]][[Category:en:Abbreviations of countries|WORD]][[Category:en:Former long-form names of countries|WORD]][[Category:en:North Macedonia|WORD]][[Category:en:Countries in Europe|WORD]]

We will need to do some work before we process the template and probably after to remove Category for example.

@BoboTiG Do you already have code to read the DB integrated in reader-dict? How do you to deal with the WTP dependency ?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions