Revision: 4236 Author: wikipedian Date: 2007-09-11 13:46:05 +0000 (Tue, 11 Sep 2007)
Log Message: ----------- docu
Modified Paths: -------------- trunk/pywikipedia/noreferences.py
Modified: trunk/pywikipedia/noreferences.py =================================================================== --- trunk/pywikipedia/noreferences.py 2007-09-11 12:57:06 UTC (rev 4235) +++ trunk/pywikipedia/noreferences.py 2007-09-11 13:46:05 UTC (rev 4236) @@ -53,7 +53,8 @@ # link sections. This dictionary defines these sections, sorted by priority. # For example, on an English wiki, the script would place the "References" # section in front of the "Further reading" section, if that existed. -# Otherwise, it would try to do it +# Otherwise, it would try to put it in front of the "External links" section, +# or if that fails, the "See also" section, etc. placeBeforeSections = { 'de': [ # no explicit policy on where to put the references u'Literatur', @@ -68,7 +69,9 @@ ], }
-# How the references section should look like. +# Titles of sections where a reference tag would fit into. +# The first title should be the preferred one: It's the one that +# will be used when a new section has to be created. referencesSections = { 'de': [ u'Einzelnachweise', # The "Einzelnachweise" title is disputed, some people prefer the other variants @@ -204,8 +207,8 @@ return else: break - # TODO: Think of a clever way of handling this. - wikipedia.output(u'Found no section that can be preceeded by a new references section. Please add a references section.') + # TODO: Make up a clever way of handling this. + wikipedia.output(u'Found no section that can be preceeded by a new references section. Please add a references section manually.')
def save(self, page, newText): """