<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wildermyth.com/w/index.php?action=history&amp;feed=atom&amp;title=Patch_notes%2FScript</id>
	<title>Patch notes/Script - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wildermyth.com/w/index.php?action=history&amp;feed=atom&amp;title=Patch_notes%2FScript"/>
	<link rel="alternate" type="text/html" href="https://wildermyth.com/w/index.php?title=Patch_notes/Script&amp;action=history"/>
	<updated>2026-04-13T10:36:26Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.36.1</generator>
	<entry>
		<id>https://wildermyth.com/w/index.php?title=Patch_notes/Script&amp;diff=20856&amp;oldid=prev</id>
		<title>Sten: Created page with &quot;This is a [https://www.python.org/downloads/ Python] script to generate the Patch notes page. Copy the code in the box below into a text file named &#039;&#039;&#039;&lt;nowiki&gt;wikiPatchNot...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wildermyth.com/w/index.php?title=Patch_notes/Script&amp;diff=20856&amp;oldid=prev"/>
		<updated>2022-03-05T21:34:51Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;This is a [https://www.python.org/downloads/ Python] script to generate the &lt;a href=&quot;/wiki/Patch_notes&quot; title=&quot;Patch notes&quot;&gt;Patch notes&lt;/a&gt; page. Copy the code in the box below into a text file named &amp;#039;&amp;#039;&amp;#039;&amp;lt;nowiki&amp;gt;wikiPatchNot...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This is a [https://www.python.org/downloads/ Python] script to generate the [[Patch notes]] page. Copy the code in the box below into a text file named &amp;#039;&amp;#039;&amp;#039;&amp;lt;nowiki&amp;gt;wikiPatchNotes.py&amp;lt;/nowiki&amp;gt;&amp;#039;&amp;#039;&amp;#039; (or whatever you want) inside the &amp;#039;&amp;#039;&amp;#039;&amp;lt;nowiki&amp;gt;Wildermyth&amp;lt;/nowiki&amp;gt;&amp;#039;&amp;#039;&amp;#039; directory. Then run it by calling &amp;#039;&amp;#039;&amp;#039;&amp;lt;nowiki&amp;gt;python wikiPatchNotes.py&amp;lt;/nowiki&amp;gt;&amp;#039;&amp;#039;&amp;#039; from the command line. It will create a text file named &amp;#039;&amp;#039;&amp;#039;&amp;lt;nowiki&amp;gt;wikiPatchNotes.txt&amp;lt;/nowiki&amp;gt;&amp;#039;&amp;#039;&amp;#039; with the appropriate wiki-formatted content.&lt;br /&gt;
&lt;br /&gt;
{| role=&amp;quot;presentation&amp;quot; class=&amp;quot;wikitable mw-collapsible mw-collapsed&amp;quot;&lt;br /&gt;
| &amp;#039;&amp;#039;&amp;#039;&amp;lt;nowiki&amp;gt;wikiPatchNotes.py&amp;lt;/nowiki&amp;gt;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;string = &amp;#039;\n&amp;#039;&lt;br /&gt;
with open(&amp;#039;change log.txt&amp;#039;,&amp;#039;r&amp;#039;,encoding=&amp;#039;utf8&amp;#039;) as f:&lt;br /&gt;
  lines = f.readlines()&lt;br /&gt;
  &lt;br /&gt;
  start = True&lt;br /&gt;
  new = True&lt;br /&gt;
  for line in lines:&lt;br /&gt;
    if line.isspace():&lt;br /&gt;
      new = True&lt;br /&gt;
    &lt;br /&gt;
    try: &lt;br /&gt;
      firstword = int(line.replace(&amp;#039;.&amp;#039;,&amp;#039; &amp;#039;).split(maxsplit=1)[0])&lt;br /&gt;
    except:&lt;br /&gt;
      firstword = None&lt;br /&gt;
    &lt;br /&gt;
    if (new and line[0].isdigit()) or (firstword is not None and 2000&amp;lt;firstword&amp;lt;2020):&lt;br /&gt;
      if not start:&lt;br /&gt;
        while string[-1].isspace():&lt;br /&gt;
          string = string[:-1]&lt;br /&gt;
        string += &amp;#039;&amp;lt;/no&amp;#039; + &amp;#039;wiki&amp;gt;\n&amp;#039;&lt;br /&gt;
        #string += &amp;#039;|}\n&amp;#039;&lt;br /&gt;
      else:&lt;br /&gt;
        start = False&lt;br /&gt;
      string += &amp;#039;== %s ==\n&amp;#039;%line[:-1]&lt;br /&gt;
      #string += &amp;#039;\n{| role=&amp;quot;presentation&amp;quot; class=&amp;quot;wikitable mw-collapsible mw-collapsed&amp;quot; style=&amp;quot;text-align: left&amp;quot;\n&amp;#039;&lt;br /&gt;
      #string += &amp;quot;| &amp;#039;&amp;#039;&amp;#039;Patch notes&amp;#039;&amp;#039;&amp;#039;\n&amp;quot;&lt;br /&gt;
      #string += &amp;#039;|-\n|\n&amp;#039;&lt;br /&gt;
      string += &amp;#039; &amp;lt;no&amp;#039; + &amp;#039;wiki&amp;gt;&amp;#039;&lt;br /&gt;
      new = False&lt;br /&gt;
    else:&lt;br /&gt;
      string += line&lt;br /&gt;
  &lt;br /&gt;
  while string[-1].isspace():&lt;br /&gt;
    string = string[:-1]&lt;br /&gt;
  string += &amp;#039;&amp;lt;/no&amp;#039; + &amp;#039;wiki&amp;gt;\n&amp;#039;&lt;br /&gt;
  #string += &amp;#039;|}\n&amp;#039;&lt;br /&gt;
&lt;br /&gt;
string += &amp;#039;\n&amp;lt;small&amp;gt;Updated using [[/Script|this script]].&amp;lt;/small&amp;gt;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
with open(&amp;#039;wikiPatchNotes.txt&amp;#039;, &amp;#039;w&amp;#039;) as f:&lt;br /&gt;
  f.write(string)&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Sten</name></author>
	</entry>
</feed>