Skip to content
This repository was archived by the owner on Jan 18, 2025. It is now read-only.

Miraheze article resolver #108

Open
slweeb opened this issue Dec 3, 2022 · 4 comments
Open

Miraheze article resolver #108

slweeb opened this issue Dec 3, 2022 · 4 comments

Comments

@slweeb
Copy link

slweeb commented Dec 3, 2022

Some Miraheze wikis use a miraheze.org subdomain, like the Kirby Wiki, but others use a custom domain which the URL match pattern can't do, like the Nintendo Wiki. Can this be done?

@fuddl
Copy link
Owner

fuddl commented Dec 4, 2022

Can it be solved by adding multiple extractor patterns or would this be impractical? How many irregular url patterns are there? Are they the exception or the rule?

@slweeb
Copy link
Author

slweeb commented Dec 4, 2022

There are many, according to me going to ones on this list. Any wiki can have a custom domain, so I'm not sure if we should have a pattern for each one, especially since more can appear.

I should've said this before, but:
https://www.lgbtqia.wiki/wiki/Non-Binary
is the same as
https://lgbta.miraheze.org/wiki/Non-Binary
Wikis with custom domains have a hidden ID, "lgbta", which is mentioned in the source code as "lgbtawiki".
lgbta:Non-Binary would be the article ID

@loominade
Copy link
Contributor

loominade commented Dec 6, 2022

Here is a machine readable list of all miraheze wikis and where to find them:
https://meta.miraheze.org/w/api.php?action=wikidiscover&format=json

edit:
the same list excluding inactive wikis:
https://meta.miraheze.org/w/api.php?action=wikidiscover&wdsiteprop=url%7Cdbname&wdstate=active&format=json

@fuddl
Copy link
Owner

fuddl commented Dec 6, 2022

ok, this enables me to either create a dedicated miraheze resolver or a resolver for irregular miraheze urls. Dunno which would be prefereble

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

No branches or pull requests

3 participants