-
-
Notifications
You must be signed in to change notification settings - Fork 6
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
Implementing section anchors & link template #119
Comments
Do you need any special permission to set up templates like this? Otherwise just copy over what you need. |
Is there a way to automate this? As it looks a bit tedious to do this migration by hand. |
@nicolas-goudry do you want to look into this? |
I'll take a look at it over the weekend if I have the chance to. |
I don't know how MediaWiki templates work internally or if there is anything else I'd have to do besides copying them, so I'd prefer not adding them myself.
Doing it by hand wouldn't be too much of a hassle given the wiki is not that big right now (Gentoo's migration is a lot bigger). Searching for all |
@mrmagic223325 Would you happen to be at NixCon by any chance? I don’t really know mediawiki bits and pieces so it would be great to speak in person! If not, is there somewhere I could reach out to you directly? Matrix or discourse maybe? |
The Gentoo Wiki uses a specially designed template to allow translating section names while still keeping HTML anchors with the source language name intact. This allows using links of the form
https://wiki.nixos.org/wiki/Hydra#Installation
in all languages regardless of the actual translation ofInstallation
. The template is described here. Additionally the Gentoo Wiki also implements a special template for linking to translated pages here. This template allows redirecting users to the source language version of a page whenever a translated version does not exist.The text was updated successfully, but these errors were encountered: