Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Minecraft:Credit sequence/Credits

From SAS Gaming Wiki

This template was generated by the following Python code, assuming credits.json is the Java or Bedrock credits file and api-result.json from this query are located in the current directory.

Known names are taken from [[Minecraft::Special:WhatLinksHere/Template:Infobox person]].

<syntaxhighlight lang="python" copy=""> import json

TEMPLATE_START = "{{:Credit_sequence/Credits/Part" known_names = ["4J Studios"] credits = []

with open("credits.json", encoding="utf-8") as f:

   credits = json.load(f)
  1. api-result.json saved from
  2. https://minecraft.wiki/api.php?action=query&prop=transcludedin&pageids=5530&tinamespace=0&tilimit=500&format=json

with open("api-result.json", encoding="utf-8") as f:

   known_names.extend(i["title"] for i in json.load(f)["query"]["pages"]["5530"]["transcludedin"])

with open("credits.mediawiki", "w", encoding="utf-8") as f:

   f.write("Template:Collapse}\n")
               f.write("    }}\n")
           f.write("  }}\n")
       f.write("}}\n")
   f.write("}}\n")
   f.write("}}\n")

</syntaxhighlight>

Template:Collapse

Minecraft:pt:Sequência de créditos/Créditos Minecraft:zh:胜利屏幕/鸣谢名单