Jump to content

User:Forgottenman/sandbox: Difference between revisions

From The Austrian Economics Wiki, the global repository of classical-liberal thought
bot code
 
explanation as I understand it
 
(15 intermediate revisions by the same user not shown)
Line 1: Line 1:
user-config.py
'''Remaining issues'''
<pre>
mylang='en'
family = 'mises';
usernames['mises']['en']=u'Forgottenbot';
console_encoding = 'utf-8';
</pre>


mises_family.py:
*Image thumbnails not working universally
<pre>
**Thumbnail 404 handler, or lack thereof, seems to be the problem
# -*- coding: utf-8 -*-
*Error on previewing and saving a page in the page namespace.
   
**Warning: Parameter 3 to pr_pageQuality() expected to be a reference, value given in /home/web/public_html/wiki/mediawiki/includes/parser/Parser.php on line 3333
import family
***<nowiki><pagequality></nowiki>, via <code>global $wgParser;</code> and <code>$wgParser->setHook( "pagequality", "pr_pageQuality" );</code> in proofreadpage.php, runs function pr_PageQuality with three arguments. The third argument of pr_PageQuality is <code>&$parser</code>. This is the parent parser, according to [http://www.mediawiki.org/wiki/Manual:Tag_extensions]. The error says that Parameter 3 is a value in line 3333 of parser.php, which is <code>array( $content, $attributes, $this, $frame ) );</code>.  I'm theorizing that "null" here is a value, and thus this is causing the error.   
*Page status color not correct on index page (related to previous?)
  # The official Mises Wiki. #Put a short project description here.
 
   
'''Solved'''
class Family(family.Family):
 
*Index pages formatted correctly
    def __init__(self):
*PDF file viewing possible
        family.Family.__init__(self)
*PDF file upload enabled
        self.name = 'mises' # Set the family name; this should be the same as in the filename.
*Page and Index talk namespaces created
        self.langs = {
 
            'en': 'wiki.mises.org', # Put the hostname here.
 
        }
[[MisesWiki:Proofreading scripts]]
<!--
        # Translation used on all wikis for the different namespaces.
Block all with 84.60.192.0/18 [http://www.csgnetwork.com/ipinfocalc.html] 84.60.192.0 - 84.60.255.254
        # Most namespaces are inherited from family.Family.
 
        # Check the family.py file (in main directory) to see the standard
*84.60.195.116 - block with 84.60.194/23, which blocks 84.60.195.116
        # namespace translations for each known language.
*84.60.206.225 - block with
        # You only need to enter translations that differ from the default.
*84.60.218.10
        self.namespaces[4] = {
*84.60.220.190
            '_default': u'MisesWiki', # Specify the project namespace here.
*84.60.253.91
        }
 
Also in Ratingen
        self.namespaces[5] = {
*84.60.192.0
            '_default': u'MisesWiki talk', # Specify the talk page of the project namespace here.  
.201-.213
        }
.215-.216
.218-.227
    def version(self, code):
.229
        return "1.16.0"  # The MediaWiki version used. Not very important in most cases.
.232-.234
.239-.240
    def scriptpath(self, code):
.244
        return '/mediawiki' # The relative path of index.php, api.php : look at your wiki address.  
.246
# 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.
Not in Ratingen:
</pre>
84.60.193.0
.197
.198
.199
.200
.214
.217
.228
.230
.231
.235-.238
.241-.243
.245
-->

Latest revision as of 03:14, 4 March 2011

Remaining issues

  • Image thumbnails not working universally
    • Thumbnail 404 handler, or lack thereof, seems to be the problem
  • Error on previewing and saving a page in the page namespace.
    • Warning: Parameter 3 to pr_pageQuality() expected to be a reference, value given in /home/web/public_html/wiki/mediawiki/includes/parser/Parser.php on line 3333
      • <pagequality>, via global $wgParser; and $wgParser->setHook( "pagequality", "pr_pageQuality" ); in proofreadpage.php, runs function pr_PageQuality with three arguments. The third argument of pr_PageQuality is &$parser. This is the parent parser, according to [1]. The error says that Parameter 3 is a value in line 3333 of parser.php, which is array( $content, $attributes, $this, $frame ) );. I'm theorizing that "null" here is a value, and thus this is causing the error.
  • Page status color not correct on index page (related to previous?)

Solved

  • Index pages formatted correctly
  • PDF file viewing possible
  • PDF file upload enabled
  • Page and Index talk namespaces created


MisesWiki:Proofreading scripts