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

Leap version number parser extension #47

Open
guoyunhe opened this issue Jun 6, 2019 · 1 comment
Open

Leap version number parser extension #47

guoyunhe opened this issue Jun 6, 2019 · 1 comment

Comments

@guoyunhe
Copy link
Contributor

guoyunhe commented Jun 6, 2019

We have a lot of pages with something like:

# Leap 15.0
sudo zypper addrepo --refresh --priority 90 https://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Leap_15.0/packman.repo

Once latest Leap version released, the content has to be manually updated. This is a lot of work.

I am thinking to using a template for the version number. But it doesn't work inside <pre> or <SyntaxHighligh> tags. This is because parser extensions has high priority than templates. So we have to create a extension for that. Extension has another benefit: we can update all wikis without editing templates.

I will try it, not sure if it would work as I expected.

@guoyunhe
Copy link
Contributor Author

guoyunhe commented Jun 6, 2019

This MediaWiki hook might be what we need. https://www.mediawiki.org/wiki/Manual:Hooks/ParserBeforeInternalParse

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant