19

The Minecraft wiki's management has moved from Fandom (https://minecraft.gamepedia.com) to an independent wiki (https://minecraft.wiki) and it's likely going to become out of date.

Is it possible, to change all the links from:

to:

If a page is not existing above, it is likely to have already been deleted in Fandom as well since the fork is only a few days old.

*not in Fandom control, but may have been used historically.

5
  • 4
    I think there is a Meta SE post about mass re-routing URLs. SE staff have a tool that they can use to do this. So we will need their help!
    – Timmy Jim Mod
    Sep 25, 2023 at 1:38
  • 2
    You also need //www.minecraftwiki.net/ in your list of source links. There are 864 posts with www. prefixing and only 15 posts without Sep 25, 2023 at 2:45
  • 4
    If we can get the exact mapping nailed down, this is a good candidate for the tool the SE staff uses. Once we are certain we have all the links that will need to be updated, a mod can add the status-review tag to this question and an SE staff can fix them all for us in one shot
    – Dragonrage Mod
    Sep 25, 2023 at 4:08
  • 2
    Hey CM or Dev that handles this - This also affects Tag Wikis - eg minecraft-java-edition - hopefully whatever tool you use to update Q&A can also be run on wikis :)
    – Robotnik Mod
    Sep 29, 2023 at 7:06
  • Actually, Java and Bedrock are both covered by the MC Wiki, so it's not only minecraft-java-edition but also minecraft-bedrock-edition, minecraft-commands, minecraft-java-edition-server and minecraft-redstone... Basically anything with the word "minecraft" in it (except the modded stuffs, unless it's referencing a Vanilla game item).
    – aytimothy
    Sep 29, 2023 at 8:45

2 Answers 2

12

There appears to be at least 3482 posts (15 of which are tag wikis) which contain one of these domains:

  • //minecraft.gamepedia.com/
  • //minecraft.fandom.com/
  • //minecraftwiki.net/
  • //www.minecraftwiki.net/

The URL remapping tool works using simple find and replace. This makes something like this somewhat tricky compared with a regular expression based replacement since every single pattern needs to be specified.

A RegEx solution could easily to handle this remapping, particularly around the fact that both /<path> and /wiki/<path> both need to map to /w/<path>.

Given the limitations, the most direct approach would be to do the following remappings in order:

The benefit of this approach is that this will both update the URLs to the new domain and update the protocol from http:// to https:// for all links. As opposed to, say, remapping //minecraft.gamepedia.com/ to //minecraft.wiki/w/ which wouldn't update the protocol. And, yes, there are a good amount of http:// links that could use some updating.


Alternatively, we could do a smaller number of remappings:

Doing the domain mappings before mapping away the //site/wiki/ links will cause issues with, for example, the 362 posts with links that start with https://minecraft.fandom.com/wiki/ which will end up being rewritten as https://minecraft.wiki/w/wiki/<path> instead of https://minecraft.wiki/w/<path>.

But this could be fixed by remapping /w/wiki/ to just /w/:

This approach would be 9 remappings instead of 16

6
  • How did other language links work back when it was Gamepedia? If it was minecraft.gamepedia.com/de/foo and any of these links were used (possible, because e.g. the German wiki has a really good pause/main menu that you can click through), then this would break those links, since no other languages were migrated yet. Sep 25, 2023 at 18:08
  • Also something to consider is web.archive.org. I personally use the wiki's own history for all my archive links, but maybe someone uses that instead. (The history links should just work: ?oldid=2316368) Sep 25, 2023 at 18:12
  • 1
    @FabianRöling given that this is an English language site it doesn't seem like there would be very many non-English links. We can always test for those urls if you know what they are but your example of minecraft.gamepedia.com/de/ gives 0 results. Sep 25, 2023 at 18:36
  • I checked my browser history, but found no results, either, so I don't know what the format was. Sep 26, 2023 at 7:50
  • Hm, what about https*:(\/\/|\\\\)(www\.)*minecraft\S*(wiki|fandom|gamepedia|wikia)\S*(\/|\\)?
    – aytimothy
    Sep 29, 2023 at 9:06
  • The Regex is mostly just demonstrative since their tool cannot use Regex. That's why there are Source Destination tables for the simple find-replace that is supported @aytimothy I would also suggest against that pattern which would match a whole lot of different stuff, for example, httpssss://www.www.www.minecraft.this.is.really.matching.a.lot.of....stuff...wiki....\\\\/\/\\/ matches Sep 29, 2023 at 22:39
5

We have replaced the following 5 links with https://minecraft.wiki/w/. There were over 50 instances of each of these links across the site, which is the threshold for our bulk replacement tool.

There was a sixth link which we planned to bulk replace (http://www.minecraftwiki.net/), but did not because most of the instances were images which don't appear to work on the new url.

The other links listed in the question and answer above each had under 50 occurrences. We encourage the community to work together to replace the remaining links manually, if it is a priority.

6
  • 4
    Thanks Sasha! Much appreciated šŸ˜Š
    – Robotnik Mod
    Nov 28, 2023 at 19:28
  • @Sasha Unless Iā€™m missing something, this appears to have been not completely executed. A couple counterexamples out of the 4-figure count reported by the query linked above: gaming.stackexchange.com/a/212228/308792 gaming.stackexchange.com/q/165826/308792
    – Micha
    Dec 28, 2023 at 15:52
  • @Micha sorry, can you explain the problem you are seeing a bit more in depth?
    – Sasha StaffMod
    Jan 2 at 16:12
  • @Sasha It appears that some links (such as the ones in the posts I linked) got missed by the bulk replacement.
    – Micha
    Jan 3 at 17:24
  • @Micha thanks for explaining, I will look into this.
    – Sasha StaffMod
    Jan 3 at 20:11
  • @Micha we did some checks and found a few areas where links were missed. This should be resolved now but please let us know if you notice anything else!
    – Sasha StaffMod
    Jan 8 at 16:26

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .