Jump to content

User:Forgottenman/sandbox: Difference between revisions

From The Austrian Economics Wiki, the global repository of classical-liberal thought
m +section
details for index page issue
Line 1: Line 1:
<section begin=intro />I'm using Windows Vista, 64 bit. I created a page ([[User:Forgottenbot/archive]]) and transcluded it on the page I want to archive ([[User talk:Forgottenman]]). I downloaded python-2.7.1.amd64.msi and ran the executable file.  Then I extracted pywikipedia-nightly.zip.  I created a family file and a user-config file (see below).  I opened the command prompt and logged in successfully.  <section end=intro />
Current:


However, archival does not take place as hoped.  If anyone has any recommendations to make this work, I would appreciate it.  Below is relevant information and results:
<pre>{{:MediaWiki:Proofreadpage_index_template
 
|Author=adf
===Command window===
|Title=adfs
The command line, when I press enter, looks like:
|Year=
<code>C:\pywikipedia>archivebot.py User:Forgottenbot/archive</code>
|Publisher=
 
|Source=
The result, including the above, is:
|Image=
 
|Pages=
<pre>
|Remarks=
C:\pywikipedia>archivebot.py User:Forgottenbot/archive
unicode test: triggers problem #3081100
Fetching template transclusions...
 
C:\pywikipedia>
</pre>
 
===Transclusion of [[User:Forgottenbot/archive]] on [[User talk:Forgottenman]]===
<pre>
{{User:Forgottenbot/archive
|algo = old(10d)
|archive = User talk:Forgottenman/Archive/%(year)d/%(monthname)s
|minthreadstoarchive = 1
}}
}}
</pre>
</pre>


===user-config.py===
Desired:
<pre>
mylang='en'
family = 'mises';
usernames['mises']['en']=u'Forgottenbot';
console_encoding = 'utf-8';
</pre>


===mises_family.py===
<pre>{{:MediaWiki:Proofreadpage_index_template
<pre>
|Type=book
# -*- coding: utf-8  -*-
|Title=''[[The Partisan]]'', revised edition
|Volume=
import family
|Author=[[Author:William Gilmore Simms|William Gilmore Simms]]
|Translator=
# The official Mises Wiki. #Put a short project description here.
|Editor=
|School=
class Family(family.Family):
|Publisher=Redfield
|Address=
    def __init__(self):
|Year=1859 (reprint of 1854 revised edition)
        family.Family.__init__(self)
|Key=
        self.name = 'mises' # Set the family name; this should be the same as in the filename.
|Source=djvu
        self.langs = {
|Image=13
            'en': 'wiki.mises.org', # Put the hostname here.
|Progress=C
        }
|Pages=<pagelist 1to9="" 10to11="images" 12="–" 13="title" 14="copyright" 15=5 15to21=roman 22="blank" 23=13 />
|Volumes=
        # Translation used on all wikis for the different namespaces.
|Remarks=
        # Most namespaces are inherited from family.Family.
}}</pre>
        # Check the family.py file (in main directory) to see the standard
        # namespace translations for each known language.
        # You only need to enter translations that differ from the default.
        self.namespaces[4] = {
            '_default': u'MisesWiki', # Specify the project namespace here.
        }
        self.namespaces[5] = {
            '_default': u'MisesWiki talk', # Specify the talk page of the project namespace here.
        }
    def version(self, code):
        return "1.16.0" # The MediaWiki version used. Not very important in most cases.
    def scriptpath(self, code):
        return '/mediawiki' # The relative path of index.php, api.php : look at your wiki address.
# This line may need to be changed to /wiki or /w,
# depending on the folder where your mediawiki program is located.
# Note: Do not _include_ index.php, etc.
</pre>

Revision as of 17:41, 10 February 2011

Current:

{{:MediaWiki:Proofreadpage_index_template
|Author=adf
|Title=adfs
|Year=
|Publisher=
|Source=
|Image=
|Pages=
|Remarks=
}}

Desired:

{{:MediaWiki:Proofreadpage_index_template
|Type=book
|Title=''[[The Partisan]]'', revised edition
|Volume=
|Author=[[Author:William Gilmore Simms|William Gilmore Simms]]
|Translator=
|Editor=
|School=
|Publisher=Redfield
|Address=
|Year=1859 (reprint of 1854 revised edition)
|Key=
|Source=djvu
|Image=13
|Progress=C
|Pages=<pagelist 1to9="–" 10to11="images" 12="–" 13="title" 14="copyright" 15=5 15to21=roman 22="blank" 23=13 />
|Volumes=
|Remarks=
}}