Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for several magic words #356

Closed
lasconic opened this issue Nov 24, 2020 · 7 comments · Fixed by #374
Closed

Add support for several magic words #356

lasconic opened this issue Nov 24, 2020 · 7 comments · Fixed by #374

Comments

@lasconic
Copy link
Collaborator

  • Wiktionary page:

Wikicode:

{{CURRENTYEAR}}

Output:

<i>(CURRENTYEAR)</i>

Expected:

2020

@BoboTiG
Copy link
Owner

BoboTiG commented Nov 24, 2020

I did not know that one. Where is it used?

@BoboTiG
Copy link
Owner

BoboTiG commented Nov 24, 2020

It is only used in french pages? I would more thinking of it as a global variable.

@lasconic
Copy link
Collaborator Author

It's used on this page : https://fr.wiktionary.org/wiki/apr._J.-C. (and this page only I believe)

@BoboTiG
Copy link
Owner

BoboTiG commented Nov 24, 2020

Hm that page does not exist.

@BoboTiG
Copy link
Owner

BoboTiG commented Nov 24, 2020

https://fr.wiktionary.org/wiki/apr._J.-C.

It seems GH has some issue displaying the link.

Let's add this special code, we could do it from utils.py::clean() I think.

@lasconic
Copy link
Collaborator Author

@lasconic
Copy link
Collaborator Author

I also found {{PAGENAME}} in https://fr.wiktionary.org/wiki/De_Witte

@BoboTiG BoboTiG self-assigned this Nov 25, 2020
@BoboTiG BoboTiG changed the title [FR] Support CURRENTYEAR template Handle mosts of magic words Nov 25, 2020
@BoboTiG BoboTiG changed the title Handle mosts of magic words Add support for magic words Nov 25, 2020
@BoboTiG BoboTiG changed the title Add support for magic words Add support for several magic words Nov 25, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants